/* ============================================
   TOP NAVIGATION (Desktop Only)
   ============================================ */

/* Hide top nav on mobile, show on desktop */
.top-nav {
    display: none;
}

/* Brand logo text (shared across desktop top nav and mobile view headers) */
.brand-logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

/* Default for light backgrounds (mobile headers) */
.brand-race {
    color: #333;
}

.brand-pool {
    color: #4ade80; /* Green color */
    margin-left: -1px;
}

@media (min-width: 769px) {
    .top-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 12px 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 2000;
        gap: 24px;
    }
    
    .top-nav-brand {
        font-size: 24px;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    /* Desktop top nav overrides (brand sits on a dark gradient) */
    .top-nav .brand-logo-text {
        font-size: 24px;
    }

    .top-nav .brand-race {
        color: white;
    }

    .top-nav .brand-pool {
        color: #4ade80;
    }
    
    .top-nav-links {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        justify-content: center;
    }
    
    .top-nav-user {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .top-nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: white;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    .top-nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }
    
    .top-nav-link.active {
        background: rgba(255, 255, 255, 0.95);
        color: #667eea;
        border-color: white;
        font-weight: 600;
    }
    
    .top-nav-icon {
        font-size: 16px;
        line-height: 1;
    }
    
    /* User button styling */
    .top-nav-user .top-nav-link {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .top-nav-user .top-nav-link:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}
