/* ============================================
   CUSTOM NAVIGATION STYLES (scoped to nav)
============================================ */

/* Nav-specific fonts */
nav .font-display {
    font-family: 'Bebas Neue', Impact, sans-serif;
}

nav .font-body {
    font-family: 'DM Sans', system-ui, sans-serif;
}

.site-background {
    background-color: #0a0a0a;
    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.025) 0px,
            rgba(255,255,255,0.025) 1px,
            transparent 1px,
            transparent 22px
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(48, 159, 106, 0.30) 0%,
            rgba(48, 159, 106, 0.15) 18%,
            transparent 45%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(227, 41, 46, 0.28) 0%,
            rgba(227, 41, 46, 0.14) 20%,
            transparent 45%
        );
    background-size: 32px 32px, 100vw 100vh, 100vw 100vh;
    background-position: 0 0, 0 0, 0 0;
    background-repeat: repeat, no-repeat, no-repeat;
    background-attachment: scroll, fixed, fixed;
}

/* Navbar container */
.nav-container {
    position: relative;
    overflow: visible;
}



/* Desktop nav items */
.nav-item {
  position: relative;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem; /* keep one */
}

.nav-item::after{
    content: '';
    position: absolute;
    inset-inline: 0.75rem;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(45deg, #309F6A, #E3292E);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    border-radius: 2px;
    inset-inline-start: 0.65rem;
    inset-inline-end: 0.90rem;
}

.nav-item:hover::after,
.nav-item.active::after{
  transform: scaleX(1);
}

.nav-item:hover {
  color: #fff;
}


/* Account dropdown doesn't need the underline effect */
.nav-item.account-dropdown::after {
    display: none;
}

.nav-item.account-dropdown::before {
    display: none;
}

/* ============================================
   ACCOUNT DROPDOWN (Desktop)
============================================ */

.account-dropdown-wrapper {
    position: relative;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.account-trigger:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(48, 159, 106, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #309F6A;
    font-size: 0.8rem;
}

.account-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.account-arrow {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.account-trigger:hover .account-arrow {
    color: rgba(255,255,255,0.7);
}

.account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
}

.account-trigger:hover .account-panel,
.account-trigger:focus .account-panel,
.account-trigger:focus-within .account-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-trigger:hover .account-arrow {
    transform: rotate(180deg);
}

/* Logout item special styling */
.dropdown-item.logout-item .dropdown-icon {
    color: #E3292E;
}

.dropdown-item.logout-item .dropdown-label {
    color: #E3292E;
}

/* Dropdown trigger arrow */
.nav-item .dropdown-arrow {
    display: inline-block;
    margin-left: 0;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-item:hover .dropdown-arrow,
.nav-item[aria-expanded="true"] .dropdown-arrow {
    opacity: 1;
    transform: rotate(180deg);
}

/* Dropdown Panel */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.8),
        0 0 0 1px rgba(48, 159, 106, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Dropdown arrow pointer */
.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8px solid #151515;
}

.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.dropdown-item:hover {
    background: rgba(48, 159, 106, 0.15);
    color: #fff;
}

.dropdown-item:hover .dropdown-icon {
    color: #309F6A;
    transform: scale(1.1);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dropdown-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* ============================================
   MOBILE NAVIGATION
============================================ */

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: #0a0a0a;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 0.75rem 1.25rem;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.mobile-stream-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.mobile-stream-status .status-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-stream-status .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-stream-status .status-badge.live {
    background: rgba(48, 159, 106, 0.2);
    border: 1px solid rgba(48, 159, 106, 0.4);
    color: #309F6A;
}

.mobile-stream-status .status-badge.offline {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.mobile-stream-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mobile-stream-status .status-badge.live .status-dot {
    background: #309F6A;
    animation: pulse 2s infinite;
}

.mobile-stream-status .status-badge.offline .status-dot {
    background: rgba(255,255,255,0.4);
}

.mobile-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.mobile-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mobile-live-badge.live {
    background: rgba(48, 159, 106, 0.2);
    border: 1px solid rgba(48, 159, 106, 0.4);
    color: #309F6A;
}

.mobile-live-badge.offline {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.mobile-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mobile-live-badge.live .mobile-live-dot {
    background: #309F6A;
    animation: pulse 2s infinite;
}

.mobile-live-badge.offline .mobile-live-dot {
    background: rgba(255,255,255,0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.mobile-menu-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: #fff;
}

/* Mobile nav items */
.mobile-nav-group {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav-header:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mobile-nav-header .expand-icon {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s ease;
}

.mobile-nav-group.expanded .expand-icon {
    transform: rotate(180deg);
    color: #309F6A;
}

.mobile-nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.4);
}

.mobile-nav-group.expanded .mobile-nav-children {
    max-height: 400px;
}

.mobile-nav-child {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem 0.75rem 1.75rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.mobile-nav-child:hover {
    background: rgba(48, 159, 106, 0.1);
    color: #fff;
    border-left-color: #309F6A;
}

.mobile-nav-child i {
    width: 16px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.mobile-nav-child:hover i {
    color: #309F6A;
}

/* Mobile auth buttons */
.mobile-auth-btn {
    display: block;
    text-align: center;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-auth-btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

.mobile-auth-btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.mobile-auth-btn-primary {
    background: linear-gradient(135deg, #309F6A 0%, #268055 100%);
    color: #fff;
}

.mobile-auth-btn-primary:hover {
    background: linear-gradient(135deg, #36b077 0%, #309F6A 100%);
}

/* Hamburger button */
.hamburger-btn {
    position: relative;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 210;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; }
.hamburger-line:nth-child(3) { top: 16px; }

.hamburger-btn.active .hamburger-line:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
    background: #E3292E;
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
    background: #E3292E;
}

/* Live badge pulse */
@keyframes live-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(227, 41, 46, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(227, 41, 46, 0);
    }
}

.live-badge {
    animation: live-pulse 2s infinite;
}

/* login & register buttons */
.auth-btn {
    font-family: 'Bebas Neue', Impact, sans-serif;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #309F6A 0%, #268055 100%);
    color: #fff;
    border: none;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #36b077 0%, #309F6A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 159, 106, 0.3);
}

.auth-btn-secondary {
    background: linear-gradient(135deg, #E3292E 0%, #B81F23 100%);
    color: #fff;
    border: none;
}

.auth-btn-secondary:hover {
    background: linear-gradient(135deg, #ff3b40 0%, #E3292E 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 41, 46, 0.35);
}

.auth-btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.8);
}

.auth-btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* Scrollbar */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background-color: #2a2a2a;
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: #404040;
}