/* Modern Hybrid Design System Tokens */
:root {
    /* Primary Patriotic Theme */
    --color-patriotic-indigo: #1e1b4b;
    --color-patriotic-saffron: #f97316;
    --color-patriotic-white: #ffffff;
    --color-patriotic-silver: #f3f4f6;

    /* Authority / News Room Theme */
    --color-news-maroon: #800000;
    --color-news-gold: #ffd700;
    --color-news-dark: #1a1a1a;

    /* Global Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.hero-scale-anim {
    animation: heroScale 20s ease-in-out infinite alternate;
}

@keyframes heroScale {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Newsroom / Authority Theme */
.theme-newsroom {
    background-color: var(--color-news-dark);
    color: #e5e7eb;
}


.theme-newsroom .hero-section {
    background: radial-gradient(circle at center, #2a0000 0%, var(--color-news-dark) 100%);
    border-bottom: 2px solid var(--color-news-gold);
}

.theme-newsroom .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.theme-newsroom .state-btn.active,
.theme-newsroom .tab-btn.active {
    background-color: var(--color-news-gold) !important;
    color: black !important;
}

/* Ticker Animation */
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 90s linear infinite;
}

.animate-ticker:hover {
    animation-play-state: paused;
    cursor: pointer;
}

/* National Interactive Map & Intelligence Hub */
#india-map-container svg {
    width: 100%;
    max-width: 850px;
    max-height: 75vh;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#india-map-container path {
    fill: #1e293b;
    stroke: #334155;
    stroke-width: 0.8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#india-map-container path:hover {
    fill: #f97316 !important;
    stroke: #ffffff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.6));
    z-index: 50;
}

#india-map-container path.active {
    fill: #f97316 !important;
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.8));
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scan {
    animation: scan 4s linear infinite;
}

#state-intelligence-hub {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.9));
}

.state-content {
    display: none;
}

.state-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header must always work */
header {
    pointer-events: auto;
}



/* Gallery Filter Active State */
.gallery-filter.active {
    background-color: #ea580c;
    color: white;
}

/* Gallery Item Animation */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* Custom Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Success/Error Message Styles */
.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Elite UI - Strategic Election Monitor */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.monitor-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border-left: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.monitor-card.active {
    background: rgba(249, 115, 22, 0.08);
    border-left-color: #f97316;
    box-shadow: inset 4px 0 15px rgba(249, 115, 22, 0.1);
}

.monitor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.glow-text-orange {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.glow-text-white {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.titan-digit {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.2));
}

@keyframes signal-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.signal-dot {
    animation: signal-pulse 2s infinite;
}

.radar-sweep {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0% 80%, rgba(249, 115, 22, 0.05) 90%, transparent 100%);
    top: -50%;
    left: -50%;
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    header,
    footer,
    #backToTop,
    .no-print {
        display: none;
    }
}