@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;700&display=swap');

:root {
    /* Premium Gold Palette */
    --gold-primary: #d4af37;
    --gold-secondary: #c0a062;
    --gold-dark: #997b2f;
    /* Metallic Gold Gradient */
    --gold-gradient: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    
    /* Dark Backgrounds */
    --bg-main: #000000; /* ดำสนิท */
    --bg-card: #121212; /* ดำเทาเล็กน้อยสำหรับ Card */
    --bg-nav: #0a0a0a;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --text-gold: #d4af37;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    padding-bottom: 60px;
    overflow-x: hidden; /* ป้องกัน Scrollbar แนวนอนจากหิมะ */
}

/* --- Snow Effect --- */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* ให้คลิกทะลุหิมะได้ */
    z-index: 9999;
}

.snowflake {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    animation: fall linear infinite;
}
/* ทำให้หิมะบางอันออกสีทอง */
.snowflake.gold {
    background: var(--gold-primary);
    box-shadow: 0 0 5px var(--gold-primary);
}

@keyframes fall {
    to {
        transform: translateY(105vh);
    }
}

/* --- Header & Navigation --- */
header {
    background: var(--bg-nav);
    padding: 20px 15px;
    text-align: center;
    border-bottom: 2px solid transparent;
    border-image: var(--gold-gradient) 1; /* ขอบทองแบบไล่สี */
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

h1, h2, h3 {
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    /* เอฟเฟกต์ข้อความทองเงา */
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-container {
    background: var(--bg-nav);
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 10px;
    position: sticky; top: 0; z-index: 999;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-menu { display: flex; justify-content: center; gap: 15px; min-width: 350px; }

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Hover Nav Menu */
.nav-item:hover {
    color: var(--text-gold);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) inset;
}

/* Active State Nav Menu */
.nav-item.active {
    color: var(--bg-main);
    background: var(--gold-gradient);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}


/* --- Premium Buttons --- */
.btn-premium {
    display: inline-block;
    /* พื้นหลังทองไล่สีแบบโลหะ */
    background: linear-gradient(to right, #997b2f, #d4af37, #fcf6ba, #d4af37, #997b2f);
    background-size: 200% auto;
    color: #000; /* ข้อความสีดำบนพื้นทอง */
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.4) inset;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* เอฟเฟกต์แสงวาบเมื่อ Hover */
.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 20%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 80%);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.btn-premium:hover {
    background-position: right center; /* เลื่อน Gradient */
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
    color: #332200;
}

.btn-premium:hover::after {
    opacity: 1;
    left: 100%; /* เลื่อนแสงวาบผ่านปุ่ม */
}

.btn-premium.pulse-anim {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* --- Containers & Cards --- */
.container { max-width: 800px; margin: 0 auto; padding: 15px; }
.card-bg { background: var(--bg-card); border-radius: 15px; border: 1px solid #333; transition: 0.3s; }
.card-bg:hover { border-color: var(--gold-primary); box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2); }

/* --- Footer --- */
footer {
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
    margin-top: 40px; border-top: 1px solid #222; padding-top: 20px;
}
