/* Shared header and navigation styles */

/* Font Definition */
@font-face {
    font-family: 'BrunoAceSC';
    src: url('fonts/BrunoAceSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Mobile Content Menu Strategy: 'icons-only' or 'dropdown' */
/* Change this value to switch between mobile display modes */
:root {
    --mobile-content-strategy: 'icons-only'; /* options: 'icons-only' or 'dropdown' */
}

/* Header Styles */
header {
    background: #000000;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

h1 {
    font-family: 'BrunoAceSC', sans-serif;
    color: #FFA500;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #DCAB6B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

nav a:hover {
    color: #FFA500;
}

nav a.active {
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Secondary Menu - Content Links */
.brainwave-link {
    position: fixed;
    width: 100%;
    top: 90px;
    z-index: 999;
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.brainwave-link-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.brainwave-link a {
    color: #DCAB6B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(220, 171, 107, 0.08);
    border: 1px solid rgba(220, 171, 107, 0.2);
}

.brainwave-link a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.brainwave-link a:hover {
    color: #FFA500;
    background: rgba(255, 165, 0, 0.12);
    border-color: rgba(255, 165, 0, 0.3);
}

.brainwave-link a.active {
    color: #ffffff;
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        padding: 20px 30px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        align-items: flex-end;
    }
    
    nav.active {
        display: flex;
    }
    
    /* Strategy 1: Icons Only (default) - keeps content menu horizontal */
    body:not(.mobile-dropdown) .brainwave-link-content a span {
        display: none;
    }
    
    body:not(.mobile-dropdown) .brainwave-link-content a {
        padding: 12px 12px;
        min-width: auto;
    }
    
    /* Strategy 2: Dropdown - content menu becomes dropdown */
    body.mobile-dropdown .brainwave-link {
        position: relative;
    }
    
    body.mobile-dropdown .brainwave-link-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #000000;
        padding: 10px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 998;
    }
    
    body.mobile-dropdown .brainwave-link-content.active {
        display: flex;
    }
    
    body.mobile-dropdown .brainwave-link-content a {
        justify-content: flex-start;
        width: 100%;
    }
}
