* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #4fc3f7; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header / Nav */
header {
    background: #16213e;
    border-bottom: 2px solid #0f3460;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

header .logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e94560;
}

nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

nav a {
    color: #b0bec5;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    color: #fff;
    background: #0f3460;
    text-decoration: none;
}

.user-info {
    color: #4fc3f7;
    font-size: 0.9rem;
}

/* Flash messages */
.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.flash.success { background: #1b5e20; color: #a5d6a7; }
.flash.error { background: #b71c1c; color: #ef9a9a; }

/* Cards */
.card {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card h2 {
    color: #e94560;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    color: #4fc3f7;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Game card */
.game-card {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.game-card.today {
    border-color: #e94560;
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
}

.game-card.locked {
    opacity: 0.7;
}

.game-date {
    font-size: 0.8rem;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-matchup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #fff;
    flex-wrap: wrap;
}

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
}

.team-logo.large {
    width: 48px;
    height: 48px;
}

.game-time {
    font-size: 0.85rem;
    color: #90a4ae;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.today-badge { background: #e94560; color: #fff; }
.badge.locked-badge { background: #546e7a; color: #fff; }
.badge.scored-badge { background: #1b5e20; color: #a5d6a7; }

/* Forms */
.score-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.score-form label {
    font-size: 0.85rem;
    color: #b0bec5;
}

.score-input {
    width: 50px;
    padding: 0.4rem;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.score-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.vs { color: #78909c; font-weight: bold; }

button, .btn {
    padding: 0.5rem 1rem;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
}

button:hover, .btn:hover {
    background: #c62828;
}

button:disabled {
    background: #546e7a;
    cursor: not-allowed;
}

/* Standings table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th, .standings-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #0f3460;
}

.standings-table th {
    color: #4fc3f7;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.standings-table tr:hover {
    background: rgba(79, 195, 247, 0.05);
}

.rank { color: #e94560; font-weight: bold; width: 30px; }

/* Login page */
.login-card {
    max-width: 350px;
    margin: 4rem auto;
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.login-card h1 {
    color: #e94560;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: #78909c;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: #b0bec5;
    font-size: 0.85rem;
}

select, input[type="text"], input[type="password"], input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
}

select:focus, input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.login-card button {
    width: 100%;
    margin-top: 0.5rem;
}

/* Prediction display */
.prediction-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.points { font-weight: bold; color: #4fc3f7; }
.points.exact { color: #66bb6a; }

/* Results */
.result-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0.25rem 0;
}

.player-result {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(15, 52, 96, 0.5);
}

.player-result:last-child { border-bottom: none; }

/* Responsive */
@media (max-width: 480px) {
    .score-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .score-form .score-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}
