/* DuneSchools - Northwest Indiana High School Athletics Network */

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #c41e3a;
    --accent-color: #ffc72c;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== HEADER ==================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-size: 0.9em;
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.lead {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== SECTIONS ==================== */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
}

/* ==================== RIVALRY GAMES ==================== */
.rivalry-games {
    background: linear-gradient(135deg, var(--secondary-color), #e74c3c);
    padding: 40px;
    border-radius: 12px;
    color: white;
    margin-bottom: 40px;
}

.rivalry-games h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.rivalry-card {
    border: 3px solid var(--secondary-color);
}

.game-sport {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-matchup {
    margin: 15px 0;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.team-name {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
}

.at-symbol {
    color: var(--text-light);
    font-size: 0.9em;
}

.game-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.game-location {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 5px;
}

/* ==================== BROADCAST SPORTS ==================== */
.broadcast-sports {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.sports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sport-badge {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
}

/* ==================== SCHOOLS GRID ==================== */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.school-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.school-link {
    display: block;
    padding: 25px;
    text-align: center;
    color: inherit;
}

.school-logo {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 15px;
}

.school-card h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.school-mascot {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.school-colors, .school-conference {
    font-size: 0.9em;
    color: var(--text-light);
    margin: 5px 0;
}

/* ==================== SCHOOL PROFILE ==================== */
.school-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.school-header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.school-logo-large {
    max-width: 200px;
    max-height: 200px;
}

.school-info h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.school-mascot-large {
    font-size: 1.5em;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.school-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    line-height: 1.8;
}

/* ==================== RIVAL SECTION ==================== */
.rival-section {
    background: linear-gradient(135deg, var(--secondary-color), #e74c3c);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    color: white;
}

.rival-section h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.rival-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.rival-logo {
    max-width: 100px;
    max-height: 100px;
}

.rival-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==================== SPORTS SECTION ==================== */
.sports-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sport-card {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.sport-card:hover {
    border-color: var(--primary-color);
}

.sport-card.broadcast-sport {
    border-color: var(--secondary-color);
    background: #fff5f7;
}

.sport-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.sport-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.broadcast-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-top: 8px;
}

.sport-levels {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.level-badge {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    color: var(--text-dark);
}

/* ==================== SCHEDULE ==================== */
.schedule-section, .results-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.schedule-list, .results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item, .result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.schedule-item.rivalry-game, .result-item.rivalry-game {
    border-left-color: var(--secondary-color);
    background: #fff5f7;
}

.schedule-date, .result-date {
    min-width: 80px;
    text-align: center;
}

.schedule-date .date, .result-date .date {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
}

.schedule-date .time {
    display: block;
    font-size: 0.9em;
    color: var(--text-light);
}

.schedule-game, .result-game {
    flex: 1;
}

.sport-label {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 10px;
}

.rivalry-badge {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.matchup {
    margin: 10px 0;
    font-size: 1.1em;
}

.location {
    font-size: 0.9em;
    color: var(--text-light);
}

.result-matchup {
    margin: 10px 0;
}

.result-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score {
    font-weight: bold;
    font-size: 1.2em;
}

.score.win {
    color: var(--success);
}

.score.loss {
    color: var(--text-light);
}

/* ==================== CONTACTS ==================== */
.contacts-section, .school-contacts-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.contact-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-card p {
    margin: 8px 0;
    font-size: 0.95em;
}

/* ==================== BROADCAST PARTNERS ==================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.partner-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.partner-logo {
    max-width: 200px;
    max-height: 100px;
    margin-bottom: 20px;
}

.partner-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.partner-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    text-align: left;
}

.partner-contact h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ==================== LOGIN ==================== */
.login-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.login-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.default-credentials {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9em;
}

.default-credentials code {
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.warning {
    color: var(--danger);
    font-weight: 600;
}

.login-prompt {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: #004080;
    color: white;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: #555;
    color: white;
}

.btn-edit {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}

.btn-delete {
    background: var(--danger);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
}

/* ==================== MESSAGES ==================== */
.error-message {
    background: #ffc0cb;
    color: var(--danger);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--danger);
}

.success-message {
    background: #d4edda;
    color: var(--success);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
}

/* ==================== ADMIN SECTION ==================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.admin-menu {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.admin-links a {
    display: block;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.admin-links a:hover {
    background: var(--primary-color);
    color: white;
}

.admin-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.admin-table-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-table .actions {
    display: flex;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    background: var(--warning);
    color: var(--text-dark);
}

.badge-active {
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
}

.badge-inactive {
    background: var(--text-light);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .school-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .games-grid,
    .schools-grid,
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-item,
    .result-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

