/* The 圖像 section's dashboard header (src/components/SectionDashboard), used by 一頁圖解 and 書籍動畫.
   Every value is copied from /gallery's header in src/pages/gallery.module.css so the three pages
   open identically. The panel is dark in both themes, like the gallery's, so its colours are fixed. */

.os-dash-header {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    max-width: 1320px;
    margin: 0 auto 1.5rem;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 10%, rgba(212, 175, 55, 0.17), transparent 28%),
        linear-gradient(135deg, #26172f 0%, #17131d 58%, #101017 100%);
    box-shadow: 0 24px 60px rgba(18, 12, 22, 0.18);
    color: #fffaf0;
    text-align: left;
}

.os-dash-intro,
.os-dash-controls {
    min-width: 0;
}

.os-dash-eyebrow {
    margin: 0 0 0.7rem;
    color: #e8c85e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.os-dash-title {
    margin: 0 0 0.8rem;
    color: #fffaf0;
    font-size: clamp(2.45rem, 5vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.os-dash-subtitle {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 250, 240, 0.72);
    font-size: 1.08rem;
    line-height: 1.75;
}

.os-dash-controls {
    display: grid;
    gap: 1.35rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(12px);
}

.os-dash-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.os-dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 0;
    min-height: 64px;
    padding: 0.5rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 250, 240, 0.68);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

a.os-dash-tile:hover {
    color: #fffaf0;
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.os-dash-tileCurrent {
    background: #fffaf0;
    color: #17131d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.os-dash-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.os-dash-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.os-dash-fact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 36px;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 250, 240, 0.75);
    font-size: 0.88rem;
    font-weight: 700;
}

.os-dash-fact svg {
    flex: 0 0 auto;
    color: #e8c85e;
}

@media (max-width: 940px) {
    .os-dash-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 620px) {
    .os-dash-header {
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .os-dash-title {
        font-size: 2.25rem;
    }

    .os-dash-controls {
        gap: 0.85rem;
        padding: 0.75rem;
        border-radius: 15px;
    }

    .os-dash-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-dash-details {
        align-items: stretch;
        flex-direction: column;
    }

    .os-dash-facts {
        gap: 0.45rem;
    }

    .os-dash-fact {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.8rem;
    }
}
