/**
 * SCHEMAFY Meta Tags & Social Media - Modern Minimalist Design
 * Clean, professional interface with strategic blue gradients
 */

:root {
    /* Module-specific token: gradient for card headers in this view.
       All other tokens inherit from admin-v2.css. */
    --schemafy-primary-gradient: linear-gradient(135deg, var(--schemafy-primary-dark) 0%, var(--schemafy-primary) 100%);
    --schemafy-accent: var(--schemafy-primary-light);
    --schemafy-error: var(--schemafy-danger);
}

/* ================================
   MODERN MINIMALIST CARD
   ================================ */
.schemafy-card-v2 {
    background: var(--schemafy-white);
    border-radius: var(--schemafy-radius-lg);
    box-shadow: var(--schemafy-shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--schemafy-gray-200);
    transition: var(--schemafy-transition);
}

.schemafy-card-v2:hover {
    box-shadow: var(--schemafy-shadow);
}

.schemafy-card-header-v2 {
    background: var(--schemafy-primary-dark);
    padding: 20px 28px;
    border: none;
    position: relative;
}

.schemafy-card-header-v2 h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--schemafy-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.schemafy-card-header-v2 h2 .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
    color: var(--schemafy-white);
}

.schemafy-card-description {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.schemafy-card-header-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--schemafy-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--schemafy-white);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.schemafy-card-body-v2 {
    padding: 24px;
    background: var(--schemafy-white);
}

/* ================================
   PAGE SELECTOR - MINIMALIST
   ================================ */
.schemafy-metadata-selector-v2 {
    background: var(--schemafy-gray-50);
    border-radius: var(--schemafy-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--schemafy-gray-200);
}

.schemafy-selector-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--schemafy-gray-900);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schemafy-selector-header h3 .dashicons {
    color: var(--schemafy-primary);
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.schemafy-help-text-v2 {
    color: var(--schemafy-gray-600);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.schemafy-search-with-icon {
    position: relative;
    margin-bottom: 12px;
}

.schemafy-search-with-icon .dashicons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--schemafy-gray-400);
    pointer-events: none;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.schemafy-search-input-v2 {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--schemafy-gray-300);
    border-radius: var(--schemafy-radius);
    font-size: 14px;
    transition: var(--schemafy-transition-fast);
    background: var(--schemafy-white);
}

.schemafy-search-input-v2:focus {
    outline: none;
    border-color: var(--schemafy-primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 245, 0.1);
}

.schemafy-select-v2 {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--schemafy-gray-300);
    border-radius: var(--schemafy-radius);
    font-size: 14px;
    background: var(--schemafy-white);
    transition: var(--schemafy-transition-fast);
    cursor: pointer;
}

.schemafy-select-v2:focus {
    outline: none;
    border-color: var(--schemafy-primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 245, 0.1);
}

.schemafy-select-large {
    min-height: 200px;
}

/* ================================
   TWO-COLUMN MODERN LAYOUT
   ================================ */
.schemafy-meta-editor-v2 {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   LEFT SIDEBAR - MINIMALIST
   ================================ */
.schemafy-editor-left-panel {
    background: var(--schemafy-white);
    border-radius: var(--schemafy-radius);
    border: 1px solid var(--schemafy-gray-200);
    box-shadow: var(--schemafy-shadow-sm);
    position: sticky;
    top: 32px;
    height: fit-content;
    overflow: hidden;
}

.schemafy-editor-left-panel-header {
    background: var(--schemafy-primary-dark);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schemafy-editor-left-panel-header .dashicons {
    color: var(--schemafy-white);
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.schemafy-editor-left-panel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--schemafy-white);
}

.schemafy-editor-left-panel-body {
    padding: 18px;
}

.schemafy-current-url-display {
    margin-bottom: 16px;
}

.schemafy-current-url-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--schemafy-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.schemafy-current-url-label .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.schemafy-current-url-value {
    background: var(--schemafy-gray-50);
    padding: 10px;
    border-radius: var(--schemafy-radius-sm);
    font-size: 12px;
    color: var(--schemafy-gray-700);
    word-break: break-all;
    font-family: var(--schemafy-font-mono);
    border: 1px solid var(--schemafy-gray-200);
}

.schemafy-editor-left-action {
    margin-top: 16px;
}

.schemafy-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--schemafy-white);
    border: 1px solid var(--schemafy-gray-300);
    border-radius: var(--schemafy-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--schemafy-gray-700);
    cursor: pointer;
    transition: var(--schemafy-transition-fast);
    text-decoration: none;
    width: 100%;
}

.schemafy-btn-secondary:hover {
    background: var(--schemafy-gray-50);
    border-color: var(--schemafy-primary);
    color: var(--schemafy-primary);
}

.schemafy-editor-left-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--schemafy-gray-200), transparent);
    margin: 20px 0;
}

.schemafy-editor-left-info {
    background: #fef3c7;
    padding: 14px;
    border-radius: var(--schemafy-radius-sm);
    border: 1px solid var(--schemafy-warning-light);
}

.schemafy-editor-left-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.schemafy-editor-left-info-title .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.schemafy-editor-left-info-text {
    font-size: 13px;
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

/* ================================
   RIGHT PANEL - MODERN FORMS
   ================================ */
.schemafy-editor-right-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schemafy-info-box-v2 {
    background: #f5f3ff;
    border-radius: var(--schemafy-radius);
    border: 1px solid #ede9fe;
    padding: 18px;
}

.schemafy-info-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.schemafy-info-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schemafy-info-box-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--schemafy-gray-900);
}

.schemafy-info-box-title .dashicons {
    color: var(--schemafy-primary);
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.schemafy-seo-plugin-badge-v2 {
    background: var(--schemafy-white);
    padding: 5px 12px;
    border-radius: var(--schemafy-radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--schemafy-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--schemafy-primary-light);
}

.schemafy-meta-value-grid {
    display: grid;
    gap: 16px;
}

.schemafy-meta-value-item-v2 {
    background: var(--schemafy-white);
    padding: 12px;
    border-radius: var(--schemafy-radius-sm);
    border: 1px solid var(--schemafy-gray-200);
}

.schemafy-meta-value-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--schemafy-gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schemafy-meta-value-content-v2 {
    font-size: 14px;
    color: var(--schemafy-gray-800);
    line-height: 1.6;
}

/* ================================
   FORM SECTION
   ================================ */
.schemafy-form-section {
    background: var(--schemafy-white);
    border-radius: var(--schemafy-radius);
    padding: 20px;
    border: 1px solid var(--schemafy-gray-200);
}

.schemafy-form-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--schemafy-gray-200);
}

.schemafy-form-section-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--schemafy-gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.schemafy-form-section-header h3 .dashicons {
    color: var(--schemafy-primary);
}

.schemafy-form-group-v2 {
    margin-bottom: 24px;
}

.schemafy-label-with-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.schemafy-label-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--schemafy-gray-700);
}

.schemafy-label-text .dashicons {
    color: var(--schemafy-primary);
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.schemafy-optional-badge-v2 {
    background: var(--schemafy-gray-100);
    color: var(--schemafy-gray-600);
    padding: 4px 10px;
    border-radius: var(--schemafy-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schemafy-input-v2 {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--schemafy-gray-300);
    border-radius: var(--schemafy-radius);
    font-size: 14px;
    color: var(--schemafy-gray-900);
    transition: var(--schemafy-transition-fast);
    background: var(--schemafy-white);
}

.schemafy-input-v2:focus {
    outline: none;
    border-color: var(--schemafy-primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 245, 0.1);
}

.schemafy-textarea-v2 {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--schemafy-gray-300);
    border-radius: var(--schemafy-radius);
    font-size: 14px;
    color: var(--schemafy-gray-900);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: var(--schemafy-transition-fast);
    background: var(--schemafy-white);
}

.schemafy-textarea-v2:focus {
    outline: none;
    border-color: var(--schemafy-primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 245, 0.1);
}

/* Input Footer */
.schemafy-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 12px;
}

.schemafy-char-counter-v2 {
    font-size: 11px;
    font-weight: 600;
    color: var(--schemafy-primary);
    padding: 4px 10px;
    background: #f5f3ff;
    border-radius: var(--schemafy-radius-sm);
    white-space: nowrap;
    border: 1px solid #ede9fe;
}

.schemafy-help-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--schemafy-gray-500);
    flex: 1;
}

.schemafy-help-inline .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

/* ================================
   SEO INDICATORS - MODERN
   ================================ */
.schemafy-seo-indicator-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--schemafy-radius);
    font-size: 12px;
    font-weight: 600;
    background: var(--schemafy-gray-100);
    border: 1px solid var(--schemafy-gray-300);
    transition: var(--schemafy-transition-fast);
}

.schemafy-seo-indicator-v2.good {
    background: #d1fae5;
    border-color: var(--schemafy-success-light);
    color: #065f46;
}

.schemafy-seo-indicator-v2.warning {
    background: #fef3c7;
    border-color: var(--schemafy-warning);
    color: #92400e;
}

.schemafy-seo-indicator-v2.bad {
    background: #fee2e2;
    border-color: var(--schemafy-danger-light);
    color: #991b1b;
}

/* ================================
   PREVIEW CARDS - MODERN
   ================================ */
.schemafy-preview-card-v2 {
    background: var(--schemafy-gray-50);
    border-radius: var(--schemafy-radius-lg);
    border: 1px solid var(--schemafy-gray-200);
    overflow: hidden;
    box-shadow: var(--schemafy-shadow);
    margin-top: 24px;
}

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

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

.schemafy-preview-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--schemafy-gray-900);
}

.schemafy-preview-title .dashicons {
    color: var(--schemafy-primary);
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.schemafy-preview-badge {
    background: var(--schemafy-primary);
    color: var(--schemafy-white);
    padding: 4px 10px;
    border-radius: var(--schemafy-radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schemafy-google-preview-v2 {
    padding: 24px;
    background: var(--schemafy-white);
}

.schemafy-google-url-v2 {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
    font-family: var(--schemafy-font-sans);
}

.schemafy-google-title-v2 {
    font-size: 20px;
    color: #1a0dab;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: var(--schemafy-font-sans);
}

.schemafy-google-description-v2 {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
    font-family: var(--schemafy-font-sans);
}

/* ================================
   BUTTONS - MODERN GRADIENT
   ================================ */
.schemafy-form-actions-v2 {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--schemafy-gray-200);
}

.schemafy-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--schemafy-primary);
    color: var(--schemafy-white);
    border: none;
    border-radius: var(--schemafy-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--schemafy-transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.schemafy-btn-primary:hover {
    background: var(--schemafy-primary-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schemafy-btn-primary:active {
    transform: translateY(0);
}

.schemafy-btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* Button disabled state */
.schemafy-btn-secondary:disabled,
.schemafy-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.schemafy-btn-secondary[aria-busy="true"],
.schemafy-btn-primary[aria-busy="true"] {
    position: relative;
}

/* Spinning animation */
.dashicons.spin {
    animation: schemafy-spin 1s linear infinite;
}

@keyframes schemafy-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus states */
.schemafy-btn-secondary:focus-visible,
.schemafy-btn-primary:focus-visible {
    outline: 3px solid rgba(79, 110, 245, 0.5);
    outline-offset: 2px;
}

/* ================================
   EMPTY STATE - MODERN
   ================================ */
.schemafy-empty-state-v2 {
    background: var(--schemafy-gray-50);
    border-radius: var(--schemafy-radius-lg);
    border: 2px dashed var(--schemafy-gray-300);
    padding: 48px 32px;
    text-align: center;
    margin: 24px 0;
}

.schemafy-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--schemafy-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schemafy-empty-icon .dashicons {
    color: var(--schemafy-white);
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.schemafy-empty-state-v2 h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--schemafy-gray-900);
    margin: 0 0 8px 0;
}

.schemafy-empty-state-v2 p {
    font-size: 14px;
    color: var(--schemafy-gray-600);
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.schemafy-empty-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.schemafy-tip-item {
    background: var(--schemafy-white);
    padding: 16px;
    border-radius: var(--schemafy-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--schemafy-gray-700);
    border: 1px solid var(--schemafy-gray-200);
    box-shadow: var(--schemafy-shadow-sm);
    transition: var(--schemafy-transition-fast);
}

.schemafy-tip-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--schemafy-shadow);
}

.schemafy-tip-item .dashicons {
    color: var(--schemafy-primary);
    width: 20px;
    height: 20px;
    font-size: 20px;
    flex-shrink: 0;
}

/* ================================
   DIVIDER
   ================================ */
.schemafy-divider-v2 {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--schemafy-gray-200), transparent);
    margin: 24px 0;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1280px) {
    .schemafy-meta-editor-v2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .schemafy-editor-left-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .schemafy-card-body-v2 {
        padding: 20px;
    }

    .schemafy-form-section {
        padding: 20px;
    }

    .schemafy-empty-state-v2 {
        padding: 48px 24px;
    }

    .schemafy-empty-tips {
        grid-template-columns: 1fr;
    }

    .schemafy-form-actions-v2 {
        flex-direction: column-reverse;
    }

    .schemafy-form-actions-v2 button {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   APPLE THEME — light chrome on Meta Tags screens (loads last here).
   Mirrors the recreation in admin-v2.css. Delete to EOF to revert.
   ═══════════════════════════════════════════════════════════════════ */
.schemafy-card-header-v2,
.schemafy-editor-left-panel-header {
    background: var(--schemafy-white);
    border-bottom: 1px solid var(--schemafy-gray-200);
}
.schemafy-card-header-v2 h2,
.schemafy-editor-left-panel-header h4 {
    color: var(--schemafy-gray-900);
}
.schemafy-card-header-v2 h2 .dashicons,
.schemafy-editor-left-panel-header .dashicons {
    color: var(--schemafy-gray-400);
}
.schemafy-card-description {
    color: var(--schemafy-gray-500);
}
.schemafy-card-header-badge {
    background: var(--schemafy-gray-100);
    border: 1px solid var(--schemafy-gray-200);
    color: var(--schemafy-gray-600);
}
