/* ==========================================
   ERIS-STYLE HEADER (Fixed)
   public/css/header.css
   ========================================== */

/* 1. IMPORT MATERIAL ICONS (Required for Desktop Icons to show) */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

:root {
    --header-bg: #0f0f0f;
    --header-height-desktop: 70px;
    --header-height-mobile: 65px;
    --pill-bg: #1e1e1e;
    --pill-bg-hover: #333;
    --pill-text: #eaeaea;
    --accent-color: #ff5500; 
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-desktop);
    background: var(--header-bg) !important;
    z-index: 1000;
    border-bottom: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* --- LOGO (NO GLOW) --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff !important;
    z-index: 10;
}

.logo-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    /* STRICT NO GLOW / NO BORDER */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none !important;
    -webkit-filter: none !important;
    drop-shadow: none !important;
}

.logo-text {
    font-family: sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: #fff !important;
}

/* --- DESKTOP ACTIONS (Pills) --- */
.desktop-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--pill-bg);
    color: var(--pill-text) !important;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.nav-pill:hover {
    background-color: var(--pill-bg-hover);
    color: #fff !important;
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Ensure Icons are visible */
.nav-pill .material-icons-round {
    font-size: 18px;
    color: #aaa;
}
.nav-pill:hover .material-icons-round { color: #fff; }

/* Icon Button (Square/Circle) */
.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--pill-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pill-text);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.nav-icon-btn .material-icons-round { font-size: 20px; }
.nav-icon-btn:hover { background-color: var(--pill-bg-hover); color: #fff; }

.nav-pill.user-profile { padding: 4px 14px 4px 4px; }
.nav-pill.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- MOBILE LAYOUT --- */
@media (max-width: 1024px) {
    .header { height: var(--header-height-mobile); }
    .header-inner { padding: 0 16px; }
    .desktop-actions { display: none !important; }
    .logo { position: relative; left: 0; }
    .logo-text { display: none !important; }

    .logo-icon { width: 45px; height: 45px; }

    .mobile-center-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
        font-weight: 700;
        color: #ffffff !important;
        white-space: nowrap;
        pointer-events: none;
        z-index: 5;
    }

    .mobile-search-trigger {
        display: flex;
        width: 40px;
        height: 40px;
        background: var(--pill-bg);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: 1px solid rgba(255,255,255,0.1);
        cursor: pointer;
        z-index: 10;
        -webkit-tap-highlight-color: transparent; 
    }
    
    /* Ensure icon inside mobile trigger is visible */
    .mobile-search-trigger .material-icons-round { font-size: 22px; }
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: flex; flex-direction: column; align-items: center;
    padding-top: 100px;
    backdrop-filter: blur(10px);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-container-overlay { position: relative; width: 90%; max-width: 600px; }
.search-input-large {
    width: 100%; padding: 15px 50px 15px 10px;
    font-size: 20px; background: transparent;
    border: none; border-bottom: 2px solid #333;
    color: #fff; outline: none; font-weight: 500;
}
.search-input-large:focus { border-bottom-color: var(--accent-color); }
.close-search {
    position: absolute; top: 25px; right: 25px;
    background: none; border: none; color: #fff;
    cursor: pointer; padding: 10px;
}
.close-search .material-icons-round { font-size: 28px; }
.close-search:hover { color: var(--accent-color); }
