/* ── Indian Independence Day Premium Theme Override ── */
/* Non-destructive, easily removable by deleting the link in default.hbs */

:root {
    --id-saffron: #FF9933;
    --id-white: #FFFFFF;
    --id-green: #138808;
    --id-navy: #000080;
    --id-navy-light: rgba(0, 0, 128, 0.05);
}

/* ── 1. Global & Structural Accents ── */
body {
    border-top: 4px solid var(--id-saffron) !important;
    position: relative;
}

/* ── 2. Header & Navigation (Premium Solid Colors) ── */
#vaikom-custom-header .main-navigation .nav a::after {
    background: var(--id-saffron) !important;
    height: 3px !important;
}
#vaikom-custom-header .main-navigation .nav a:hover,
#vaikom-custom-header .main-navigation .nav .nav-current a {
    color: var(--id-navy) !important;
    text-shadow: none !important;
}
#vaikom-custom-header .social-btn:hover {
    color: var(--id-saffron) !important;
}
#vaikom-custom-header #top-bar-weather i {
    animation: weather-glow-id 3s ease-in-out infinite !important;
}
@keyframes weather-glow-id {
    0%, 100% { color: var(--id-navy); }
    50% { color: var(--id-saffron); }
}

/* ── 3. Breaking News Ticker (India Green & SVG Chakra) ── */
.ticker-bar {
    background: var(--id-green) !important;
}
.ticker-label {
    background: var(--id-navy) !important;
}
.ticker-label::after {
    border-left-color: var(--id-navy) !important;
}
.ticker-pulse {
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23ffffff' stroke-width='6'/%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M50 5 L53 50 L47 50 Z'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(15 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(30 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(45 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(60 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(75 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(90 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(105 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(120 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(135 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(150 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(165 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(180 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(195 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(210 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(225 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(240 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(255 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(270 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(285 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(300 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(315 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(330 50 50)'/%3E%3Cpath d='M50 5 L53 50 L47 50 Z' transform='rotate(345 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='10' fill='%23ffffff'/%3E%3C/svg%3E") !important;
    background-size: cover;
    animation: spinChakra 4s linear infinite !important;
    border-radius: 50%;
    width: 12px !important;
    height: 12px !important;
}
@keyframes spinChakra {
    100% { transform: rotate(360deg); }
}

/* ── 4. Background Watermark ── */
body::before {
    content: "";
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23000080' stroke-width='4'/%3E%3Cg fill='%23000080'%3E%3Cpath d='M50 5 L52 50 L48 50 Z'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(15 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(30 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(45 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(60 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(75 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(90 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(105 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(120 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(135 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(150 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(165 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(180 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(195 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(210 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(225 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(240 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(255 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(270 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(285 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(300 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(315 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(330 50 50)'/%3E%3Cpath d='M50 5 L52 50 L48 50 Z' transform='rotate(345 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='10' fill='%23000080'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.03; 
    z-index: -1;
    pointer-events: none;
    animation: spinChakraSlow 90s linear infinite;
}
@keyframes spinChakraSlow {
    100% { transform: rotate(360deg); }
}

/* ── 5. Detail Elements & Section Headers ── */
.section-head, .gh-topic-header {
    border-bottom: 2px solid var(--id-green) !important;
    position: relative;
}
.section-title::before, .gh-topic-name::before {
    content: "■" !important;
    color: var(--id-saffron) !important;
    font-size: 0.9em;
    margin-right: 8px;
    vertical-align: baseline;
}

/* ── 6. Accent Lines and Card Hover Glows (Excluding Vaikathukaran) ── */
.gh-card:not(.vaikathukaran-card) {
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}
.gh-card:not(.vaikathukaran-card):hover {
    border-bottom-color: var(--id-saffron) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(255, 153, 51, 0.08) !important; 
}
.gh-article-tag {
    color: var(--id-navy) !important;
}

/* ── 7. Footer Upgrades ── */
.gh-foot {
    border-top: 4px solid var(--id-green) !important;
    position: relative;
}
.gh-foot::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--id-saffron);
}

/* ── 8. CSS-only Lightweight Confetti Animation ── */
body::after {
    content: "";
    position: fixed;
    top: -20px;
    left: 0;
    width: 6px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 
        10vw -50px 0 0 var(--id-saffron),
        25vw -20px 0 0 var(--id-white),
        40vw -80px 0 0 var(--id-green),
        55vw -10px 0 0 var(--id-saffron),
        70vw -100px 0 0 var(--id-green),
        85vw -40px 0 0 var(--id-white),
        95vw -70px 0 0 var(--id-saffron),
        
        15vw -150px 0 0 var(--id-green),
        35vw -180px 0 0 var(--id-saffron),
        60vw -120px 0 0 var(--id-white),
        80vw -200px 0 0 var(--id-green);
        
    animation: fallingParticles 15s linear infinite;
    opacity: 0.7;
}

@keyframes fallingParticles {
    0% { transform: translateY(-50px) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}


/* ── 9. Mobile Responsive Drawer & Header Overrides ── */
@media (max-width: 768px) {
    /* Mobile Top Bar - Switch to Saffron to match the top of the flag */
    .mobile-nav-header {
        background: var(--id-saffron) !important;
        border-bottom: 3px solid var(--id-green) !important;
    }
    
    /* Subtle highlight for hamburger */
    .hamburger-btn {
        background: rgba(255,255,255,0.15) !important;
    }

    /* Mobile Drawer active item & hover */
    .main-navigation-content#mobile-nav-content .nav li.nav-current a,
    .main-navigation-content#mobile-nav-content .nav li a:hover {
        background: var(--id-navy-light) !important;
        color: var(--id-navy) !important;
        border-left: 4px solid var(--id-saffron) !important;
    }

    /* Mobile Drawer - Submit News button */
    .mobile-menu-submit-btn {
        background: linear-gradient(160deg, var(--id-saffron) 0%, #D4791B 100%) !important;
        box-shadow: 0 6px 16px rgba(255, 153, 51, 0.32), inset 0 1px 0 rgba(255,255,255,.25) !important;
    }

    /* Social Icons inside Mobile Drawer */
    .ms-btn {
        background: rgba(19, 136, 8, 0.08) !important; /* light green tint */
        color: var(--id-green) !important;
    }
    .ms-btn:active {
        background: var(--id-green) !important;
        color: #fff !important;
    }

    /* Close Menu button */
    .close-menu-btn:hover {
        color: var(--id-saffron) !important;
        border-color: var(--id-saffron) !important;
    }
}
