/* ==========================================================================
   NATIONAL SYMBOLS INTERACTIVE GALLERY — page-specific styles
   Builds on shared tokens defined in ../../styles.css
   ========================================================================== */

.symbols-body {
    background: var(--bg-dark);
}

/* ---------- Hero ---------- */
.symbols-hero {
    padding: calc(var(--navbar-height) + 60px) 24px 50px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 153, 51, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(18, 136, 7, 0.12) 0%, transparent 55%);
}
.symbols-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.symbols-hero .hero-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 600;
}

.symbols-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 18px;
    line-height: 1.15;
}

.symbols-hero h1 span {
    background: var(--gradient-saffron-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.symbols-hero p {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .stat-box strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
}

.hero-stats .stat-box span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ---------- Workspace ---------- */
.symbols-workspace {
    padding: 10px 24px 100px;
}

.symbols-container {
    max-width: 1150px;
    margin: 0 auto;
}

.category-chips-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-chip {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-snappy);
    white-space: nowrap;
}

.btn-chip:hover {
    border-color: var(--primary-saffron);
    color: var(--text-primary);
}

.btn-chip.active {
    background: var(--gradient-saffron-gold);
    color: #1a1200;
    border-color: transparent;
    font-weight: 700;
    box-shadow: var(--shadow-glow-active);
}

.search-box input {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    min-width: 220px;
    outline: none;
    transition: var(--transition-snappy);
}

.search-box input:focus {
    border-color: var(--primary-saffron);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* ---------- Symbols grid ---------- */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.symbol-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 26px 22px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.symbol-card:hover {
    border-color: var(--primary-saffron);
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.symbol-card.hidden-by-filter {
    display: none;
}

.symbol-card .symbol-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
}

.symbol-card .symbol-type {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.symbol-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.symbol-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
}

/* ---------- Modal ---------- */
.symbols-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 15, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.symbols-modal-overlay.open {
    display: flex;
}

.symbols-modal-card {
    background: var(--bg-dark-modal);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary-saffron);
}

.modal-icon-preview {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 14px;
}

.modal-category-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 176, 31, 0.12);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.modal-content-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.modal-symbol-name {
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 18px;
}

.modal-content-details h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary-saffron);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 18px 0 8px;
}

.modal-content-details h4:first-of-type {
    margin-top: 0;
}

.modal-content-details > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}

.modal-facts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.modal-fact-item {
    display: flex;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-fact-item::before {
    content: "✦";
    flex-shrink: 0;
    color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .category-chips-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
    }
}