/* ================================
   Karanis Project – Global Menu
================================ */

/* --- Variables --- */
:root {
    --bbc-blue: #1A66FF;
    --dark-charcoal: #1a1a1a;
    --menu-bg: #111;
    --light-bg: #fdfdfd;
}

/* --- Top Header --- */
.top-header {
    padding: 0 30px;
    height: 60px;
    box-sizing: border-box;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;   /* ← ADD THIS */
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0 0 0 30px;
    font-size: 1.5rem;
    color: var(--dark-charcoal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.tour-btn {
    background-color: var(--bbc-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tour-btn:hover { background-color: #a00000; }

/* --- Menu Toggle Button --- */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--bbc-blue);
}

.menu-icon {
    font-size: 1.8rem;
    line-height: 1;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: var(--menu-bg);
    color: #fff;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
}

.sidebar.open {
    left: 0;
}

/* --- Sidebar Header --- */
.sidebar-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--bbc-blue);
}

/* --- Menu List --- */
.nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid #222;
}

.nav-menu a,
.menu-group-btn {
    display: block;
    padding: 15px 30px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Hover effect */
.nav-menu a:hover,
.menu-group-btn:hover {
    color: #fff;
    background-color: #222;
    border-left: 4px solid var(--bbc-blue);
    padding-left: 26px;
}

/* --- Expandable Sections --- */
.menu-group-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-group-btn::after {
    content: '+';
    font-size: 1.4rem;
}

.menu-group-btn.active::after {
    content: '−';
}

/* --- Sub Menu --- */
.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #0a0a0a;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu li {
    border-bottom: none;
}

.sub-menu a {
    padding: 12px 30px 12px 50px;
    font-size: 1rem;
    color: #aaa;
}

.sub-menu a:hover {
    color: #fff;
    background-color: #1a1a1a;
    border-left: 4px solid var(--bbc-blue);
    padding-left: 46px;
}

/* --- Overlay --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}