/* CSRA Seniors Golf - Main Stylesheet */

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --color-primary: #1a5f2a;
    --color-primary-dark: #134620;
    --color-secondary: #2c7a3f;
    --color-accent: #f4a020;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #f8f9fa;
    --color-white: #fff;
    --color-border: #ddd;
    --color-muted: #888;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 6px;
    --max-width: 1100px;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

/* Development Banner */
.dev-banner {
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-primary);
    margin-top: 0;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a:link {
    color: #0000EE;
    text-decoration: none;
}

a:visited {
    color: #666666;
}

a:hover {
    text-decoration: underline;
}

a:active {
    color: #CC0000;
}

address {
    font-style: normal;
}

/* Header */
.site-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    color: var(--color-white);
    text-decoration: none;
}

.logo h1 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin: 0;
}

.logo:hover {
    text-decoration: none;
}

/* Navigation */
.main-nav .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.main-nav a:link,
.main-nav a:visited {
    color: rgba(255,255,255,0.9);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 5px 0;
    border-radius: 2px;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

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

.btn-primary:link,
.btn-primary:visited,
.btn-primary:active {
    color: var(--color-white);
}

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

.btn-secondary:hover {
    background: #ccc;
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: #dc3545;
    color: var(--color-white);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-danger:link,
.btn-danger:visited,
.btn-danger:active {
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.schedule-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.schedule-table tbody tr:hover {
    background: #f5f5f5;
}

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

/* Highlight Card (Next Tournament) */
.next-tournament {
    margin-bottom: 2rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.highlight-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.highlight-card h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.tournament-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tournament-details p {
    margin: 0;
}

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

.highlight-card .btn:hover {
    background: var(--color-bg);
}

/* Schedule Sections */
.schedule-section {
    margin-bottom: 2rem;
}

.schedule-section h2 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Content Pages */
.content-page {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.content-section {
    margin-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.content-section ul,
.content-section ol {
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

/* Resources Page */
.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.resource-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-list h3 {
    margin-bottom: 0.25rem;
}

.resource-list h3 a:link {
    color: #0000EE;
}

.resource-list h3 a:visited {
    color: #666666;
}

.resource-list h3 a:active {
    color: #CC0000;
}

.resource-list p {
    margin: 0;
    color: var(--color-text-light);
}

/* President's Message Page */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
}

.main-content {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.message-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.message-header h2 {
    margin-bottom: 0.25rem;
}

.message-date {
    color: var(--color-text-light);
    margin: 0;
}

.message-content {
    line-height: 1.8;
}

.message-content p {
    margin-bottom: 1rem;
}

.message-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-style: italic;
}

.archive-notice {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-accent);
}

.archive-notice p {
    margin: 0 0 0.5rem 0;
}

/* Sidebar */
.sidebar {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

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

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.archive-list a:hover {
    background: var(--color-bg);
    text-decoration: none;
}

.archive-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.flash-success {
    background: #d4edda;
    color: #155724;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
}

/* Utility Classes */
.text-muted {
    color: var(--color-muted);
}

.no-data {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-light);
    background: var(--color-white);
    border-radius: var(--radius);
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 1.5rem 0;
    text-align: center;
}

.site-footer p {
    margin: 0.25rem 0;
}

.site-footer a:link,
.site-footer a:visited {
    color: var(--color-white);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .main-nav .nav-links.active {
        display: flex;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
    }

    .schedule-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .schedule-table td::before {
        content: attr(data-label);
        font-weight: 600;
    }

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

    .highlight-card {
        padding: 1rem;
    }

    .tournament-details {
        grid-template-columns: 1fr;
    }
}
