﻿:root {
    /* 🎨 Easy to tweak your theme here */
    --primary: #DE9A2F; /* Golden Fall */
    --secondary: #73111B; /* Burgundy */
    --warning: #E07B39; /* Burnt Orange */
    --danger: #B7410E; /* Rust Red */
    --light: #f8f9fa; /* Light gray backgrounds */
    --dark: #333333; /* Dark text */
    --header-bg: var(--primary);
    --header-text: #f0f3f4;
    --footer-bg: var(--primary);
    --footer-text: #f0f3f4;
}

/* --- Base Styles --- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body, .header, footer {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2;
    color: var(--dark);
}

body {
    margin-bottom: 60px;
    background-color: #fff;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--secondary);
}

/* --- Header & Footer --- */
.header {
    background-color: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    padding: 20px;
    font-size: 36px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* breathing room */
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Section --- */
.section-container {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .section-container h2 {
        color: var(--primary);
        margin-bottom: 15px;
        font-weight: 700;
        font-size: 1.75rem;
    }

    .section-container p {
        color: var(--dark);
        margin-bottom: 15px;
        font-size: 1rem;
    }

/* --- Buttons --- */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

    .btn-primary:hover {
        background-color: #A1555D; /* lighter burgundy */
        border-color: #A1555D;
        transition: background-color 0.3s ease;
    }

.btn-info {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

    .btn-info:hover {
        background-color: #c48425; /* darker gold */
        border-color: #c48425;
    }

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

    .btn-danger:hover {
        background-color: #93340b; /* deeper rust */
        border-color: #93340b;
    }

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #fff;
}

    .btn-warning:hover {
        background-color: #c96526; /* deeper burnt orange */
        border-color: #c96526;
    }

/* --- Desktop Only --- */
@media (min-width: 769px) {
    .table td, .table th {
        white-space: nowrap;
    }
}

/* --- Mobile / Tablet --- */
@media (max-width: 768px) {
    .header {
        font-size: 28px;
        padding: 15px;
    }

    .section-container h2 {
        font-size: 1.5rem;
    }

    .table th, .table td {
        font-size: 14px;
        padding: 10px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .table thead {
        display: none;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

        .table tr {
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 0.75rem;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .table td {
            text-align: left;
            padding: 0.25rem 0;
            white-space: normal;
        }

            .table td::before {
                content: attr(data-label);
                display: block;
                font-weight: bold;
                margin-bottom: 0.25rem;
                color: var(--dark);
            }

    .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

        .actions .btn {
            width: 100%;
            text-align: center;
        }
}

/* --- Very Small Screens --- */
@media (max-width: 480px) {
    .header {
        font-size: 24px;
    }

    body, .section-container p {
        font-size: 12px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* --- Trivia Section --- */
#trivia-header p,
#trivia-footer p,
#trivia-container p {
    color: white !important;
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    overflow: hidden;
}

/* --- Directory Section --- */
details {
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: var(--light);
}

summary.contact-summary {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 10px;
    list-style: none;
}

    summary.contact-summary::-webkit-details-marker {
        display: none;
    }

details[open] > summary.contact-summary {
    background-color: #e9ecef;
}

.contact-details {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

/* --- Spacing Tweaks --- */
p {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.card-body {
    padding: 0.5rem 0.75rem;
}

.g-3, .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.card-body p {
    margin: 0.15rem 0;
    line-height: 1.2;
    font-size: 0.95rem;
}
