/* ==========================================================================
   SKYLINE HOSPITAL & MEDICAL CENTER — HOLIDAY / CHRISTMAS THEME STYLES
   Scoped cleanly under .shmc-holiday-active to ensure ZERO site disruption
   ========================================================================== */

/* --- 1. Holiday Announcement Ribbon (Fixed at Very Top) --- */
.shmc-holiday-ribbon {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 38px !important;
    background: linear-gradient(90deg, #991b1b 0%, #b91c1c 25%, #065f46 75%, #047857 100%) !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    z-index: 10001 !important; /* Always sits on top of .site-header (9999) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    border-bottom: 2px solid #fbbf24 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Offset the fixed header and body content so ribbon is never covered */
body.shmc-holiday-active:not(.ribbon-dismissed) .site-header {
    top: 38px !important;
}

body.shmc-holiday-active:not(.ribbon-dismissed) {
    padding-top: 38px !important;
}

.shmc-holiday-ribbon.dismissed {
    display: none !important;
}

body.shmc-holiday-active.ribbon-dismissed .site-header {
    top: 0 !important;
}

body.shmc-holiday-active.ribbon-dismissed {
    padding-top: 0 !important;
}

.shmc-holiday-ribbon-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 45px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    position: relative;
    line-height: 1.4;
}

.shmc-holiday-ribbon-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    animation: shmc-holiday-jingle 2.5s infinite ease-in-out;
    display: inline-block;
}

.shmc-holiday-ribbon-text {
    letter-spacing: 0.2px;
}

.shmc-holiday-ribbon-text strong {
    color: #fef08a;
    font-weight: 700;
}

.shmc-holiday-ribbon-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shmc-holiday-ribbon-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

@keyframes shmc-holiday-jingle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-14deg); }
    30% { transform: rotate(12deg); }
    45% { transform: rotate(-8deg); }
    60% { transform: rotate(4deg); }
    75% { transform: rotate(0deg); }
}

/* --- 2. Twinkling Christmas Fairy String Lights (Hugging Header Bottom Border) --- */
.shmc-fairy-lights {
    position: absolute;
    top: 100%; /* Sits exactly on the bottom border of the header */
    left: 0;
    width: 100%;
    height: 18px;
    pointer-events: none;
    z-index: 10005;
    overflow: visible;
}

.shmc-lightrope {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    position: relative;
    border-top: 2px solid rgba(20, 83, 45, 0.9); /* Deep evergreen wire hugging bottom edge */
}

.shmc-lightrope .bulb {
    position: relative;
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.shmc-lightrope .bulb::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 2px;
    width: 6px;
    height: 3px;
    background: #0f3d23;
    border-radius: 2px 2px 0 0;
}

/* Light Colors and Glowing Twinkle Pulses */
.shmc-lightrope .bulb-red {
    background: #ef4444;
    box-shadow: 0 2px 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.85);
    animation: shmc-twinkle-red 1.3s infinite alternate ease-in-out;
}
.shmc-lightrope .bulb-green {
    background: #10b981;
    box-shadow: 0 2px 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.85);
    animation: shmc-twinkle-green 1.6s infinite alternate ease-in-out;
}
.shmc-lightrope .bulb-gold {
    background: #f59e0b;
    box-shadow: 0 2px 8px #f59e0b, 0 0 16px rgba(245, 158, 11, 0.85);
    animation: shmc-twinkle-gold 1.1s infinite alternate ease-in-out;
}
.shmc-lightrope .bulb-blue {
    background: #06b6d4;
    box-shadow: 0 2px 8px #06b6d4, 0 0 16px rgba(6, 182, 212, 0.85);
    animation: shmc-twinkle-blue 1.8s infinite alternate ease-in-out;
}
.shmc-lightrope .bulb-white {
    background: #ffffff;
    box-shadow: 0 2px 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.95);
    animation: shmc-twinkle-white 1.4s infinite alternate ease-in-out;
}

@keyframes shmc-twinkle-red {
    0% { opacity: 0.35; filter: brightness(0.65); transform: scale(0.92); }
    100% { opacity: 1; filter: brightness(1.3); transform: scale(1.08); box-shadow: 0 3px 12px #ef4444, 0 0 22px rgba(239, 68, 68, 0.95); }
}
@keyframes shmc-twinkle-green {
    0% { opacity: 0.35; filter: brightness(0.65); transform: scale(0.92); }
    100% { opacity: 1; filter: brightness(1.3); transform: scale(1.08); box-shadow: 0 3px 12px #10b981, 0 0 22px rgba(16, 185, 129, 0.95); }
}
@keyframes shmc-twinkle-gold {
    0% { opacity: 0.4; filter: brightness(0.7); transform: scale(0.92); }
    100% { opacity: 1; filter: brightness(1.35); transform: scale(1.08); box-shadow: 0 3px 12px #f59e0b, 0 0 22px rgba(245, 158, 11, 0.95); }
}
@keyframes shmc-twinkle-blue {
    0% { opacity: 0.35; filter: brightness(0.65); transform: scale(0.92); }
    100% { opacity: 1; filter: brightness(1.3); transform: scale(1.08); box-shadow: 0 3px 12px #06b6d4, 0 0 22px rgba(6, 182, 212, 0.95); }
}
@keyframes shmc-twinkle-white {
    0% { opacity: 0.4; filter: brightness(0.7); transform: scale(0.92); }
    100% { opacity: 1; filter: brightness(1.35); transform: scale(1.08); box-shadow: 0 3px 12px #ffffff, 0 0 22px rgba(255, 255, 255, 0.95); }
}

/* --- 3. Santa Hat on Logo --- */
.site-logo {
    position: relative !important;
}

.site-logo a {
    position: relative !important;
    display: inline-block !important;
}

.shmc-santa-hat {
    position: absolute;
    top: -12px;
    left: 14px;
    width: 36px;
    height: 36px;
    background-image: url('../images/santa-hat.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 1002;
    transform: rotate(-10deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.3s ease, left 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.site-logo:hover .shmc-santa-hat {
    transform: rotate(-4deg) scale(1.15);
}

.site-header.scrolled .shmc-santa-hat {
    top: -9px;
    left: 12px;
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .shmc-santa-hat {
        top: -8px;
        left: 10px;
        width: 28px;
        height: 28px;
    }
}

/* --- 4. Falling Snow Canvas --- */
#shmc-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* --- 5. Magical Winter Sparkle Cursor Trail --- */
.shmc-sparkle-trail {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    animation: shmc-sparkle-fade 0.75s ease-out forwards;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 6px rgba(254, 240, 138, 0.8));
}

@keyframes shmc-sparkle-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 24px)) scale(0.2) rotate(45deg);
    }
}

/* --- 6. Subtle Festive Touches on Badges & Buttons --- */
body.shmc-holiday-active .btn-whats-new {
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
}

body.shmc-holiday-active .btn-whats-new::after {
    content: " ❄️";
    font-size: 0.85em;
}
