/**
 * Christmas/Winter Theme CSS - Seasonal Effects
 * ไฟล์นี้รวม CSS สำหรับหิมะและธีมคริสต์มาส
 * 
 * เมื่อหมดเทศกาล สามารถลบ/comment ออกได้ง่ายๆ โดย:
 * 1. ลบ <link> ของไฟล์นี้ออกจาก index.php และหน้าอื่นๆ
 * 2. หรือลบ <script src="js/snow.js"> ออก
 * 
 * ไฟล์ที่เกี่ยวข้อง:
 * - css/christmas.css (ไฟล์นี้)
 * - js/snow.js (animation หิมะตก)
 */

/* ========================================
   Snow Container & Falling Animation
   หิมะตก
   ======================================== */

/* Snow Container */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Snowflake Base */
.snowflake {
    position: absolute;
    top: 0;
    color: white;
    font-size: 1.2em;
    opacity: 0.9;
    animation-name: fall, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
    z-index: 9999;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(100vh);
    }
}

@keyframes sway {

    0%,
    100% {
        margin-left: 0;
    }

    25% {
        margin-left: 15px;
    }

    75% {
        margin-left: -15px;
    }
}

/* ========================================
   Christmas Decorations
   ของประดับคริสต์มาส
   ======================================== */

/* Christmas Lights */
.christmas-lights {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.light-bulb {
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: twinkle 1s ease-in-out infinite alternate;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.light-bulb:nth-child(1) {
    color: #ff0000;
    animation-delay: 0s;
}

.light-bulb:nth-child(2) {
    color: #00ff00;
    animation-delay: 0.2s;
}

.light-bulb:nth-child(3) {
    color: #ffff00;
    animation-delay: 0.4s;
}

.light-bulb:nth-child(4) {
    color: #0099ff;
    animation-delay: 0.6s;
}

.light-bulb:nth-child(5) {
    color: #ff00ff;
    animation-delay: 0.8s;
}

.light-bulb:nth-child(6) {
    color: #ff0000;
    animation-delay: 1s;
}

.light-bulb:nth-child(7) {
    color: #00ff00;
    animation-delay: 1.2s;
}

.light-bulb:nth-child(8) {
    color: #ffff00;
    animation-delay: 1.4s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.6;
        filter: brightness(0.7);
    }
}

/* Christmas Ornament */
.christmas-ornament {
    width: 40px;
    height: 45px;
    border-radius: 50%;
    position: relative;
    animation: swing-ornament 3s ease-in-out infinite;
    box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.3), 0 0 10px currentColor;
}

.christmas-ornament::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #c9a227;
    border-radius: 2px;
}

.christmas-ornament::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 12px;
    background: #666;
}

@keyframes swing-ornament {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Santa Hat */
.santa-hat {
    position: relative;
    width: 50px;
    height: 35px;
}

.santa-hat::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: white;
    border-radius: 5px;
}

.santa-hat::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 30px solid #d42426;
}

.santa-hat-pom {
    position: absolute;
    top: -5px;
    right: 0;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

/* Candy Cane Decoration */
.candy-cane {
    width: 15px;
    height: 60px;
    background: repeating-linear-gradient(0deg,
            #ff0000 0px,
            #ff0000 8px,
            #ffffff 8px,
            #ffffff 16px);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.candy-cane::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: 15px solid;
    border-color: transparent #ff0000 transparent transparent;
    border-radius: 0 50% 50% 0;
    transform: rotate(0deg);
    background: repeating-linear-gradient(90deg,
            #ff0000 0px,
            #ff0000 8px,
            #ffffff 8px,
            #ffffff 16px);
    clip-path: inset(0 0 50% 0);
}

/* Holly Decoration */
.holly {
    display: flex;
    align-items: center;
    gap: 2px;
}

.holly-berry {
    width: 8px;
    height: 8px;
    background: #d42426;
    border-radius: 50%;
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.3);
}

.holly-leaf {
    width: 20px;
    height: 12px;
    background: #0f5132;
    border-radius: 0 100% 0 100%;
    position: relative;
}

.holly-leaf:last-child {
    transform: scaleX(-1);
}

/* Ribbon Bow */
.ribbon-bow {
    position: relative;
    width: 40px;
    height: 20px;
}

.ribbon-bow::before,
.ribbon-bow::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 15px;
    background: #d42426;
    border-radius: 50%;
    top: 0;
}

.ribbon-bow::before {
    left: 0;
    transform: rotate(-20deg);
}

.ribbon-bow::after {
    right: 0;
    transform: rotate(20deg);
}

.ribbon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #b91c1c;
    border-radius: 2px;
    z-index: 1;
}

/* Christmas Banner */
.christmas-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

/* Christmas Star */
.christmas-star {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #ffeb3b);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: star-twinkle 1.5s ease-in-out infinite;
}

@keyframes star-twinkle {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 5px gold);
    }

    50% {
        filter: brightness(1.3) drop-shadow(0 0 15px gold);
    }
}

/* ========================================
   Snow Accumulation at Section Bottoms
   หิมะสะสมที่พื้นด้านล่างของ sections
   ======================================== */

/* Base snow ground effect - fluffy snow piles at bottom */
.snow-ground::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background:
        /* Main snow layer */
        radial-gradient(ellipse 12% 100% at 8% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 15% 100% at 20% 100%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 18% 100% at 35% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 14% 100% at 50% 100%, rgba(248, 250, 252, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 16% 100% at 65% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 13% 100% at 80% 100%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 10% 100% at 92% 100%, rgba(248, 250, 252, 0.98) 0%, transparent 100%);
    pointer-events: none;
    z-index: 50;
}

/* Hero Section - Snow at bottom */
#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background:
        /* Large fluffy mounds */
        radial-gradient(ellipse 20% 100% at 5% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 25% 100% at 18% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 18% 100% at 30% 100%, rgba(248, 250, 252, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 22% 100% at 45% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 16% 100% at 58% 100%, rgba(248, 250, 252, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 24% 100% at 72% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 20% 100% at 88% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 15% 100% at 98% 100%, rgba(248, 250, 252, 0.98) 0%, transparent 100%);
    pointer-events: none;
    z-index: 25;
    filter: drop-shadow(0 -2px 4px rgba(200, 220, 255, 0.2));
}

/* About Section - Snow at bottom */
#about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background:
        radial-gradient(ellipse 18% 100% at 3% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 22% 100% at 15% 100%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 15% 100% at 28% 100%, rgba(248, 250, 252, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 20% 100% at 42% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 18% 100% at 55% 100%, rgba(248, 250, 252, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 25% 100% at 70% 100%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 16% 100% at 85% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 12% 100% at 96% 100%, rgba(248, 250, 252, 0.96) 0%, transparent 100%);
    pointer-events: none;
    z-index: 15;
    filter: drop-shadow(0 -2px 4px rgba(200, 220, 255, 0.15));
}

/* Menu Section - Snow at bottom */
#menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background:
        radial-gradient(ellipse 16% 100% at 6% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 20% 100% at 20% 100%, rgba(248, 250, 252, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 24% 100% at 35% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 18% 100% at 48% 100%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 22% 100% at 62% 100%, rgba(248, 250, 252, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 17% 100% at 78% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 21% 100% at 92% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%);
    pointer-events: none;
    z-index: 15;
    filter: drop-shadow(0 -2px 4px rgba(200, 220, 255, 0.18));
}

/* Reviews Section - Snow at bottom */
#reviews::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42px;
    background:
        radial-gradient(ellipse 14% 100% at 4% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 19% 100% at 18% 100%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 23% 100% at 32% 100%, rgba(248, 250, 252, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 17% 100% at 47% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 21% 100% at 60% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 16% 100% at 75% 100%, rgba(248, 250, 252, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 20% 100% at 88% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 11% 100% at 97% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%);
    pointer-events: none;
    z-index: 15;
    filter: drop-shadow(0 -2px 4px rgba(200, 220, 255, 0.2));
}

/* Footer (Location Section) - Snow sitting on yellow border */
/* หิมะสะสมบนเส้นขอบเหลืองของ footer */
#location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    transform: translateY(-100%);
    background:
        /* Fluffy snow mounds pointing upward, sitting on yellow border */
        radial-gradient(ellipse 20% 100% at 5% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 25% 100% at 18% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 18% 100% at 30% 100%, rgba(248, 250, 252, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 22% 100% at 45% 100%, rgba(255, 255, 255, 0.98) 0%, transparent 100%),
        radial-gradient(ellipse 16% 100% at 58% 100%, rgba(248, 250, 252, 0.95) 0%, transparent 100%),
        radial-gradient(ellipse 24% 100% at 72% 100%, rgba(255, 255, 255, 0.97) 0%, transparent 100%),
        radial-gradient(ellipse 20% 100% at 88% 100%, rgba(255, 255, 255, 0.96) 0%, transparent 100%),
        radial-gradient(ellipse 15% 100% at 98% 100%, rgba(248, 250, 252, 0.98) 0%, transparent 100%);
    pointer-events: none;
    z-index: 50;
    filter: drop-shadow(0 -2px 4px rgba(200, 220, 255, 0.2));
}