﻿/* HEADER STYLES */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

    .nav-link:hover,
    .nav-link.active {
        color: #f59e0b;
    }

/* DESKTOP CTA (Default) */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login,
.btn-register {
    height: 40px;
    /* บังคับความสูงเท่ากัน */
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    /* ใช้ Flex จัดกึ่งกลาง */
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-login {
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
}

    .btn-login:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
        color: #fff;
    }

.btn-register {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(245, 158, 11, 0.5);
        filter: brightness(1.1);
    }

/* MOBILE CTA (Hidden by default on Desktop) */
.mobile-only-cta {
    display: none !important;
}

/* MOBILE MENU TOGGLE */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* RESPONSIVE HEADER */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    /* Hide Desktop CTA */
    .nav-cta {
        display: none !important;
    }

    /* Show Mobile CTA */
    .mobile-only-cta {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 20px;
    }

    /* Mobile Menu Panel */
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        border-bottom: 2px solid #f59e0b;
        transform: translateY(-150%);
        transition: 0.4s ease;
        z-index: 999;
    }

        .main-nav.active {
            transform: translateY(0);
        }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

