/* ------------------------------------------------------------
   ✅ استایل هدر (Header)
   ------------------------------------------------------------ */
/* متغیرهای شما (بدون تغییر) */
:root {
    --red: #a35c40;
    --primary: #47b59e;
    --deep: #336633;
    --dark: #343a32;
    --light: #e0dfdd;
    --greenlight: #8fa271;
    --radius: 1.2rem;
    --padding: 1.2rem;
    --gap: 1rem;
}

/* Reset */
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hamburger Wrapper */
.hamburger-menu-wrapper {
    position: relative;
}

/* Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, .25);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-out;
}

.menu-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Menu Animation */
@keyframes menuFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Menu Container */
.hamburger-menu-content {
    position: absolute;
    right: 0;
    top: 4rem;
    border-radius: 1rem;
    min-width: 14rem;
    padding: .7rem;
    display: none;
    z-index: 999;
}

.hamburger-menu-content.show {
    display: block;
    animation: menuFadeIn .25s ease-out;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1rem;
    margin-bottom: .5rem;
    background: var(--dark);
    border-radius: .8rem;
    transition: background .25s ease, transform .2s ease;
    box-shadow: 0 0 8px 2px #00000093;
}

.menu-item:last-child {
    margin-bottom: .5rem;
}

.menu-item:hover {
    background: var(--greenlight);
    transform: translateX(-4px);
}

.menu-item:hover .menu-icon path {
    fill: var(--dark);
}

.menu-item:hover span {
    color: var(--light);
}

/* Menu Icons */
.menu-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.menu-icon path {
    fill: var(--light);
    transition: fill .25s ease;
}

.menu-item span {
    color: var(--light);
    font-size: .95rem;
    font: wait 500;
    transition: color .25s ease;
}

/* Header Container */
.header-buttons {
    font-family: inherit;
    position: fixed;
    top: .5rem;
    left: .5rem;
    right: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: .5rem 0;
    transition: all .3s;
}

/* Logo */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 3rem;
    padding: 0 .5rem;
    background: var(--dark);
    border-radius: 1rem;
    box-shadow: 0 0 12px 2px #000000a2;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.header-logo a {
    margin-top: 3.5px;
    height: 90%;
    max-height: 90%;
    max-width: 90%;
}

.header-logo img {
    height: 80%;
    max-height: 90%;
    max-width: 90%;
}

/* Left & Right Buttons */
.left-buttons,
.right-buttons {
    display: flex;
    gap: .75rem;
    z-index: 2;
}

/* SVG Buttons */
.svg-btn {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: transform .3s ease;
}

.svg-btn:hover {
    transform: scale(1.1);
}

/* Button Background */
.svg-btn .btn-bg {
    position: absolute;
    inset: 0;
    fill: var(--dark);
    filter: drop-shadow(0 0 4px #000000a2);
    transition: fill .3s ease, filter .3s ease;
}

.svg-btn:hover .btn-bg {
    fill: var(--greenlight);
    filter: drop-shadow(0 0 8px var(--dark));
}

/* Button Icon */
.svg-btn .btn-icon {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    fill: var(--light);
    z-index: 2;
    pointer-events: none;
}
@media (min-width: 2200px) {
    .header-buttons {
        max-width: 2200px;
        margin: auto;
    }
}
 
html {
  font-size: 16px;
}

@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

.hamburger-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.hamburger-toggle:focus {
    outline: none !important;
}
/* ============================================================
   🎯 نوار سطح کاربر (زیر هدر)
   ============================================================ */
.level-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin: 0;
    background: var(--dark);
    color: var(--light);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 0 50px 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-left: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    width: fit-content;
    max-width: 100%;
    cursor: pointer;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 999;
}

.level-bar[hidden] { display: none; }
.level-bar:hover { background: rgba(71, 181, 158, 0.12); border-color: rgba(71, 181, 158, 0.3); }

.level-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--primary), var(--greenlight));
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.level-bar-title { font-weight: 500; color: var(--light); white-space: nowrap; }
.level-bar-progress { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; white-space: nowrap; }
.level-bar-arrow { color: rgba(255, 255, 255, 0.4); font-size: 1.2rem; margin-right: 4px; transition: transform 0.2s, color 0.2s; }
.level-bar:hover .level-bar-arrow { color: var(--primary); transform: translateX(-3px); }

@media (max-width: 767px) {
    .level-bar { font-size: 0.75rem; padding: 6px 10px; gap: 6px; top: 70px; }
    .level-bar-badge { min-width: 26px; height: 26px; font-size: 0.7rem; }
    .level-bar-progress { font-size: 0.7rem; }
}
