/* ══════════════════════════════════════════════════════════════
   css/dasara-theme.css — OnlineRealGames Dasara Festival Theme
   Seasonal festive theme: warm ivory background, marigold garlands,
   traditional diyas, Dasara Quest banner, offers strip, & footer greeting.
   ══════════════════════════════════════════════════════════════ */

/* =========================================================
   1. THEME VARIABLES & GLOBAL SCOPE
========================================================= */

body.theme-dasara {
    --festive-gold: #f59e0b;
    --festive-gold-dark: #b45309;
    --festive-gold-light: #fef08a;
    --festive-saffron: #ea580c;
    --festive-crimson: #7f1d1d;
    --festive-maroon: #5b0619;
    --festive-cream-bg: #fcf8f0;
    --festive-surface: #ffffff;
    --festive-border-gold: rgba(224, 159, 62, 0.35);
    --festive-border-subtle: rgba(217, 119, 6, 0.18);
    --festive-glow: 0 4px 20px rgba(245, 158, 11, 0.16);

    /* Override homepage background variable */
    --h-bg: #fcf8f0;
    --h-line: rgba(224, 159, 62, 0.22);
}

html body.theme-dasara {
    background-color: var(--festive-cream-bg) !important;
}

body.theme-dasara .home {
    background-color: transparent;
}

/* =========================================================
   2. FESTIVE HEADER REDESIGN
========================================================= */

/* Warm ivory / subtle cream header background with gold bottom border */
.site-header,
body.theme-dasara .site-header {
    background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%) !important;
    border-top: 3px solid #f59e0b !important;
    border-bottom: 1.5px solid rgba(224, 159, 62, 0.32) !important;
    box-shadow: 0 4px 18px rgba(180, 83, 9, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    position: sticky;
}

/* Header decor layer: marigolds and hanging diyas */
.site-header__festive-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Top delicate golden floral garland border */
.site-header__festive-top-garland {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-image: radial-gradient(circle at 10px 4px, #f59e0b 2.5px, transparent 3px),
                      radial-gradient(circle at 20px 7px, #ea580c 2px, transparent 2.5px);
    background-size: 20px 10px;
    opacity: 0.85;
}

/* Left and right hanging marigold garlands with glowing diyas */
.site-header__festive-diya {
    position: absolute;
    top: 0;
    width: 100px;
    height: 80px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.site-header__festive-diya--left {
    left: clamp(230px, 22vw, 360px);
    background-image: url('../images/dasara/header-diya-decor-left.webp');
    background-position: left top;
}

.site-header__festive-diya--right {
    right: clamp(220px, 21vw, 360px);
    background-image: url('../images/dasara/header-diya-decor.webp');
    background-position: right top;
}

/* Protect header controls above decorative artwork */
.site-header__brand,
.site-header__search,
.site-header__actions,
body.theme-dasara .site-header__brand,
body.theme-dasara .site-header__search,
body.theme-dasara .site-header__actions {
    position: relative;
    z-index: 5;
}

/* Subtle warm styling on header controls */
.site-header__explore-btn,
body.theme-dasara .site-header__explore-btn {
    border-color: rgba(217, 119, 6, 0.35) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.08) !important;
}

.site-header__explore-btn:hover,
body.theme-dasara .site-header__explore-btn:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
}

.hdr-search__form,
body.theme-dasara .hdr-search__form {
    border-color: rgba(217, 119, 6, 0.28) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.06) !important;
}

.hdr-search__form:focus-within,
body.theme-dasara .hdr-search__form:focus-within {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22), 0 2px 10px rgba(217, 119, 6, 0.12) !important;
}

.site-header__login,
body.theme-dasara .site-header__login {
    box-shadow: 0 3px 12px rgba(230, 35, 39, 0.28), 0 1px 3px rgba(245, 158, 11, 0.3) !important;
}

/* Hide hanging garlands on compact viewports to prevent overlap */
@media (max-width: 1260px) {
    .site-header__festive-diya {
        display: none !important;
    }
}

/* =========================================================
   3. DASARA QUEST HERO BANNER
========================================================= */

.dasara-quest-hero {
    margin: 6px auto var(--section-gap, 12px) !important;
    padding: 0 16px;
    max-width: 1600px;
    box-sizing: border-box;
}

.dasara-quest-hero__container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #19081e;
    border: 2px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.2), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dasara-quest-hero__container:hover {
    box-shadow: 0 12px 38px rgba(245, 158, 11, 0.28), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dasara-quest-banner {
    position: relative;
    width: 100%;
    display: block;
    line-height: 0;
}

.dasara-quest-banner__picture {
    display: block;
    width: 100%;
}

.dasara-quest-banner__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1461 / 357;
    object-fit: cover;
    border-radius: 16px;
}

/* Interactive hotspot over the "Explore Games ->" CTA button */
.dasara-quest-cta-hotspot {
    position: absolute;
    left: 17.5%;
    top: 77.8%;
    width: 11.2%;
    height: 14%;
    min-width: 90px;
    min-height: 28px;
    border-radius: 999px;
    z-index: 5;
    cursor: pointer;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

.dasara-quest-cta-hotspot:hover,
.dasara-quest-cta-hotspot:focus-visible {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.75), inset 0 0 10px rgba(255, 255, 255, 0.3);
    outline: 2px solid #fef08a;
    outline-offset: 2px;
}

.dasara-quest-cta-hotspot:active {
    transform: scale(0.98);
}

/* Accessible screen-reader label */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   4. FESTIVE OFFERS STRIP
========================================================= */

.dasara-offers-strip {
    margin: 0 auto var(--section-gap, 12px) !important;
    padding: 0 16px;
    max-width: 1600px;
    box-sizing: border-box;
}

.dasara-offers-strip__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffcf7;
    border: 1.5px solid rgba(224, 159, 62, 0.35);
    border-radius: 14px;
    padding: 10px 24px;
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.06);
    gap: 16px;
    position: relative;
    overflow: hidden;
}

/* Subtle corner festive flourish */
.dasara-offers-strip__container::before {
    content: "✦";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(245, 158, 11, 0.3);
    font-size: 11px;
}

.dasara-offers-strip__container::after {
    content: "✦";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(245, 158, 11, 0.3);
    font-size: 11px;
}

.dasara-offers-strip__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: default;
}

.dasara-offers-strip__item:hover {
    transform: translateY(-2px);
    background-color: rgba(254, 243, 199, 0.4);
}

.dasara-offers-strip__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(180, 83, 9, 0.22));
    transition: transform 0.25s ease;
}

.dasara-offers-strip__item:hover .dasara-offers-strip__icon {
    transform: scale(1.08) rotate(3deg);
}

.dasara-offers-strip__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.dasara-offers-strip__title {
    font-size: 16px;
    font-weight: 800;
    color: #7f1d1d;
    letter-spacing: 0.35px;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dasara-offers-strip__sub {
    font-size: 14px;
    color: #78350f;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dasara-offers-strip__divider {
    width: 1px;
    height: 32px;
    background: rgba(224, 159, 62, 0.32);
    flex-shrink: 0;
}

/* =========================================================
   5. HOMEPAGE GAME SECTIONS FESTIVE ACCENTS
========================================================= */

/* Harmonize featured hero card and side panels */
body.theme-dasara .hh-spot {
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 20px rgba(180, 83, 9, 0.08);
}

body.theme-dasara .hh-side {
    border: 1px solid rgba(245, 158, 11, 0.22);
}

/* Section titles with festive sparkle */
body.theme-dasara .hsec__title {
    position: relative;
    display: inline-flex;
    align-items: center;
}

body.theme-dasara .hsec__title::after {
    content: "✦";
    margin-left: 6px;
    font-size: 11px;
    color: #f59e0b;
    opacity: 0.85;
}

/* Game cards subtle warm hover aura */
body.theme-dasara .home-card:hover {
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.16);
}

/* =========================================================
   6. FESTIVE FOOTER GREETING BAR
========================================================= */

.dasara-footer-bar {
    background: linear-gradient(90deg, #5b0619 0%, #7d0d26 50%, #5b0619 100%);
    border-top: 2.5px solid #f59e0b;
    border-bottom: 2px solid #b45309;
    padding: 7px 16px;
    margin: 4px 0 0;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 10;
}

.dasara-footer-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    flex-wrap: wrap;
}

.dasara-footer-bar__text {
    font-family: var(--h-display, 'Poppins', system-ui, sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #fef08a;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.dasara-footer-bar__diya {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.85));
    animation: dasaraDiyaGlow 2.4s ease-in-out infinite alternate;
}

.dasara-footer-bar__spark {
    color: #f59e0b;
    font-size: 13px;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

@keyframes dasaraDiyaGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.65));
        transform: scale(0.97);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95));
        transform: scale(1.04);
    }
}

/* =========================================================
   7. RESPONSIVE DESIGN (TABLET & MOBILE)
========================================================= */

@media (max-width: 1024px) {
    .dasara-offers-strip__container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px 16px;
    }

    .dasara-offers-strip__divider {
        display: none;
    }
}

@media (max-width: 680px) {
    .dasara-quest-hero {
        margin: 6px auto 10px;
        padding: 0 10px;
    }

    .dasara-quest-hero__container {
        border-radius: 12px;
        border-width: 1.5px;
    }

    .dasara-quest-banner__img {
        border-radius: 10px;
    }

    /* On mobile, expand the hotspot touch area */
    .dasara-quest-cta-hotspot {
        left: 15%;
        top: 75%;
        width: 18%;
        height: 18%;
        min-width: 80px;
        min-height: 28px;
    }

    .dasara-offers-strip {
        margin: 0 auto 12px;
        padding: 0 10px;
    }

    .dasara-offers-strip__container {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 12px;
        gap: 8px;
    }

    .dasara-offers-strip__item {
        gap: 8px;
        padding: 4px;
    }

    .dasara-offers-strip__icon {
        width: 34px;
        height: 34px;
    }

    .dasara-offers-strip__title {
        font-size: 13.5px;
    }

    .dasara-offers-strip__sub {
        font-size: 12px;
    }

    .dasara-footer-bar {
        padding: 6px 12px;
    }

    .dasara-footer-bar__text {
        font-size: 13px;
    }

    .dasara-footer-bar__diya svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 420px) {
    .dasara-offers-strip__container {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dasara-offers-strip__title {
        font-size: 14.5px;
    }

    .dasara-offers-strip__sub {
        font-size: 13px;
    }
}
