/**
 * SCHEMAFY Meta Box Preview Styles
 * Enhanced Google Search Preview for WordPress Post/Page Editor
 * Version: 1.2.0
 */

:root {
    --schemafy-primary: #2271b1;
    --schemafy-primary-hover: #135e96;
    --schemafy-success: #00a32a;
    --schemafy-warning: #dba617;
    --schemafy-danger: #d63638;
    --schemafy-gray-100: #f6f7f7;
    --schemafy-gray-200: #dcdcde;
    --schemafy-gray-300: #c3c4c7;
    --schemafy-gray-600: #50575e;
    --schemafy-gray-800: #2c3338;
    --schemafy-radius: 8px;
    --schemafy-radius-sm: 4px;
    --schemafy-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --schemafy-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --schemafy-transition: all 0.2s ease;
}

/* ==========================================================================
   Enhanced Meta Box Container
   ========================================================================== */

.schemafy-meta-box-enhanced {
    margin: -12px -12px 0;
    padding: 20px;
    background: #fff;
}

/* Two-Column Grid Layout */
.schemafy-meta-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1280px) {
    .schemafy-meta-box-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Left Column: Form Fields
   ========================================================================== */

.schemafy-meta-box-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schemafy-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schemafy-field-label {
    font-size: 14px;
    color: var(--schemafy-gray-800);
    margin: 0;
}

.schemafy-meta-input,
.schemafy-meta-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--schemafy-gray-300);
    border-radius: var(--schemafy-radius-sm);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    transition: var(--schemafy-transition);
}

.schemafy-meta-input:focus,
.schemafy-meta-textarea:focus {
    border-color: var(--schemafy-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--schemafy-primary);
}

.schemafy-meta-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Field Info: Counter + Indicator */
.schemafy-field-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.schemafy-char-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--schemafy-gray-600);
}

.schemafy-char-counter .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.schemafy-seo-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--schemafy-radius-sm);
}

.schemafy-seo-indicator.good {
    color: var(--schemafy-success);
    background: rgba(0, 163, 42, 0.1);
}

.schemafy-seo-indicator.warning {
    color: var(--schemafy-warning);
    background: rgba(219, 166, 23, 0.1);
}

.schemafy-seo-indicator.bad {
    color: var(--schemafy-danger);
    background: rgba(214, 54, 56, 0.1);
}

.schemafy-seo-indicator .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.schemafy-help-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--schemafy-gray-100);
    border-radius: var(--schemafy-radius-sm);
    font-size: 13px;
    color: var(--schemafy-gray-600);
    line-height: 1.5;
    margin: 0;
}

.schemafy-help-note .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--schemafy-primary);
}

/* ==========================================================================
   Right Column: Preview
   ========================================================================== */

.schemafy-meta-box-preview {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Preview Header */
.schemafy-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--schemafy-radius);
    color: white;
}

.schemafy-preview-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schemafy-preview-title-section .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.schemafy-preview-title-text {
    font-size: 15px;
    font-weight: 600;
}

/* Device Toggle Buttons */
.schemafy-device-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: var(--schemafy-radius-sm);
}

.schemafy-device-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.schemafy-device-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.schemafy-device-btn.active {
    background: white;
    color: var(--schemafy-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schemafy-device-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Preview Containers */
.schemafy-preview-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schemafy-preview-container.active {
    display: block;
    opacity: 1;
}

.schemafy-preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--schemafy-gray-800);
    margin-bottom: 12px;
}

.schemafy-preview-label .dashicons {
    color: var(--schemafy-primary);
}

/* ==========================================================================
   Desktop Preview
   ========================================================================== */

.schemafy-preview-desktop {
    padding: 48px 32px;
    background: #ffffff;
    border-radius: var(--schemafy-radius);
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Google Logo */
.schemafy-google-logo {
    margin-bottom: 36px;
    padding-left: 4px;
}

.schemafy-google-logo svg {
    display: block;
    height: 30px;
    width: auto;
}

.schemafy-google-preview-box {
    max-width: 600px;
    margin: 0 auto;
    padding-left: 4px;
}

/* URL with Favicon - Exact Google 2024 Style */
.schemafy-preview-url {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #202124;
    margin-bottom: 2px;
    font-family: 'Google Sans', Arial, sans-serif;
    line-height: 20px;
    letter-spacing: normal;
}

.schemafy-url-favicon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #f1f3f4;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Title - Exact Google Style with proper spacing */
.schemafy-preview-title {
    font-size: 20px;
    line-height: 26px;
    color: #1a0dab;
    font-weight: 400;
    margin: 0 0 3px 0;
    font-family: Arial, sans-serif;
    cursor: pointer;
    word-break: break-word;
    display: block;
    text-decoration: none;
    max-width: 600px;
}

.schemafy-preview-title:hover {
    text-decoration: underline;
    color: #1a0dab;
}

/* Description - Exact Google Style */
.schemafy-preview-desc {
    font-size: 14px;
    line-height: 22px;
    color: #4d5156;
    font-family: Arial, sans-serif;
    word-break: break-word;
    max-width: 600px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Date badge (optional - Google sometimes shows this) */
.schemafy-preview-date {
    display: inline-block;
    font-size: 13px;
    line-height: 22px;
    color: #70757a;
    font-family: Arial, sans-serif;
    margin-right: 6px;
}

/* ==========================================================================
   Mobile Preview
   ========================================================================== */

.schemafy-preview-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--schemafy-radius);
    min-height: 500px;
}

/* Mobile Device Frame */
.schemafy-mobile-device-frame {
    width: 375px;
    max-width: 100%;
    background: white;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 12px #1f1f1f;
    overflow: hidden;
    position: relative;
}

/* Mobile Notch */
.schemafy-mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 26px;
    background: #1f1f1f;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* Mobile Screen */
.schemafy-mobile-screen {
    height: 667px;
    overflow-y: auto;
    background: white;
}

/* Google Mobile Header */
.schemafy-google-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16px 16px;
    background: white;
    border-bottom: 1px solid #dadce0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.schemafy-mobile-search-icon {
    color: #5f6368;
}

.schemafy-mobile-search-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Mobile Preview Content - Exact Google Mobile Style */
.schemafy-mobile-preview-content {
    padding: 14px 16px 16px;
    border-bottom: 1px solid #e8eaed;
    background: #fff;
}

.schemafy-preview-url-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #202124;
    margin-bottom: 4px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    line-height: 18px;
    letter-spacing: 0.2px;
}

.schemafy-url-favicon-mobile {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: #f1f3f4;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.schemafy-preview-title-mobile {
    font-size: 20px;
    line-height: 26px;
    color: #1a0dab;
    font-weight: 400;
    margin: 0 0 2px 0;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    word-break: break-word;
    display: block;
    text-decoration: none;
}

.schemafy-preview-desc-mobile {
    font-size: 14px;
    line-height: 20px;
    color: #4d5156;
    font-family: Roboto, Arial, sans-serif;
    word-break: break-word;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1280px) {
    .schemafy-meta-box-preview {
        position: relative;
        top: 0;
    }
}

@media (max-width: 782px) {
    .schemafy-meta-box-enhanced {
        padding: 16px;
    }

    .schemafy-meta-box-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .schemafy-preview-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .schemafy-device-toggle {
        width: 100%;
    }

    .schemafy-device-btn {
        flex: 1;
    }

    .schemafy-mobile-device-frame {
        width: 100%;
        border-radius: 24px;
    }

    .schemafy-mobile-screen {
        height: 500px;
    }

    .schemafy-mobile-preview-frame {
        width: 100%;
        max-width: 320px;
    }

    .schemafy-preview-title {
        font-size: 18px;
    }

    .schemafy-preview-title-mobile {
        font-size: 16px;
    }
}

/* ==========================================================================
   Animation
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schemafy-preview-container.active {
    animation: fadeIn 0.3s ease-out;
}

/* ==========================================================================
   Rich Snippets Box
   ========================================================================== */

.schemafy-rich-snippets-box {
    margin: -12px -12px 0;
    padding: 20px;
    background: #fff;
}

/* Header Section */
.schemafy-snippets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--schemafy-gray-200);
}

.schemafy-snippets-info {
    flex: 1;
}

.schemafy-snippets-description {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--schemafy-gray-600);
    line-height: 1.6;
}

.schemafy-snippets-description .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--schemafy-primary);
}

.schemafy-snippets-url {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.schemafy-snippets-url code {
    padding: 4px 8px;
    background: var(--schemafy-gray-100);
    border-radius: var(--schemafy-radius-sm);
    font-size: 12px;
    color: var(--schemafy-gray-800);
    word-break: break-all;
}

.schemafy-add-snippet-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--schemafy-primary);
    color: white;
    border: none;
    border-radius: var(--schemafy-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--schemafy-transition);
    white-space: nowrap;
}

.schemafy-add-snippet-btn:hover {
    background: var(--schemafy-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--schemafy-shadow-md);
}

.schemafy-add-snippet-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Snippets List */
.schemafy-snippets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Empty State */
.schemafy-no-snippets {
    text-align: center;
    padding: 60px 20px;
    background: var(--schemafy-gray-100);
    border-radius: var(--schemafy-radius);
    border: 2px dashed var(--schemafy-gray-300);
}

.schemafy-no-snippets .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--schemafy-gray-300);
    margin-bottom: 16px;
}

.schemafy-no-snippets p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--schemafy-gray-600);
}

.schemafy-no-snippets .schemafy-help-text {
    font-size: 13px;
    color: var(--schemafy-gray-600);
}

/* Snippet Card */
.schemafy-snippet-card {
    background: white;
    border: 1px solid var(--schemafy-gray-200);
    border-radius: var(--schemafy-radius);
    padding: 20px;
    transition: var(--schemafy-transition);
    box-shadow: var(--schemafy-shadow);
}

.schemafy-snippet-card:hover {
    box-shadow: var(--schemafy-shadow-md);
    transform: translateY(-2px);
}

.schemafy-snippet-card.active {
    border-left: 4px solid var(--schemafy-success);
}

.schemafy-snippet-card.inactive {
    border-left: 4px solid var(--schemafy-gray-300);
    opacity: 0.7;
}

/* Card Header */
.schemafy-snippet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--schemafy-gray-200);
}

.schemafy-snippet-type {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schemafy-snippet-icon {
    font-size: 32px;
    line-height: 1;
}

.schemafy-snippet-title h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--schemafy-gray-800);
}

.schemafy-snippet-type-label {
    font-size: 12px;
    color: var(--schemafy-gray-600);
    background: var(--schemafy-gray-100);
    padding: 2px 8px;
    border-radius: var(--schemafy-radius-sm);
}

/* Status Badge */
.schemafy-status-badge {
    padding: 4px 12px;
    border-radius: var(--schemafy-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schemafy-status-badge.schemafy-status-active {
    background: rgba(0, 163, 42, 0.1);
    color: var(--schemafy-success);
}

.schemafy-status-badge.schemafy-status-inactive {
    background: var(--schemafy-gray-100);
    color: var(--schemafy-gray-600);
}

/* Snippet Preview */
.schemafy-snippet-preview {
    margin-bottom: 16px;
}

.schemafy-snippet-preview-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--schemafy-gray-800);
    margin-bottom: 12px;
}

.schemafy-snippet-preview-label .dashicons {
    color: var(--schemafy-primary);
}

.schemafy-snippet-properties {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--schemafy-gray-100);
    border-radius: var(--schemafy-radius-sm);
}

.schemafy-property {
    font-size: 13px;
    line-height: 1.5;
    color: var(--schemafy-gray-800);
}

.schemafy-property strong {
    color: var(--schemafy-primary);
    margin-right: 4px;
}

.schemafy-property-more {
    font-size: 12px;
    color: var(--schemafy-gray-600);
    font-style: italic;
    margin-top: 4px;
}

/* Snippet Actions */
.schemafy-snippet-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schemafy-snippet-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--schemafy-gray-300);
    background: white;
    border-radius: var(--schemafy-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--schemafy-gray-800);
    cursor: pointer;
    transition: var(--schemafy-transition);
    text-decoration: none;
}

.schemafy-snippet-btn:hover {
    background: var(--schemafy-gray-100);
    border-color: var(--schemafy-gray-600);
    transform: translateY(-1px);
}

.schemafy-snippet-btn.schemafy-btn-edit {
    border-color: var(--schemafy-primary);
    color: var(--schemafy-primary);
}

.schemafy-snippet-btn.schemafy-btn-edit:hover {
    background: var(--schemafy-primary);
    color: white;
}

.schemafy-snippet-btn.schemafy-btn-toggle {
    border-color: var(--schemafy-warning);
    color: var(--schemafy-warning);
}

.schemafy-snippet-btn.schemafy-btn-toggle:hover {
    background: var(--schemafy-warning);
    color: white;
}

.schemafy-snippet-btn.schemafy-btn-delete {
    border-color: var(--schemafy-danger);
    color: var(--schemafy-danger);
}

.schemafy-snippet-btn.schemafy-btn-delete:hover {
    background: var(--schemafy-danger);
    color: white;
}

.schemafy-snippet-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.schemafy-snippet-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.schemafy-checkmark {
    color: var(--schemafy-success);
    font-weight: bold;
    margin-left: 4px;
}

/* Modal */
.schemafy-snippet-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.schemafy-snippet-modal-content {
    background: white;
    border-radius: var(--schemafy-radius);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.schemafy-snippet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--schemafy-gray-200);
}

.schemafy-snippet-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--schemafy-gray-800);
}

.schemafy-snippet-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--schemafy-gray-600);
    transition: var(--schemafy-transition);
}

.schemafy-snippet-modal-close:hover {
    color: var(--schemafy-danger);
    transform: scale(1.1);
}

.schemafy-snippet-modal-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.schemafy-snippet-modal-body {
    padding: 24px;
}

.schemafy-snippet-modal-body > p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--schemafy-gray-600);
}

/* Schema Type Grid */
.schemafy-schema-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.schemafy-schema-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--schemafy-gray-100);
    border: 2px solid var(--schemafy-gray-200);
    border-radius: var(--schemafy-radius);
    text-decoration: none;
    text-align: center;
    transition: var(--schemafy-transition);
    cursor: pointer;
}

.schemafy-schema-type-card:hover {
    background: var(--schemafy-primary);
    border-color: var(--schemafy-primary);
    transform: translateY(-2px);
    box-shadow: var(--schemafy-shadow-md);
}

.schemafy-schema-type-card:hover .schemafy-schema-type-icon,
.schemafy-schema-type-card:hover .schemafy-schema-type-name {
    color: white;
}

.schemafy-schema-type-icon {
    font-size: 32px;
    line-height: 1;
}

.schemafy-schema-type-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--schemafy-gray-800);
    line-height: 1.3;
}

.schemafy-help-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--schemafy-gray-100);
    border-radius: var(--schemafy-radius-sm);
    font-size: 13px;
    color: var(--schemafy-gray-600);
    line-height: 1.5;
    margin: 0;
}

.schemafy-help-text .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--schemafy-primary);
}

/* ==========================================================================
   Responsive Adjustments for Rich Snippets
   ========================================================================== */

@media (max-width: 782px) {
    .schemafy-rich-snippets-box {
        padding: 16px;
    }

    .schemafy-snippets-header {
        flex-direction: column;
        align-items: stretch;
    }

    .schemafy-add-snippet-btn {
        width: 100%;
        justify-content: center;
    }

    .schemafy-snippet-actions {
        flex-direction: column;
    }

    .schemafy-snippet-btn {
        width: 100%;
        justify-content: center;
    }

    .schemafy-schema-type-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .schemafy-schema-type-card {
        padding: 12px;
    }

    .schemafy-schema-type-icon {
        font-size: 28px;
    }

    .schemafy-schema-type-name {
        font-size: 12px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .schemafy-meta-box-preview,
    .schemafy-rich-snippets-box {
        display: none;
    }

    .schemafy-meta-box-grid {
        grid-template-columns: 1fr;
    }
}
