/* Results Pages Modern Styling - 2025 */
/* Matches the modern-style.css from the homepage */

:root {
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

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

/* Header Navigation - Inherit from modern-style.css, only add result-specific overrides if needed */

/* Main Content Container */
.main-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: var(--primary-blue);
    color: white;
    border-left-color: var(--primary-hover);
    transform: translateX(4px);
}

/* Main Content Area */
.main-content {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.content-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.content-header .subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* Results Tables */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    table-layout: auto;
}

.results-table th {
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.results-table a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.results-table a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Column width hints for better mobile layout */
.results-table th:nth-child(1),
.results-table td:nth-child(1) {
    width: 15%;
    min-width: 70px;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
    width: 50%;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3),
.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    width: 17.5%;
    min-width: 60px;
}

/* Results List Styling */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.results-list li:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

.results-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.results-list a:hover {
    color: var(--primary-blue);
}

/* Year Headers in Lists */
.year-header {
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Event Date Labels */
.event-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
}

.event-name {
    color: var(--text-dark);
    font-weight: 500;
}

/* Footer */
.site-footer {
    max-width: 1280px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.contact-email {
    font-size: 1.125rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 2rem;
    }

    .main-container {
        padding: 0 0.5rem !important;
        margin: 1rem auto !important;
    }

    .main-content {
        padding: 0.75rem !important;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .results-table {
        font-size: 0.75rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem 0.25rem;
    }

    /* Tighter column widths on mobile */
    .results-table th:nth-child(1),
    .results-table td:nth-child(1) {
        width: 18%;
        min-width: 55px;
    }

    .results-table th:nth-child(2),
    .results-table td:nth-child(2) {
        width: 46%;
    }

    .results-table th:nth-child(3),
    .results-table td:nth-child(3),
    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        width: 18%;
        min-width: 45px;
    }

    .results-list li {
        padding: 0.875rem 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Override with grid navigation on mobile to match modern-style.css */
@media (max-width: 768px) {
    .main-nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        flex-wrap: unset !important;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.625rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 6px;
        background: var(--bg-light);
        border: 1px solid var(--border);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
    }
}

@media (max-width: 480px) {
    .main-nav {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.375rem !important;
    }

    .nav-link {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.65rem !important;
    }
}
