/* styles.css - Shared styles for all pages */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: #0f0f0f; 
    color: #ffffff; 
    min-height: 100vh; 
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%), 
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%); 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* Header Styles */
.header { 
    text-align: center; 
    margin-bottom: 40px; 
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1); 
    position: relative; 
    overflow: hidden; 
}

.header::before { 
    content: ''; 
    position: absolute; 
    top: -50%; 
    right: -50%; 
    width: 200%; 
    height: 200%; 
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%); 
    animation: pulse 4s ease-in-out infinite; 
}

@keyframes pulse { 
    0%, 100% { transform: scale(1); opacity: 0.5; } 
    50% { transform: scale(1.1); opacity: 0.3; } 
}

.logo-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 30px; 
    margin-bottom: 10px; 
    position: relative; 
    z-index: 1; 
    flex-direction: row; 
}

.logo { 
    width: 200px; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); 
    transition: transform 0.3s ease; 
}

.logo:hover { 
    transform: scale(1.05); 
}

.logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.header h1 { 
    font-family: 'Bebas Neue', sans-serif; 
    font-size: 4em; 
    color: #ffffff; 
    margin: 0; 
    font-weight: 400; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}

.header .subtitle { 
    font-size: 1.2em; 
    color: #b0b0b0; 
    margin-top: 10px; 
    font-weight: 300; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
}

/* Navigation Styles */
.nav-toggle { 
    display: none; 
    background: transparent; 
    border: none; 
    color: #ffffff; 
    font-size: 1.5em; 
    cursor: pointer; 
    padding: 10px; 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    z-index: 1001; 
}

.nav-bar { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
}

.nav-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    z-index: 999; 
}

.nav-mobile { 
    display: none; 
    position: fixed; 
    top: 80px; 
    left: 20px; 
    width: 200px; 
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    z-index: 1000; 
    padding: 10px 0; 
}

.nav-mobile.active { 
    display: block; 
}

.nav-mobile .nav-link { 
    display: block; 
    padding: 20px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    text-align: center; 
}

.nav-link { 
    padding: 12px 30px; 
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 30px; 
    color: #b0b0b0; 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.9em; 
}

.nav-link:hover { 
    background: linear-gradient(135deg, #7877c6 0%, #5a59a3 100%); 
    color: #ffffff; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(120, 119, 198, 0.3); 
}

.nav-link.active { 
    background: linear-gradient(135deg, #7877c6 0%, #5a59a3 100%); 
    color: #ffffff; 
}

/* Content Styles */
.content { 
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05); 
    min-height: 500px; 
    backdrop-filter: blur(10px); 
}

/* Loading and Error Styles */
.loading { 
    text-align: center; 
    padding: 40px; 
}

.loading-spinner { 
    width: 50px; 
    height: 50px; 
    border: 4px solid #333; 
    border-top: 4px solid #7877c6; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 20px; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.error { 
    background: linear-gradient(135deg, #f44336, #d32f2f); 
    color: white; 
    padding: 20px; 
    border-radius: 10px; 
    margin: 20px 0; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3); 
}

/* Position Badges */
.position { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.85em; 
    font-weight: 600; 
    color: white; 
    text-align: center; 
    min-width: 45px; 
}

.position.QB { 
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); 
}

.position.RB { 
    background: linear-gradient(135deg, #16a34a 0%, #14532d 100%); 
}

.position.WR { 
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%); 
}

.position.TE { 
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); 
}

.position.DST { 
    background: linear-gradient(135deg, #6b7280 0%, #374151 100%); 
}

/* Table Styles */
.division-table, .players-table, .draft-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: transparent; 
}

.division-table th, .players-table th, .draft-table th { 
    background: rgba(255, 255, 255, 0.05); 
    color: #b0b0b0; 
    padding: 14px 8px; 
    text-align: center; 
    font-size: 0.85em; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.division-table td, .players-table td, .draft-table td { 
    padding: 14px 8px; 
    text-align: center; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    color: #e0e0e0; 
    font-weight: 400; 
}

.division-table tr, .players-table tr, .draft-table tr { 
    transition: background 0.2s ease; 
}

.division-table tr:hover, .players-table tr:hover, .draft-table tr:hover { 
    background: rgba(255, 255, 255, 0.03); 
}

/* Cap Space Colors */
.cap-space { 
    font-weight: 600; 
    font-size: 0.95em; 
}

.cap-space.positive { 
    color: #4ade80; 
}

.cap-space.negative { 
    color: #f87171; 
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo { 
        width: 140px; 
        height: 140px; 
    }
    
    .header { 
        padding: 21px; 
    }
    
    .header h1 { 
        font-size: 2.8em; 
    }
    
    .header .subtitle { 
        font-size: 0.84em; 
    }
    
    .nav-toggle { 
        display: block; 
    }
    
    .nav-bar { 
        display: none; 
    }
    
    .nav-overlay.active { 
        display: block; 
    }
    
    .team-cell { 
        display: none !important; 
    }
    
    .team-abbr { 
        display: table-cell !important; 
    }
    
    .position { 
        padding: 2px 6px; 
        font-size: 0.7em; 
        min-width: 35px; 
    }
    
    .content { 
        padding: 20px; 
    }
    
    .division-table, .players-table, .draft-table { 
        font-size: 0.85em; 
    }
    
    .division-table th, .division-table td,
    .players-table th, .players-table td,
    .draft-table th, .draft-table td { 
        padding: 8px 4px; 
    }
    
    .nav-bar { 
        gap: 10px; 
    }
    
    .nav-link { 
        padding: 10px 20px; 
        font-size: 0.8em; 
    }
}

@media (min-width: 769px) {
    .nav-toggle { 
        display: none; 
    }
}