﻿html, body { margin: 0; padding: 0; }
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.header-brand-link {
    text-decoration: none;
    display: inline-block;
}

.header-brand-link h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #b48a3c;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0;
    font-family: 'Poppins', Arial, sans-serif;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(180, 138, 60, 0.1);
}

.header-brand-link h1:hover {
    color: #e2b76a;
    text-decoration: underline;
    transform: translateY(-1px);
}

.header {
    width: 100%;
    background: linear-gradient(135deg, #f6f0e2 0%, #f8f2e6 100%);
    color: #7a5c2c;
    font-family: 'Poppins', Arial, sans-serif;
    box-shadow: 0 6px 25px rgba(245, 215, 177, 0.25);
    border-bottom: 3px solid #f5d7b1;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 12px;
    backdrop-filter: blur(5px);
}

.header-brand {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 12px;
}

.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 20px;
}

.nav-link {
    color: #7a5c2c;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    background: rgba(245, 215, 177, 0.3);
    box-shadow: 0 3px 12px rgba(246, 240, 226, 0.15);
    display: inline-block;
    border: 1px solid rgba(245, 215, 177, 0.4);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 215, 177, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: #f5d7b1;
    color: #b48a3c;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 215, 177, 0.28);
    border-color: #f5d7b1;
}

.nav-link.restricted {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
    color: #ccc !important;
}

.nav-link.restricted::after {
    content: " 🔒";
    color: red;
}

.header-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-top: 12px;
}

.nav-icon {
    color: #b48a3c;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-icon:hover {
    color: #7a5c2c;
    transform: translateY(-1px) scale(1.06);
}

.nav-icon.restricted {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
}

.nav-toggle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 2001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle {
    background: #e3c27f;
    border: 2px solid #b48a3c;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(122, 92, 44, 0.25);
    position: relative;
    z-index: 2002;
    color: #8a672b;
}

.nav-toggle:hover {
    background: #ebcd8f;
    transform: translateY(-1px);
    box-shadow: 0 2px 7px rgba(122, 92, 44, 0.3);
}

.nav-toggle i {
    font-size: 14px;
    display: inline-block;
    line-height: 1;
    color: #7a5c2c;
    position: relative;
    top: 1px;
    transition: all 0.3s ease;
}

.nav-toggle:hover i {
    color: #f6f0e2;
}

.nav-toggle:active {
    transform: translateY(0) scale(0.98);
}

.header-brand,
.header-nav,
.header-icons {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 1200px;
    overflow: hidden;
}

.header-brand.content-hidden,
.header-nav.content-hidden,
.header-icons.content-hidden {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
    padding: 0 !important;
    margin: 0 !important;
}

.header {
    position: relative;
    overflow: visible;
}

@media (hover: none), (pointer: coarse) {
    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        transform: none;
        box-shadow: 0 3px 12px rgba(246, 240, 226, 0.15);
    }

    .nav-icon:hover,
    .nav-toggle:hover {
        transform: none;
    }
}

@media (max-width: 900px) {
    .header-nav {
        gap: 16px;
        padding: 0 15px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 10px 18px;
    }

    .header-brand-link h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 12px 2vw 10px 2vw;
    }

    .header-brand-link h1 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }

    .header-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 10px 16px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .header-icons {
        gap: 10px;
        margin-top: 10px;
    }

    .nav-icon {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .header-brand-link h1 {
        font-size: 1.4rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .nav-icon {
        font-size: 14px;
    }
}
