/* Enhanced Natyasastra CSS - Theatrical Red & Gold Theme */
:root {
  /* Theatrical Theme Colors */
  --primary-color: #991b1b;        /* Deep theatrical red */
  --secondary-color: #fbbf24;      /* Golden spotlight */
  --accent-color: #dc2626;         /* Vibrant stage red */
  --stage-gold: #f59e0b;           /* Warm gold */
  --curtain-maroon: #7f1d1d;       /* Dark curtain */
  
  /* Background & Surface */
  --bg: #fef3c7;                   /* Warm cream stage light */
  --background-color: #fef3c7;
  --surface: #ffffff;
  --card-background: #ffffff;
  
  /* Text Colors */
  --text: #1e1e1e;
  --text-primary: #1c1917;
  --text-secondary: #991b1b;
  --text-light: #64748b;
  
  /* Borders & Shadows */
  --border: #fed7aa;
  --border-color: #fed7aa;
  --shadow-light: 0 2px 12px rgba(153, 27, 27, 0.1);
  --shadow-medium: 0 4px 20px rgba(153, 27, 27, 0.15);
  --shadow-heavy: 0 8px 32px rgba(153, 27, 27, 0.2);
  
  /* Fonts */
  --font-devanagari: 'Noto Serif Devanagari', serif;
  --font-en: 'Inter', 'Charter', 'Crimson Text', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Top Navigation */
.top-nav {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.top-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 1.3rem;
}

.top-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.top-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s;
}

.top-nav-links a:hover {
    color: var(--primary-color);
}

.top-nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #7f1d1d 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.header-ornament {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.ornament-1 {
    top: 10%;
    left: 5%;
    font-size: 6rem;
    animation: float 20s ease-in-out infinite;
}

.ornament-2 {
    top: 60%;
    right: 8%;
    font-size: 5rem;
    animation: float 15s ease-in-out infinite 2s;
}

.ornament-3 {
    bottom: 10%;
    left: 15%;
    font-size: 4rem;
    animation: float 18s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-3deg); }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-content {
    text-align: center;
}

.brand-badge {
    display: inline-flex;
    flex-direction: column;
    padding: 0.75rem 1.5rem;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.brand-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fbbf24;
}

.page-title {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.page-description {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Header Navigation */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.header-nav-link:hover,
.header-nav-link.active {
    background: rgba(251, 191, 36, 0.3);
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Breadcrumbs */
.breadcrumbs-container {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li::after {
    content: "›";
    margin: 0 0.5rem;
    color: #aaa;
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Main Content Area */
.main-content {
    min-height: 60vh;
    padding: 2rem 0;
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

/* Chapter Sidebar */
aside#chapterList {
    flex: 0 0 280px;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    height: fit-content;
    position: sticky;
    top: 2rem;
    border: 2px solid var(--border);
}

.chapter-button {
    width: 100%;
    padding: 1rem 1.2rem;
    margin: 0.5rem 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: left;
    font-family: var(--font-en);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.chapter-button::before {
    content: '🎭';
    position: absolute;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.chapter-button:hover::before,
.chapter-button.active::before {
    opacity: 0.4;
    transform: scale(1.2);
}

.chapter-button:hover,
.chapter-button.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: var(--accent-color);
    color: var(--accent-color);
    padding-left: 1.5rem;
    box-shadow: var(--shadow-light);
}

/* Verse Display */
#verseDisplay {
    flex: 1;
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border);
}

.verse {
    padding: 2.5rem;
    border-left: 5px solid var(--accent-color);
    background: linear-gradient(135deg, #fdfcfb 0%, #fef3c7 100%);
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.verse:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-left-color: var(--secondary-color);
}

.verse strong {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-family: var(--font-en);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.verse strong::before {
    content: '📜';
    font-size: 1.1rem;
}

.verse p {
    font-family: var(--font-devanagari);
    font-size: 1.5rem;
    line-height: 2.1;
    margin: 1rem 0;
    color: var(--text);
}

.learn-more-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-en);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--curtain-maroon));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(153, 27, 27, 0.3);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    flex: 1;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    opacity: 0.9;
}

.footer-links a:hover {
    color: #fbbf24;
    opacity: 1;
}

.support-buttons {
    margin: 1rem 0;
}

.support-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #7f1d1d;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-nav-container {
        padding: 0 1rem;
    }

    .top-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
    }

    .top-nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.2rem;
    }

    .page-description {
        font-size: 0.9rem;
    }

    .header-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-nav-link {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }

    main {
        flex-direction: column;
    }

    aside#chapterList {
        position: static;
        flex: 1;
        width: 100%;
    }

    #verseDisplay {
        padding: 1.5rem;
    }

    .verse {
        padding: 1.5rem;
    }

    .verse p {
        font-size: 1.3rem;
        line-height: 1.9;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Larger screens */
@media (min-width: 1100px) {
    .page-title {
        font-size: 3.5rem;
    }
    
    .page-subtitle {
        font-size: 1.7rem;
    }
    
    aside#chapterList {
        flex: 0 0 320px;
    }
    
    #verseDisplay {
        padding: 3.5rem;
    }
}