/* ============================================================
   AI Render — Menu đầu trang dùng chung cho trang công khai
   Trang chủ, Hướng dẫn, Blog (markup: components/site_nav.php;
   bài blog .html tĩnh chép nguyên markup bản chưa đăng nhập)
   ============================================================ */

.site-header a:hover {
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 13, 21, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-header-inner {
    max-width: 1200px;
    height: 64px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.site-logo img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: cover;
}

.site-logo span {
    background: linear-gradient(135deg, #F0C674, #B8942D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-links a {
    position: relative;
    display: block;
    padding: 0.5rem 0.85rem;
    color: #A0A0B0;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.site-links a:hover {
    color: #EAEAEA;
}

.site-links a[aria-current] {
    color: #F0C674;
}

.site-links a[aria-current]::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: #D4A853;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-login {
    padding: 0.5rem 0.85rem;
    color: #EAEAEA;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.site-login:hover {
    color: #F0C674;
}

.site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #D4A853, #B8942D);
    color: #0D0D15;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-cta:hover {
    color: #0D0D15;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.35);
}

.site-toggle {
    display: none;
}

/* ─── Điện thoại / máy tính bảng: logo + nút ☰, menu thả xuống ─── */
@media (max-width: 900px) {
    .site-header-inner {
        height: 58px;
        padding: 0 1rem;
        justify-content: space-between;
        gap: 1rem;
    }

    .site-logo {
        font-size: 1.05rem;
    }

    .site-toggle {
        position: relative;
        display: block;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(212, 168, 83, 0.25);
        border-radius: 8px;
        background: transparent;
        color: #EAEAEA;
        cursor: pointer;
    }

    .site-toggle span {
        position: absolute;
        left: 10px;
        right: 10px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s, opacity 0.2s;
    }

    .site-toggle span:nth-child(1) { top: 13px; }
    .site-toggle span:nth-child(2) { top: 19px; }
    .site-toggle span:nth-child(3) { top: 25px; }

    .site-header.is-open .site-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .site-header.is-open .site-toggle span:nth-child(2) { opacity: 0; }
    .site-header.is-open .site-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .site-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 58px);
        max-height: calc(100dvh - 58px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.25rem 1rem 1rem;
        background: rgba(13, 13, 21, 0.98);
        border-bottom: 1px solid rgba(212, 168, 83, 0.15);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    }

    .site-header.is-open .site-menu {
        display: flex;
    }

    .site-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-links a {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: #EAEAEA;
        font-size: 1rem;
    }

    .site-links a[aria-current]::after {
        display: none;
    }

    .site-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-top: 1rem;
    }

    .site-actions > :only-child {
        grid-column: 1 / -1;
    }

    .site-login {
        padding: 0.7rem;
        border: 1px solid rgba(212, 168, 83, 0.3);
        border-radius: 8px;
        text-align: center;
    }

    .site-cta {
        padding: 0.7rem;
    }
}
