/* 
    AnimeSynchroDE v2 — Header & Navigation
*/

.app-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
}

.header-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;




    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.4rem;
}

.site-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.4));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 4s ease-in-out infinite;
    mix-blend-mode: screen;
}

.logo-area:hover .site-logo {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 25px var(--accent-1));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Handled by global branding animations */

.de-badge {
    background: rgba(192, 132, 252, 0.15);
    color: var(--accent-1);
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 6px;
    margin-left: 6px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.version-badge {
    font-size: 0.65rem;
    color: var(--accent-1);
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid var(--border-glass);
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 600;
}

.main-nav, .nav-links-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 20px;
}

.nav-link {
    white-space: nowrap;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(90deg, rgba(192, 132, 252, 0.2), rgba(244, 114, 182, 0.2));
    border-color: var(--accent-1);
    color: var(--text-primary);
}

.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.header-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.4rem 1rem 0.4rem 2.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    width: 180px;
    transition: all 0.3s ease;
    outline: none;
}

.header-search-input:focus {
    width: 250px;
    border-color: var(--accent-1);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.2);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    pointer-events: none;
    transition: 0.3s;
}

.header-search-input:focus + .header-search-icon {
    color: var(--accent-1);
}

/* User Profile Area */
.user-pill-container {
    position: relative;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 6px 14px 6px 8px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.user-pill:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-1);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

.user-name-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Dropdown Menu Refinement */
.dropdown-menu {
    background: #050508; /* Deep Midnight */
    border: 1px solid rgba(192, 132, 252, 0.5); /* Sharper Glow */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 1), 0 0 40px rgba(192, 132, 252, 0.1);
    animation: dropdownFade 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: absolute;
    right: 0; 

    top: 68px;
    z-index: 100000;
    min-width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 12px;
}

.dropdown-header {
    font-size: 0.75rem;
    opacity: 0.6;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 14px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(3px);
}

.logout-btn {
    color: var(--red-live) !important;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px !important;
    border-radius: 0 0 8px 8px;
}

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

/* Notification Bell Styling */
.notification-bell-container {
    position: relative;
    cursor: pointer;
    padding: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.notification-bell-container:hover {
    background: rgba(192, 132, 252, 0.1);
    color: var(--accent-1);
    transform: scale(1.1) rotate(15deg);
    border-color: rgba(192, 132, 252, 0.3);
}

.bell-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0a0a14;
    box-shadow: 0 0 12px #ef4444;
}

/* Notification Badges */
.mail-badge-mini, .support-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444; /* Bright Red */
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 10px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    transition: transform 0.3s ease;
}

.support-badge-mini {
    background: var(--accent-1);
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.4);
}

.pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* --- MOBILE RESPONSIVENESS --- */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px;
}

@media (max-width: 1200px) {
    .version-badge { display: none; }
    .logo-text { font-size: 1.1rem; }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none; /* Will be shown via mobile menu class */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 20, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-glass);
        backdrop-filter: blur(20px);
        gap: 10px;
    }
    
    .main-nav.mobile-active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .refresh-btn-v2 {
        margin: 0 auto 15px auto !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-area { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .logo-text { display: none; }
    .user-name-label { display: none; }
    .header-content { padding: 0 0.5rem; }
    .user-pill { padding: 4px; }
}

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


