﻿
/* ═══════════════════════════════════════
   HEADER — ENEBA-STYLE REDESIGN
   ═══════════════════════════════════════ */
header {
    background: rgba(8, 10, 18, 0.97);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 28px;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease, top 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    will-change: transform;
}

header.scrolled {
    top: 0;
    background: rgba(5, 7, 14, 0.99);
    border-bottom-color: rgba(0, 255, 255, 0.12);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
}

/* Inner layout container */
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ─── Brand (left) ─── */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo:hover { transform: scale(1.03); }

.shop-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    padding: 3px 9px;
    border-radius: 40px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.shop-badge span { color: var(--accent-green); font-size: 0.55rem; }

/* ─── Navigation (center, flex-grow) ─── */
.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.15px;
    padding: 6px 13px;
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold-main);
}

/* Chat badge inside nav */
.nav-link-msg { position: relative; }
.nav-msg-badge {
    position: absolute;
    top: 1px;
    right: 5px;
    background: #ff2d55;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 10px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* ─── Right actions ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* App install button */
.hdr-install-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
    color: var(--gold-main);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.hdr-install-btn:hover { background: rgba(0, 255, 255, 0.15); }

/* Cart button */
.hdr-cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.hdr-cart-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--gold-main);
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold-main);
    color: #000;
    font-size: 0.58rem;
    font-weight: 900;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 1.5px solid rgba(8, 10, 18, 1);
}

/* Login / auth button */
.auth-btn-main {
    background: var(--gold-gradient);
    border: none;
    color: #000;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 8px 18px;
    border-radius: 9px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.auth-btn-main:hover { opacity: 0.88; transform: translateY(-1px); }

/* User avatar chip */
.header-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px 4px 4px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.header-user-badge:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(0, 255, 255, 0.3);
}
.header-user-badge img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold-main);
    flex-shrink: 0;
}
.header-user-badge span {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- THEME TOGGLE (kept for backward compat) --- */
.theme-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--gold-main); }

.theme-panel {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 16px;
    width: 250px;
    display: none;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInDown 0.3s ease;
}
.theme-panel.active { display: flex; }
.theme-option-title { font-size: 0.85rem; color: #888; margin-bottom: 8px; font-weight: 600; text-transform: uppercase;}
.color-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s;}
.color-dot:hover { transform: scale(1.2); }
.color-dot.active { border-color: #fff; }

#custom-color-picker { 
    width: 100%; height: 40px; border: none; background: transparent; cursor: pointer; 
}

/* ══════════════════════════════════════
   MOBILE BOTTOM NAV — Eneba/Itemsatis
   ══════════════════════════════════════ */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    body { padding-bottom: 76px; }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0a0c1a;
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 9999;
        justify-content: space-around;
        align-items: stretch;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.8);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #424a60;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        gap: 3px;
        padding: 10px 0 10px;
        text-decoration: none;
        transition: color 0.2s;
        flex: 1;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .mobile-nav-item .mn-icon {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        transition: background 0.2s, transform 0.15s;
        margin-bottom: 1px;
    }

    .mobile-nav-item .mn-icon svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-nav-item span {
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.1px;
    }

    /* Active state */
    .mobile-nav-item.active {
        color: var(--gold-main);
    }

    .mobile-nav-item.active .mn-icon {
        background: rgba(0,255,255,0.1);
        transform: translateY(-1px);
    }

    /* Mehr button active */
    #more-nav-btn.active-more {
        color: #7c8aff;
    }
    #more-nav-btn.active-more .mn-icon {
        background: rgba(124,138,255,0.12);
    }
}
/* Giveaway nav link highlight */
.nav-link-giveaway {
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(230,126,34,0.1));
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 20px;
    padding: 6px 14px !important;
    color: var(--gold-main) !important;
    font-weight: 800 !important;
}
.nav-link-giveaway:hover { background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(230,126,34,0.18)) !important; }

/* --- Admin & Filter Chips Design (global) --- */
.chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #888 !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.8rem !important;
}