/* Shared styles for iframe doc pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink-black: #0a0a0a;
    --deep-black: #000000;
    --ink-gray: #1a1a1a;
    --splash-white: #ffffff;
    --off-white: #f5f5f5;
    --accent-silver: #c0c0c0;
    --ember-red: rgba(200, 0, 0, 0.8);
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--deep-black);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    padding: 3rem;
    max-width: 1000px;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--splash-white);
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Documentation Sections */
.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--splash-white);
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Feature Documentation Cards */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-doc {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    scroll-margin-top: 20px;
}

.feature-doc-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.feature-doc-title {
    flex: 1;
}

.feature-doc-title h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--splash-white);
    margin-bottom: 0.5rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(200, 0, 0, 0.15);
    color: var(--splash-white);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(200, 0, 0, 0.3);
}

.feature-description {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Feature Details List */
.feature-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.feature-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--splash-white);
    margin-bottom: 1rem;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-content strong {
    display: block;
    color: var(--splash-white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Info Boxes */
.info-box {
    background: rgba(200, 0, 0, 0.1);
    border-left: 3px solid var(--ember-red);
    border-radius: 4px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.info-box.warning {
    background: rgba(200, 150, 0, 0.1);
    border-left-color: rgba(200, 150, 0, 0.8);
}

.info-box-content {
    flex: 1;
}

.info-box-content strong {
    display: block;
    color: var(--splash-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box-content p {
    color: var(--text-primary);
    line-height: 1.7;
}

/* ================================ */
/* CHANGELOG VERSION CARDS          */
/* ================================ */
.version-card {
    padding: 2rem;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.version-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--splash-white);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.version-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.version-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-tag.release {
    background: rgba(0, 160, 0, 0.15);
    color: #4ade80;
    border: 1px solid rgba(0, 160, 0, 0.3);
}

.version-tag.upcoming {
    background: rgba(100, 100, 255, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(100, 100, 255, 0.3);
}

.version-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.version-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--splash-white);
    margin-bottom: 0.75rem;
}

.version-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.75rem;
}

.version-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
}

.version-list li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ember-red);
}

/* ================================ */
/* FAQ ACCORDION                    */
/* ================================ */
.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--splash-white);
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 1.5rem 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================ */
/* LUCIDE ICON STYLES               */
/* ================================ */
.icon {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.section-icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.feature-doc-header .icon {
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
}

.detail-item .icon {
    width: 18px;
    height: 18px;
    margin-top: 0.25rem;
}

.info-box .icon {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.version-category .icon {
    width: 18px;
    height: 18px;
}

.faq-chevron {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-doc {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-item.open .faq-answer {
        padding: 1.25rem 1.5rem 1.25rem;
    }
}
