
/* Ultra-Premium Navbar Styles */
.premium-navbar {
    position: sticky;
    top: 0;
    z-index: 500;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Brand Group (Logos) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}
.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.nav-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}
.brand-cinevura {
    height: 40px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transform: none;
    transition: transform 0.2s ease;
}
.brand-vhub {
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
.brand-divider {
    width: 2px;
    height: 35px;
    background: linear-gradient(to bottom, rgba(255,71,101,0), rgba(255,71,101,0.5), rgba(191,94,255,0.5), rgba(191,94,255,0));
    border-radius: 2px;
}

/* Center Search */
.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}
.premium-search-wrap {
    width: 100%;
    max-width: 500px;
}
.premium-search-btn {
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    color: var(--muted-light);
    font-family: inherit;
    cursor: text;
    transition: all 0.3s ease;
    gap: 0.75rem;
}
.premium-search-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 71, 101, 0.3);
    box-shadow: 0 0 15px rgba(255, 71, 101, 0.1);
}
.search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
}
.search-placeholder {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-shortcut {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* Right Section */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.auth-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-ghost {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-ghost:hover {
    color: var(--pink);
}
.btn-glow {
    background: linear-gradient(135deg, #ff4765, #bf5eff);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 101, 0.3);
}
.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(255, 71, 101, 0.5);
    transform: translateY(-2px);
}

/* User Menu */
.premium-user-menu {
    position: relative;
}
.premium-avatar-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.avatar-gradient {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4765, #bf5eff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(255, 71, 101, 0.3);
    transition: transform 0.2s ease;
}
.premium-avatar-btn:hover .avatar-gradient {
    transform: scale(1.05);
}
.avatar-caret {
    color: white;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* Dropdown */
.premium-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.premium-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dd-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
}
.dd-name {
    font-weight: 800;
    color: white;
    font-size: 1.1rem;
}
.dd-email {
    color: var(--muted-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    word-break: break-all;
}
.dd-body {
    padding: 0.5rem;
}
.dd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.dd-item i {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: color 0.2s;
}
.dd-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.dd-item:hover i {
    color: white;
}
.dd-admin { color: var(--pink); }
.dd-admin i { color: var(--pink); }
.dd-danger { color: #ff4757; }
.dd-danger i { color: #ff4757; }
.dd-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem;
}

/* Mobile defaults */
.mobile-menu-btn { display: none; }
.mobile-search-btn { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 900px) {
    .premium-navbar { padding: 0 1.25rem; height: 70px; position: relative; }
    .nav-left { gap: 0; flex: 1; align-items: center; }
    
    .nav-brand-group {
        /* Logo placed on the left side */
        display: flex;
        align-items: center;
    }
    .brand-cinevura {
        height: 32px;
        max-height: 32px;
        width: auto;
        transform: none; 
    }
    
    .nav-right { flex: 1; justify-content: flex-end; gap: 0.5rem; }

    .nav-center { display: none; } /* Hide the full search bar on mobile */
    
    .mobile-search-btn {
        display: block;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0.4rem;
    }
    .mobile-search-btn i { width: 22px; height: 22px; }

    /* Hide the 3 lines (hamburger menu) as requested */
    .mobile-menu-btn { display: none !important; }
    .brand-vhub { height: 28px; }
}

/* Notifications Menu */
.premium-notifications-menu {
    position: relative;
    margin-right: 1.5rem;
}
.premium-bell-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.premium-bell-btn:hover {
    color: var(--pink);
    transform: scale(1.05);
}
.premium-bell-btn i {
    width: 22px;
    height: 22px;
}
.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #0a0a0e;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

/* Notifications Dropdown */
.premium-notifications-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -60px;
    width: 320px;
    max-height: 480px;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 600;
}
.premium-notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.notif-dd-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
}
.notif-title {
    font-weight: 800;
    color: white;
    font-size: 1rem;
}
.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.notif-clear-btn {
    background: transparent;
    border: none;
    color: var(--pink);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: filter 0.2s, color 0.2s;
}
.notif-clear-btn:hover {
    filter: brightness(1.2);
}
.notif-remove-all-btn {
    color: #ef4444;
}
.notif-remove-all-btn:hover {
    color: #f87171;
}
.notif-dd-body {
    overflow-y: auto;
    max-height: 400px;
}

/* Notification Items */
.notif-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
    align-items: start;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}
.notif-remove-item-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
    align-self: center;
}
.notif-item:hover .notif-remove-item-btn {
    opacity: 1;
}
.notif-remove-item-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}
.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.notif-item.unread {
    background: rgba(255, 71, 101, 0.03);
}
.notif-item.unread:hover {
    background: rgba(255, 71, 101, 0.06);
}
.notif-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}
.notif-icon-wrap.quiz_reminder { background: rgba(255, 71, 101, 0.2); color: #ff4765; }
.notif-icon-wrap.badge_unlock { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.notif-icon-wrap.system_alert { background: rgba(191, 94, 255, 0.2); color: #bf5eff; }
.notif-icon-wrap.follow_request { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.notif-icon-wrap.follow_accept { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.notif-icon-wrap.comment { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.notif-icon-wrap i {
    width: 16px;
    height: 16px;
}
.notif-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.notif-message {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}
.notif-time {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
}
.notif-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.notif-empty i {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}
.notif-empty p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}
.notif-loading {
    padding: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notif-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: notif-spin 0.8s linear infinite;
}
@keyframes notif-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .premium-notifications-menu {
        margin-right: 0.5rem;
    }
    .premium-notifications-dropdown {
        right: -80px;
        width: 280px;
    }
}
