/* Reset body margins for full-width header */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Beta Alert Banner */
.beta-alert-banner {
    background: linear-gradient(135deg, #FFA500, #FF6347);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 99, 71, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100vw;
}

.beta-alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.beta-alert-content i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.beta-subscribe-link {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
}

.beta-subscribe-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Sports Header */
.sports-header {
    background: linear-gradient(135deg, #FF8C00, #E53E3E, #3182CE);
    background-size: 200% 200%;
    animation: energyPulse 4s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.3);
    position: fixed;
    top: var(--beta-banner-height);
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    width: 100vw;
}

@keyframes energyPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== NAVBAR DESKTOP ===== */
.navbar-desktop {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 20px;
}

.navbar-mobile {
    display: none;
}

@media (max-width: 1499px) {
    .navbar-desktop {
        display: none;
    }
    .navbar-mobile {
        display: flex;
    }
}

/* Logo */
.sports-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.sports-logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Nav Center */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.nav-item a,
.nav-dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.nav-item a:hover,
.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item.active a {
    background: #1A365D;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.4);
}

/* Disabled items */
.nav-item-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Create button — desktop pill */
.create-btn {
    background: linear-gradient(135deg, #38A169, #2F855A);
    border: none;
    color: white;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(56, 161, 105, 0.3), 0 0 0 0 rgba(56, 161, 105, 0.5);
    animation: createPulse 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
}

.create-btn .fa-plus {
    font-size: 16px;
}

.create-btn:hover {
    background: linear-gradient(135deg, #2F855A, #276749);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(56, 161, 105, 0.5), 0 0 0 4px rgba(56, 161, 105, 0.25);
    animation: none;
}

@keyframes createPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(56, 161, 105, 0.3), 0 0 0 0 rgba(56, 161, 105, 0.5); }
    50% { box-shadow: 0 4px 16px rgba(56, 161, 105, 0.3), 0 0 0 6px rgba(56, 161, 105, 0); }
}

/* Create button — mobile circle */
.create-btn-mobile {
    background: linear-gradient(135deg, #38A169, #2F855A);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.create-btn-mobile:hover {
    background: linear-gradient(135deg, #2F855A, #276749);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.5);
}

/* Bell button */
.bell-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.bell-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Notification badge */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #E53E3E;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.5);
    pointer-events: none;
}

/* Notification dropdown */
.notif-dropdown {
    position: relative;
}

.notif-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1A202C;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    width: 360px;
    max-height: 480px;
    overflow: hidden;
}

.notif-dropdown.open .notif-popup {
    display: block;
}

.notif-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-popup-title {
    color: #E2E8F0;
    font-weight: 700;
    font-size: 15px;
}

.notif-mark-all-btn {
    background: none;
    border: none;
    color: #63B3ED;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    font-family: inherit;
}

.notif-mark-all-btn:hover {
    background: rgba(99, 179, 237, 0.15);
}

.notif-popup-list {
    overflow-y: auto;
    max-height: 400px;
}

.notif-empty {
    padding: 40px 16px;
    text-align: center;
    color: #A0AEC0;
    font-size: 14px;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item-unread {
    background: rgba(99, 179, 237, 0.08);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #A0AEC0;
    font-size: 14px;
}

.notif-item-unread .notif-item-icon {
    background: rgba(99, 179, 237, 0.2);
    color: #63B3ED;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-time {
    color: #718096;
    font-size: 11px;
    margin-top: 2px;
}

.notif-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #63B3ED;
    flex-shrink: 0;
}

/* Notification popup mobile */
@media (max-width: 1499px) {
    .notif-popup-mobile {
        position: fixed;
        top: calc(var(--beta-banner-height) + var(--navbar-height));
        left: 5%;
        right: 5%;
        width: 90%;
        margin-top: 0;
        max-height: calc(100vh - var(--beta-banner-height) - var(--navbar-height) - 20px);
    }
}

@media (max-width: 600px) {
    .notif-popup-mobile {
        left: 2%;
        right: 2%;
        width: 96%;
    }

    .notif-popup-header {
        padding: 12px 14px;
    }

    .notif-item {
        padding: 10px 14px;
        gap: 10px;
    }
}

/* Avatar toggle */
.avatar-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.avatar-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.avatar-username {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdowns */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A202C;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    list-style: none;
    margin: 8px 0 0 0;
}

.nav-item-dropdown.open > .nav-dropdown-menu,
.nav-item-dropdown.open > button + .nav-dropdown-menu {
    display: block;
}

.avatar-dropdown-menu {
    right: 0;
    left: auto;
}

.create-dropdown-menu {
    right: 0;
    left: auto;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #E2E8F0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-menu li a.nav-item-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Power button (non-authenticated) */
.power-btn {
    background: #E53E3E;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.power-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.5);
}

/* Header Avatar Target */
.js-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.js-header-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== NAVBAR MOBILE ===== */
.navbar-mobile {
    align-items: center;
    height: 100%;
    padding: 0 15px;
    justify-content: space-between;
}

.nav-right-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.mobile-drawer-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
    display: none;
    position: fixed;
    top: calc(var(--beta-banner-height) + var(--navbar-height));
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #1A202C;
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
    display: block;
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-username {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.drawer-nav {
    padding: 10px 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.drawer-item.active {
    background: rgba(49, 130, 206, 0.2);
    color: #63B3ED;
}

.drawer-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
}

.drawer-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #A0AEC0;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-subitem {
    display: block;
    padding: 10px 20px 10px 52px;
    color: #CBD5E0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.drawer-subitem:hover {
    background: rgba(255, 255, 255, 0.05);
}

.drawer-subitem.active {
    color: #63B3ED;
}

.drawer-subitem.nav-item-disabled,
.drawer-item.nav-item-disabled,
.drawer-section-title.nav-item-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.drawer-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1499px) {
    .navbar-mobile .logo-image {
        height: 40px;
    }
}

@media (max-width: 800px) {
    .beta-alert-banner {
        overflow: hidden;
        white-space: nowrap;
    }

    .beta-alert-content {
        display: inline-flex;
        animation: scrollBanner 15s linear infinite;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    @keyframes scrollBanner {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-100%); }
    }
}

@media (max-width: 600px) {
    .navbar-mobile {
        padding: 0 10px;
    }

    .mobile-drawer {
        width: 260px;
    }

    .beta-alert-banner {
        padding: 4px 0;
        font-size: 12px;
    }

    .beta-alert-content {
        font-size: 12px;
        gap: 8px;
        padding: 0 10px;
    }

    .beta-subscribe-link {
        font-size: 10px;
        padding: 2px 6px;
    }
}
