/* Arjun Page - Premium CSS v3.0 | GSR Universe 2026 */
/* 100% Original | Mobile First | Engagement Optimized */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Poppins:wght@300;400;500;600;700;800&family=Yatra+One&display=swap');

:root {
    --bg: #FFF9F0;
    --surface: #FFFFFF;
    --text: #1A1410;
    --text-muted: #5C5146;
    --primary: #8B0000;
    --primary-dark: #5A0000;
    --secondary: #C16611;
    --gold: #D4AF37;
    --gold-light: #F5E6C8;
    --blue: #102A43;
    --blue-light: #1C3A57;
    --border: #E8DDD0;
    --shadow-sm: 0 2px 8px rgba(26, 20, 16, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 20, 16, 0.1);
    --shadow-lg: 0 12px 32px rgba(26, 20, 16, 0.15);
    --shadow-glow: 0 0 24px rgba(212, 175, 55, 0.3);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', 'Tiro Devanagari Hindi', sans-serif;
    line-height: 1.85;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(139, 0, 0, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

/* HERO HEADER - CHARACTER SPECIFIC */
.hero-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    padding: 4rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.char-hero[data-theme="divine"] {
    background: linear-gradient(135deg, #5A0000 0%, #102A43 50%, #5A0000 100%);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.char-symbol {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

.main-title {
    font-family: 'Yatra One', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3), 6px 6px 20px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.char-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* STICKY NAV */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: var(--text);
    text-decoration: none;
}

.nav-link:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* MAIN CONTAINER */
.main-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* SECTION BASE */
.content-section {
    background: var(--surface);
    padding: 3rem 3.5rem;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--gold) 100%);
}

.content-section[data-theme="war"]::before {
    background: linear-gradient(90deg, #8B0000 0%, #C16611 50%, #8B0000 100%);
}

/* SECTION HEADER */
.section-header {
    margin-bottom: 2rem;
}

.section-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Yatra One', cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    padding: 0 2px;
    font-weight: 600;
}

/* INFO CARD */
.info-card {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFBF5 100%);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--gold-light);
    box-shadow: var(--shadow-sm);
}

.info-card[data-type="divine"] {
    background: linear-gradient(135deg, #FFF9F0 0%, #E3F2FD 100%);
    border-color: var(--blue-light);
}

.highlight-card {
    border-left: 5px solid var(--gold);
}

.card-title {
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fact-list {
    list-style: none;
    margin: 0;
}

.fact-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.fact-list li:last-child {
    border-bottom: none;
}

.fact-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
}

/* TIMELINE STORY */
.timeline-story {
    position: relative;
    padding-left: 2rem;
}

.timeline-story::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 3px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--gold-light);
}

.timeline-content {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.timeline-content h3 {
    color: var(--blue);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

/* CHARACTER GRID */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.character-card {
    background: var(--bg);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.character-card:hover::before {
    transform: scaleX(1);
}

.char-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.char-name {
    font-size: 1.4rem;
    color: var(--blue);
    margin: 0;
    font-family: 'Tiro Devanagari Hindi', serif;
}

.char-tag {
    background: var(--gold-light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.char-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* SUBSECTION */
.subsection-title {
    font-size: 1.5rem;
    color: var(--blue);
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
}

/* FOOTER */
.main-footer {
    margin-top: 4rem;
}

.footer-main {
    background: var(--blue);
    color: var(--bg);
    padding: 3rem 1.5rem 2rem;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
}

.disclaimer-hi {
    text-align: center;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.disclaimer-hi strong {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.back-to-top {
    background: var(--gold);
    color: var(--primary-dark);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.back-to-top:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.footer-legal {
    background: var(--surface);
    color: var(--text-muted);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.disclaimer-en {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

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

.copyright-en {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate="fade-in"] {
    animation: fadeIn 0.8s ease-out;
}

[data-animate="slide-up"] {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-header {
        padding: 3rem 1rem 2.5rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .char-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem 1rem;
    }
    
    .main-container {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .timeline-story {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .char-symbol {
        font-size: 3.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
