/* 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 Social Network Header - Responsive 3-Section Layout */
.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;
    margin: 0 !important;
    padding: 0 !important;
}

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

.header-container {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box;
    gap: 20px;
}

.sports-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

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

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

.sports-logo i {
    font-size: 36px;
    margin-right: 12px;
    animation: trophySpin 2s linear infinite;
}

@keyframes trophySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-section {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-social {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    transition: all 0.3s ease;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

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

.user-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: calc(var(--beta-banner-height) + var(--navbar-height));
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF8C00, #E53E3E);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 999;
    max-height: calc(100vh - var(--beta-banner-height) - var(--navbar-height));
    overflow-y: auto;
}

.mobile-menu.active {
    display: block !important;
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-item {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-nav-item:hover {
    padding-left: 10px;
    color: #FFE5CC;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-user-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.mobile-user-info {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.athlete-profile {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.bug-report-btn {
    background: #FF8C00;
    border: none;
    color: white;
    padding: 12px 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(255, 140, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bug-report-btn:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.power-btn {
    background: #E53E3E;
    border: none;
    color: white;
    padding: 12px 24px;
    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;
}

.create-event-btn, .create-team-btn {
    background: linear-gradient(135deg, #38A169, #2F855A);
    border: none;
    color: white;
    padding: 12px 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(56, 161, 105, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.create-team-btn {
    background: linear-gradient(135deg, #3182CE, #2C5282);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

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

.create-team-btn:hover {
    background: linear-gradient(135deg, #2C5282, #2A4365);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
}

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

/* Responsive Breakpoints */
@media (max-width: 1350px) {
    .header-container {
        gap: 15px;
    }
    
    .nav-social {
        gap: 20px;
    }
    
    .nav-item a {
        padding: 10px 15px;
        font-size: 15px;
    }
}

@media (max-width: 1350px) {
    .nav-social {
        gap: 15px;
    }
    
    .nav-item a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .create-event-btn, .create-team-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .bug-report-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (min-width: 1500px) {
    .nav-social {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1499px) {
    .nav-section {
        display: none !important;
    }
    
    .nav-social {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .header-container {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }
    
    .user-zone {
        gap: 10px;
        display: flex;
        align-items: center;
    }
    
    .athlete-profile {
        display: none !important;
    }
    
    .power-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sports-logo {
        font-size: 22px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .sports-logo i {
        font-size: 28px;
    }
    
    .create-event-btn, .create-team-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .bug-report-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .athlete-profile {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .power-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@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) {
    .header-container {
        padding: 0 15px;
    }
    
    .sports-logo {
        font-size: 20px;
    }
    
    .user-zone {
        gap: 8px;
    }
    
    .create-event-btn span, .create-team-btn span {
        display: none;
    }
    
    .bug-report-btn span {
        display: none;
    }
    
    .athlete-profile span {
        display: none;
    }
    
    .power-btn span {
        display: none;
    }
    
    .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;
    }
    
    .sports-header {
        top: calc(var(--beta-banner-height) - 12px);
    }
}

@media (max-width: 480px) {
    .sports-logo {
        font-size: 18px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .sports-logo i {
        font-size: 24px;
        margin-right: 8px;
    }
    
    .create-event-btn, .create-team-btn {
        padding: 6px 10px;
    }
    
    .bug-report-btn {
        padding: 6px 10px;
    }
    
    .athlete-profile {
        padding: 6px 10px;
    }
    
    .power-btn {
        padding: 6px 10px;
    }
}