/* Schedule Stylesheet - Saving Sarah */

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

body {
    background-color: #000000;
    color: #aceef7;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: #00a99d;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #4dc4b8;
    text-decoration: underline;
    font-weight: bold;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #1a2e2b;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #00a99d;
}

h1 {
    background-color: #1a2e2b;
    color: #aceef7;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    background-color: #1a2e2b;
    color: #00a99d;
    font-family: 'Exo 2', sans-serif;
}

h3 {
    background-color: #1a2e2b;
    color: #aceef7;
    font-family: 'Exo 2', sans-serif;
}

h4 {
    background-color: #1a2e2b;
    color: #4dc4b8;
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
}

.event-date {
    font-size: 1.2rem;
    color: #aceef7;
}

.stats-container {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #00a99d;
    color: #aceef7;
    font-size: 0.9rem;
}

.stats-container span {
    color: #00a99d;
    font-weight: bold;
}

.timezone-notice {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #4dc4b8;
    font-style: italic;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #aceef7;
}

.spinner {
    border: 6px solid #1a2e2b;
    border-top: 6px solid #00a99d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error {
    display: none;
    padding: 20px;
    background-color: #1a2e2b;
    color: #4dc4b8;
    border: 1px solid #4dc4b8;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Day navigation */
.day-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #1a2e2b;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #00a99d;
}

.day-button {
    padding: 8px 16px;
    background-color: #00a99d;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.2s ease;
    color: #ffffff;
}

.day-button:hover {
    background-color: #4dc4b8;
    color: #ffffff;
    text-decoration: underline;
}

.day-button.active {
    background-color: #aceef7;
    color: #006b61;
}

.schedule-container {
    overflow-x: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #00a99d;
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    background-color: #000000;
}

.schedule th, .schedule td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #006b61;
}

.schedule th {
    background-color: #1a2e2b;
    color: #aceef7;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.schedule td:first-child {
    color: #00a99d;
    font-weight: bold;
}

.odd-row {
    background-color: #000000;
}

.even-row {
    background-color: #1a2e2b;
}

.schedule tr:hover {
    background-color: #006b61;
}

/* Current run highlight */
.current-run {
    background-color: #006b61 !important;
    border-left: 5px solid #aceef7;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(172, 238, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(172, 238, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(172, 238, 247, 0); }
}

.game-title {
    font-weight: 600;
}

.game-title a {
    color: #aceef7;
    font-weight: 600;
}

.game-title a:hover {
    color: #4dc4b8;
}

.runners a {
    color: #00a99d;
    text-decoration: none;
    font-weight: bold;
}

.runners a:hover {
    color: #4dc4b8;
    text-decoration: underline;
}

.no-runners {
    color: #4dc4b8;
    font-style: italic;
}

.hosts a {
    color: #00a99d;
    text-decoration: none;
    font-weight: bold;
}

.hosts a:hover {
    color: #4dc4b8;
    text-decoration: underline;
}

.no-hosts {
    color: #4dc4b8;
    font-style: italic;
}

.category {
    font-style: italic;
    color: #aceef7;
}

.start-time, .duration {
    white-space: nowrap;
    color: #aceef7;
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #aceef7;
    padding: 20px;
    border-top: 1px solid #00a99d;
}

.last-updated {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #aceef7;
}

/* Button styles from Preventathon */
.btn-yellow {
    background: #aceef7;
    font-weight: bold;
    color: #006b61;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}

.btn-yellow:hover {
    background-color: #4dc4b8;
    color: #ffffff;
    text-decoration: underline;
}

.btn-teal {
    background: #00a99d;
    font-weight: bold;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}

.btn-teal:hover {
    background-color: #4dc4b8;
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive styling */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .schedule th, .schedule td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .schedule {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .day-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .schedule th, .schedule td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .day-navigation {
        padding: 5px;
    }
    
    .day-button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
