/* ============================================================
   Schema Markup Generator — Page Styles
   File: schema-markup-generator.css
   Builds on top of Rankyfy common.css + keyword-research-extension.css
   Only adds styles not already covered by the base sheets.
   ============================================================ */


/* ============================================================
   HERO — Schema type selector + JSON-LD code output
   ============================================================ */
.schm-preview {
    display: flex;
    height: 340px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #1e1e2e;
}

/* Left — schema type picker */
.schm-selector-panel {
    width: 180px;
    flex-shrink: 0;
    background: #16162a;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schm-selector-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    flex-shrink: 0;
}

.schm-type-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.schm-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.schm-type-item:hover {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
}

.schm-type--active {
    background: rgba(255,85,0,0.08);
    border-left-color: var(--primary-color);
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

.schm-type-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.schm-type-item svg { margin-left: auto; }

/* Right — JSON-LD code output */
.schm-code-panel {
    flex: 1;
    background: #1e1e2e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schm-code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.schm-code-lang {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.schm-code-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,85,0,0.15);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.schm-copy-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.schm-copy-btn:hover {
    background: rgba(255,85,0,0.15);
    border-color: rgba(255,85,0,0.3);
    color: var(--primary-color);
}

/* Code lines */
.schm-code-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schm-line {
    font-size: 10.5px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: nowrap;
}

.schm-i1 { padding-left: 16px; }
.schm-i2 { padding-left: 32px; }

/* Token colours — VS Code Dark+ inspired */
.schm-p { color: #d4d4d4; }           /* punctuation / operators */
.schm-k { color: #9cdcfe; }           /* keys */
.schm-s { color: #ce9178; }           /* string values */
.schm-n { color: #b5cea8; }           /* numbers */
.schm-c { color: #6a9955; font-style: italic; } /* comments */

/* Footer */
.schm-code-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.schm-valid-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #28a745;
    background: rgba(40,167,69,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(40,167,69,0.2);
}

.schm-footer-hint {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
}


/* ============================================================
   SECTION 2 — Schema type chips (inside kre-issue-card)
   ============================================================ */
.schm-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.schm-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: all 0.2s;
}

.schm-type-chip:hover {
    background: rgba(var(--chip-color), 0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.schm-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.schm-more-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.07);
    opacity: 1;
}


/* ============================================================
   SECTION 3 — Rich result SERP preview (inside kre-table-card)
   ============================================================ */
.schm-rich-preview {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-family: arial, sans-serif;
}

.schm-rich-breadcrumb {
    font-size: 11px;
    color: #202124;
    margin-bottom: 4px;
    opacity: 0.6;
}

.schm-rich-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a0dab;
    margin-bottom: 6px;
    line-height: 1.3;
}

.schm-rich-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.schm-rich-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.schm-rich-author {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #202124;
}

.schm-rich-date {
    display: block;
    font-size: 11px;
    color: #70757a;
}

.schm-rich-desc {
    font-size: 12px;
    color: #4d5156;
    line-height: 1.5;
    margin-bottom: 6px;
}

.schm-rich-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #f5a623;
}

.schm-rich-rating {
    font-weight: 700;
    color: #202124;
}

.schm-rich-reviews {
    color: #70757a;
    font-size: 11px;
}

/* Validation pills row under preview */
.schm-validation-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schm-val-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.schm-val--pass {
    background: rgba(40,167,69,0.08);
    color: #28a745;
    border: 1px solid rgba(40,167,69,0.2);
}

.schm-val--warn {
    background: rgba(255,193,7,0.1);
    color: #d4a400;
    border: 1px solid rgba(255,193,7,0.25);
}

.schm-val--fail {
    background: rgba(220,53,69,0.08);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,0.2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .schm-preview {
        flex-direction: column;
        height: auto;
    }

    .schm-selector-panel {
        width: 100%;
        max-height: 140px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .schm-type-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .schm-type-item {
        border-left: none;
        border-radius: 6px;
        padding: 5px 10px;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .schm-type--active {
        border-color: var(--primary-color);
    }

    .schm-code-panel {
        max-height: 200px;
    }

    .schm-validation-row {
        gap: 6px;
    }
}