/* assets/css/style.css */
:root {
    --color-bg: #faf7f2; /* Light sand */
    --color-surface: #ffffff;
    --color-primary: #e67e22; /* Sunset orange */
    --color-primary-dark: #d35400;
    --color-secondary: #3498db; /* Ocean blue */
    --color-text: #2c3e50;
    --color-text-muted: #7f8c8d;
    --color-border: #ecf0f1;
    --radius-md: 8px;
    --radius-lg: 12px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: var(--space-lg) var(--space-md) 40px;
    position: relative;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.site-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.nav-tab {
    background: var(--color-surface);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-tab.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Container */
.container {
    max-width: 600px; /* Mobile focused */
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

/* Schedule List */
.week-header {
    background: var(--color-text);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 700;
    margin: -var(--space-md) -var(--space-md) var(--space-md) -var(--space-md);
    display: flex;
    justify-content: space-between;
}

.date-header {
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: var(--space-md) 0 var(--space-sm);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-border);
}

.game-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.game-row:last-child {
    border-bottom: none;
}

.game-time {
    font-weight: 700;
    color: var(--color-text-muted);
    width: 50px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.game-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
}

.team-name {
    flex: 1;
    color: var(--color-text);
}

.team.winner .team-name {
    color: var(--color-primary-dark);
}

.score-badge {
    background: var(--color-border);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-text-muted);
}
.team.winner .score-badge {
    background: var(--color-primary);
    color: white;
}

/* Standings Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-sm);
}

.standings-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.standings-table th.center, .standings-table td.center {
    text-align: center;
}

.standings-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 500;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.rank-badge {
    background: var(--color-bg);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.standings-table tr:nth-child(1) .rank-badge { background: #f1c40f; color: #fff; } /* Gold */
.standings-table tr:nth-child(2) .rank-badge { background: #bdc3c7; color: #fff; } /* Silver */
.standings-table tr:nth-child(3) .rank-badge { background: #cd7f32; color: #fff; } /* Bronze */

/* Sub Board */
.sub-post {
    border-left: 4px solid var(--color-secondary);
}

.sub-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
}

/* Admin Styles */
.admin-badge {
    background: var(--color-text);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
}
