/* ========================================
   MMOFinds.de - NAVIGATION & UX IMPROVEMENTS
   ======================================== */

/* === IMPROVED NAVIGATION === */
.nav-bar {
    background: rgba(17,17,17,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(74,158,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-bar.scrolled {
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

.nav-logo span {
    color: var(--color-primary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(74,158,255,0.1);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* === MOBILE MENU === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(74,158,255,0.1);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 80px 24px 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    transition: all 0.2s ease;
    display: block;
}

.mobile-menu-links a:hover {
    background: var(--color-bg-card-hover);
    transform: translateX(8px);
}

/* === SEARCH BAR === */
.search-bar {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74,158,255,0.1);
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--color-text-muted);
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 16px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--color-text-muted);
}

/* === LOADING STATES === */
.loading-skeleton {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-card-hover) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 16px 0;
    }
    
    .nav-inner {
        padding: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}
