﻿@import url("fonts.css");

/* ===================================================================
   HIDDEN ROUTES (हिन्दी) ”” Premium Devanagari Design System
   Website: https://hi.hiddenroutes.in
   Theme: Regal Obsidian & Gold Heritage Luxury
   =================================================================== */

/* --- DESIGN TOKENS --- */
:root {
    --bg: #060608;
    --bg-surface: #0c0c10;
    --bg-elevated: rgba(255, 255, 255, 0.035);
    --bg-card: rgba(20, 20, 26, 0.7);
    --bg-card-hover: rgba(30, 30, 40, 0.85);

    --gold: #C5A059;
    --gold-light: #dfbe78;
    --gold-dark: #967432;
    --gold-dim: rgba(197, 160, 89, 0.15);
    --gold-glow: rgba(197, 160, 89, 0.35);
    --gold-subtle: rgba(197, 160, 89, 0.06);

    --text-primary: #f5f2eb;
    --text-secondary: #a39c91;
    --text-muted: #66615b;
    --text-accent: #e5c17d;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);
    --border-gold: rgba(197, 160, 89, 0.35);
    --border-gold-bright: rgba(197, 160, 89, 0.75);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.75);
    --shadow-gold: 0 0 35px rgba(197, 160, 89, 0.18);

    --glass-bg: rgba(12, 12, 16, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px) saturate(1.4);

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);

    --nav-height: 76px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & ACCESSIBILITY --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8; /* Generous line height prevents Hindi matra clipping */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-bottom: var(--safe-bottom);
    position: relative;
}

/* Devanagari Ambient Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 20% 15%, rgba(160, 90, 20, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 15%, rgba(90, 40, 140, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 75% 80%, rgba(20, 85, 110, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 10% 85%, rgba(140, 65, 15, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 35% 35% at 50% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: ambientShift 32s ease-in-out infinite;
}

@keyframes ambientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

::selection {
    background: var(--gold-dim);
    color: var(--gold-light);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: 16px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.heading-display {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 20%, var(--gold-light) 75%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading-gold {
    color: var(--gold);
}

.subheading-gold {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}

.subheading-gold::before,
.subheading-gold::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

p.lead {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #ded7cb;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    padding-left: max(var(--space-md), var(--safe-left));
    padding-right: max(var(--space-md), var(--safe-right));
}

.container-narrow {
    max-width: 860px;
}

.section {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: var(--space-2xl) 0;
}

.section-sm {
    padding: var(--space-lg) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ===================================================================
   NAVIGATION BAR
   =================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--nav-height) + var(--safe-top));
    padding-top: var(--safe-top);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

.site-logo .logo-badge {
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher Badge */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    font-size: 0.78rem;
    gap: 4px;
}

.lang-pill {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
}

.lang-pill.active {
    background: var(--gold);
    color: #060608;
    font-weight: 700;
}

.lang-pill:not(.active):hover {
    color: var(--text-primary);
}

/* Search Trigger Button */
.search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    transition: all var(--transition);
}

.search-trigger:hover {
    border-color: var(--border-gold);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.search-trigger kbd {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--nav-height) + var(--safe-top));
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 6, 8, 0.96);
        backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem var(--space-md);
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.3s ease;
        border-bottom: 1px solid var(--border);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.25rem;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4.5rem;
    overflow: hidden;
    text-align: center;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.1);
}

.hero-description {
    max-width: 760px;
    margin: 1.25rem auto 2rem;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* Hero Search Box */
.hero-search-box {
    max-width: 650px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero-search-inner {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 20px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search-inner:focus-within {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.hero-search-inner input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    padding-right: 12px;
}

.hero-search-inner input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    background: var(--gold);
    color: #060608;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    transition: background var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-search-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Quick Filter Pills */
.quick-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.quick-pill:hover {
    background: var(--gold-dim);
    border-color: var(--border-gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    max-width: 950px;
    margin: 3.5rem auto 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================================================
   FEATURED & CIRCUIT CARDS
   =================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111116;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-link-text {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card:hover .card-link-text {
    color: var(--gold-light);
}

/* ===================================================================
   STATE DIRECTORY GRID
   =================================================================== */
.state-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
}

.state-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateX(4px);
}

.state-info {
    display: flex;
    flex-direction: column;
}

.state-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.state-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.state-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.state-card:hover .state-arrow {
    transform: translateX(4px);
    color: var(--gold-light);
}

/* ===================================================================
   EDITORIAL / ARTICLE / TEMPLE GUIDE LAYOUT
   =================================================================== */
.article-header {
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs .sep {
    opacity: 0.5;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item strong {
    color: var(--gold-light);
}

/* Quick Facts Callout Box */
.facts-box {
    background: linear-gradient(145deg, rgba(197, 160, 89, 0.08) 0%, rgba(12, 12, 16, 0.85) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.fact-entry {
    border-left: 2px solid var(--gold);
    padding-left: 12px;
}

.fact-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Prose Styling for Hindi Content */
.prose {
    font-size: 1.06rem;
    line-height: 1.88;
    color: #ded7cb;
}

.prose h2 {
    font-size: 1.85rem;
    margin: 2.8rem 0 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    color: var(--gold-light);
}

.prose h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.9rem;
    color: var(--text-primary);
}

.prose ul, .prose ol {
    margin: 1.25rem 0 1.5rem 1.75rem;
}

.prose li {
    margin-bottom: 0.6rem;
}

.prose blockquote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.8rem 0;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-light);
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
    background: #040406;
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.footer-brand p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 360px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: var(--text-muted);
    gap: 1rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   SEARCH MODAL
   =================================================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal-box {
    width: 90%;
    max-width: 650px;
    background: #0f0f14;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    overflow: hidden;
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    outline: none;
}

.search-modal-close {
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 4px;
}

.search-modal-close:hover {
    color: var(--text-primary);
}

.search-modal-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Floating Back-To-Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--gold);
    color: #060608;
    transform: translateY(-3px);
}
