/* =====================================================
   FUNYATRA – MODERN HEADER & NAVIGATION (CLEANED)
===================================================== */

/* ---------- ROOT COLORS ---------- */
:root {
    --primary-color: #1e293b;
    --accent-color: #f97316;
    --accent-soft: #ffe4cc;
    --bg-light: #ffffff;
    --bg-soft: #e9eef5;
    --text-muted: #475569;
    --border-soft: #cbd5e1;
}

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   HEADER
===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #ffffff;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 1%;
    box-shadow: 0 10px 35px rgba(30, 41, 59, 0.18);
}

/* ---------- LOGO ---------- */
.logo img {
    height: 65px;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.08);
}

/* =====================================================
   MAIN MENU (DESKTOP)
===================================================== */
.menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu ul li {
    position: relative;
}

/* Menu links */
.menu a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

/* Animated underline */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.menu a:hover {
    color: var(--accent-color);
}
.menu a:hover::after {
    width: 100%;
}

/* =====================================================
   DROPDOWN – DESKTOP
===================================================== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: linear-gradient(180deg, #ffffff, #eef3f9);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: all 0.35s ease;
    box-shadow: 0 25px 55px rgba(30, 41, 59, 0.28);
    z-index: 999;
}

/* Show dropdown */
.dropdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu links */
.submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background: linear-gradient(90deg, var(--accent-soft), #ffffff);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 34px;
}

.submenu a:not(:last-child) {
    border-bottom: 1px dashed var(--border-soft);
}

/* =====================================================
   LANGUAGE SWITCH
===================================================== */
.lang-switch {
    display: flex;
    gap: 6px;
    background: #dde4ee;
    padding: 6px 10px;
    border-radius: 999px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: var(--accent-color);
    color: #ffffff;
}

/* =====================================================
   HAMBURGER
===================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================================================
   VISITOR COUNT
===================================================== */
.visitor-count {
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    margin-left: 30px;
    margin-top: -50px;
}
.visitor-count a {
    text-decoration: none;
}

/* =====================================================
   MOBILE & TABLET
===================================================== */
@media (max-width: 768px) {

    .header {
        padding: 10px 14px;
        height: 64px;
    }

    .logo img {
        height: 46px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1200;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    /* MOBILE MENU */
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #e2e8f0;
        padding: 12px;
        flex-direction: column;
        box-shadow: 0 12px 30px rgba(30, 41, 59, 0.25);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .menu.active {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
        gap: 6px;
    }

    .menu ul li {
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    .menu ul li > a {
        padding: 16px;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        display: block;
        color: #1e293b;
    }

    /* MOBILE SUBMENU */
    .submenu {
        position: static;
        max-height: 0;
        overflow: hidden;
        background: #024b5e;
        border-radius: 12px;
        transition: max-height 0.35s ease;
        box-shadow: none;
    }

    .dropdown.open > .submenu {
        max-height: 500px;
        margin-top: 6px;
    }

    .submenu a {
        display: block;
        margin: 2px 10px;
        padding: 10px 12px;
        background: #ffffff;
        color: #7c2d12;
        border-radius: 10px;
        text-align: center;
    }

    .submenu a:hover {
        background: #fed7aa;
        color: #9a3412;
    }

    /* LANGUAGE SWITCH MOBILE */
    .lang-switch {
        position: fixed;
        top: 14px;
        right: 56px;
        padding: 4px;
        gap: 2px;
        box-shadow: 0 6px 14px rgba(30, 41, 59, 0.25);
    }

    .lang-switch a {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Hide visitor count */
    .visitor-count {
        display: none;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */
@media (max-width: 480px) {

    .header {
        height: 58px;
        padding: 8px 12px;
    }

    .logo img {
        height: 40px;
    }

    .lang-switch {
        top: 12px;
        right: 52px;
        padding: 3px;
    }

    .lang-switch a {
        font-size: 10px;
        padding: 3px 7px;
    }

    .menu ul li > a {
        font-size: 14px;
        padding: 14px;
    }

    .submenu a {
        font-size: 13px;
    }
}

/* =====================================================
   MENU & SUBMENU <li> BACKGROUND COLORS
===================================================== */

/* ---------- DESKTOP ---------- */
@media (min-width: 769px) {

    /* TOP-LEVEL MENU <li> */
    .menu > ul > li {
        background: #ffffff;
        border-radius: 10px;
        padding: 0 6px;
        transition: background 0.3s ease;
    }

    .menu > ul > li:hover {
        background: #f8fafc; /* very light slate */
    }

    /* SUBMENU <li> */
    .submenu li {
        background: transparent; /* container clean */
    }

    .submenu li:hover {
        background: transparent;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

    /* TOP-LEVEL MENU <li> */
    .menu ul li {
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    /* SUBMENU <li> */
    .submenu li {
        background: #e0f2fe; /* soft blue */
        border-radius: 12px;
        margin: 4px 8px;
        padding: 2px;
    }
}

