/* =========================================================
   HNT Christmas v7 - Snowman Speech Bubble + Varied Snow
   ========================================================= */

body.hnt-christmas-v7 {
    background: linear-gradient(180deg, #e4f1fc 0%, #f3f9fe 45%, #e5f1fc 100%) !important;
    overflow-x: hidden;
}

/* Header & Search Bar Snowy Trim */
body.hnt-christmas-v7 .header {
    position: relative;
    background: linear-gradient(180deg, #d8ebfc 0%, #eef6fe 100%) !important;
    box-shadow: 0 4px 16px rgba(110, 160, 210, 0.16);
}

body.hnt-christmas-v7 .header-top {
    background-color: rgba(205, 230, 252, 0.65) !important;
}

body.hnt-christmas-v7 .header-bottom .header-right .highlight {
    color: #d62d39 !important;
    font-weight: 700;
}

/* Header ke neeche uneven natural barf */
body.hnt-christmas-v7 .header::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 6;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 20' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 L1440,0 L1440,6 C1360,16 1290,3 1210,11 C1120,18 1040,4 950,12 C860,19 780,3 690,10 C600,17 510,5 420,13 C330,20 240,4 150,12 C80,17 35,8 0,7 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    filter: drop-shadow(0 3px 4px rgba(105, 155, 200, 0.28));
}

/* Category Cards Base Styling */
.hnt-cat-card {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #d9ebfc !important;
    box-shadow: 0 6px 18px rgba(120, 165, 210, 0.14) !important;
    overflow: visible !important;
    margin-top: 8px;
}

/* 3 Variations of Accumulated Snow */
.hnt-snow-var-1, .hnt-snow-var-2, .hnt-snow-var-3 {
    position: relative !important;
    overflow: visible !important;
}

.hnt-snow-var-1::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -1px;
    width: 68%;
    height: 16px;
    z-index: 10;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,15 C15,1 55,0 95,6 C135,12 175,8 200,16 C175,21 130,15 85,19 C45,23 15,19 0,17 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    filter: drop-shadow(0 3px 3px rgba(95, 145, 195, 0.32));
}

.hnt-snow-var-2::before {
    content: "";
    position: absolute;
    top: -8px;
    right: -1px;
    width: 72%;
    height: 16px;
    z-index: 10;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,16 C30,8 70,11 110,5 C145,0 185,2 200,15 L200,18 C175,21 140,14 100,19 C60,23 25,18 0,16 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    filter: drop-shadow(0 3px 3px rgba(95, 145, 195, 0.32));
}

.hnt-snow-var-3::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 14%;
    width: 72%;
    height: 14px;
    z-index: 10;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,14 C25,4 65,1 100,4 C135,7 175,3 200,14 C170,18 135,14 100,17 C65,20 30,16 0,14 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    filter: drop-shadow(0 3px 3px rgba(95, 145, 195, 0.3));
}

/* =========================================================
   MINI INLINE SNOWMEN
   ========================================================= */
.hnt-snowman-inline {
    position: absolute;
    width: 52px;
    height: 64px;
    z-index: 25;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(60, 105, 155, 0.38));
    animation: hnt-snowman-wobble 3.8s ease-in-out infinite;
    transform-origin: bottom center;
}

.hnt-snowman-inline svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================================
   BOTTOM-LEFT SNOWMAN + FESTIVE SPEECH BUBBLE
   ========================================================= */
#hnt-snowman-widget {
    position: fixed;
    bottom: 12px;
    left: 18px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

#hnt-fixed-snowman {
    width: 68px;
    height: 84px;
    flex-shrink: 0;
    filter: drop-shadow(0 5px 10px rgba(55, 100, 150, 0.4));
    animation: hnt-snowman-wobble 4.2s ease-in-out infinite;
    transform-origin: bottom center;
}

#hnt-fixed-snowman svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Cute Snowy Message Bubble */
#hnt-snowman-bubble {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
    border: 2px solid #b8daf8;
    border-radius: 16px 16px 16px 4px;
    padding: 9px 26px 9px 13px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(75, 125, 175, 0.25);
    color: #1b3b5c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    max-width: 245px;
    pointer-events: auto;
    animation: hnt-bubble-float 3.5s ease-in-out infinite;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Bubble ke upar chhoti si barf ki layer */
#hnt-snowman-bubble::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 8px;
    right: 12px;
    height: 10px;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 60%, #ffffff 60%, transparent 70%);
    filter: drop-shadow(0 1px 2px rgba(110, 160, 210, 0.3));
}

/* Bubble pointer arrow towards Snowman */
#hnt-snowman-bubble::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: -9px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid #ffffff;
    filter: drop-shadow(-2px 1px 1px rgba(120, 170, 215, 0.4));
}

#hnt-snowman-bubble .hnt-msg-title {
    display: block;
    color: #d62828;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

#hnt-snowman-bubble .hnt-bubble-close {
    position: absolute;
    top: 4px;
    right: 7px;
    background: none;
    border: none;
    color: #7a9bb8;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

#hnt-snowman-bubble .hnt-bubble-close:hover {
    color: #d62828;
}

@keyframes hnt-snowman-wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes hnt-bubble-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Bottom Snow Drift */
#hnt-bottom-snow {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 9997;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath fill='%23dbebfb' d='M0,44 L0,20 C180,4 360,32 540,16 C720,0 900,30 1080,14 C1260,0 1360,24 1440,12 L1440,44 Z'/%3E%3Cpath fill='%23ffffff' d='M0,44 L0,28 C200,12 380,38 560,22 C740,6 920,36 1100,20 C1280,4 1370,30 1440,22 L1440,44 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    filter: drop-shadow(0 -2px 6px rgba(120, 165, 210, 0.25));
}

/* Falling Snowflakes Layer */
#hnt-snow-v7 {
    position: fixed;
    inset: 0;
    z-index: 9998;
    overflow: hidden;
    pointer-events: none;
    contain: layout style paint;
}

#hnt-snow-v7 .hnt-flake-v7 {
    position: absolute;
    top: -40px;
    display: block;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 4px #4a89c8, 0 0 8px rgba(110, 170, 230, 0.8);
    opacity: var(--opacity);
    transform: translate3d(0, 0, 0);
    animation: hnt-fall-v7 var(--time) linear forwards;
    will-change: transform;
}

@keyframes hnt-fall-v7 {
    to {
        transform: translate3d(var(--drift), calc(100vh + 60px), 0) rotate(var(--spin));
    }
}

@media (max-width: 767px) {
    #hnt-bottom-snow { height: 18px; }
    #hnt-snowman-widget { left: 8px; bottom: 8px; gap: 6px; }
    #hnt-fixed-snowman { width: 48px; height: 60px; }
    #hnt-snowman-bubble { font-size: 11px; padding: 7px 22px 7px 10px; max-width: 225px; margin-bottom: 16px; }
    .hnt-snowman-inline { width: 38px; height: 48px; }
}