/* ==========================================
   GBGeocacheUK Stylesheet
   Calming blues and greens palette
   ========================================== */

:root {
    --primary-blue: #2c5282;
    --primary-blue-dark: #1a365d;
    --accent-green: #38a169;
    --accent-green-light: #48bb78;
    --bg-light: #f7fafc;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
}

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

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

/* --- Header & Banner --- */
.site-header {
    background-color: var(--primary-blue-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.top-banner {
    position: relative;
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.top-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.4) 0%, rgba(26, 54, 93, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #e2e8f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Navigation --- */
.main-nav {
    background-color: var(--primary-blue);
    border-top: 2px solid var(--accent-green);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
    background-color: var(--primary-blue-dark);
    color: #68d391;
}

/* --- Dropdown Menu (Hover & Tap) --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-blue-dark);
    min-width: 160px;
    list-style: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}

.dropdown-link:hover, .dropdown-link:focus {
    background-color: var(--accent-green);
    color: #ffffff;
}

/* Hover / Focus Trigger for Dropdown */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* --- Content Styling --- */
.content-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 450px;
}

.page-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

h2 {
    color: var(--primary-blue-dark);
    margin-bottom: 15px;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--accent-green-light);
    padding-bottom: 8px;
}

h3 {
    color: var(--primary-blue);
    margin: 20px 0 10px 0;
    font-size: 1.25rem;
}

p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* --- Cache Details & GPX --- */
.cache-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cache-info-table th, .cache-info-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cache-info-table th {
    background-color: #ebf8ff;
    color: var(--primary-blue-dark);
    width: 30%;
}

.btn-gpx {
    display: inline-block;
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}

.btn-gpx:hover {
    background-color: #2f855a;
}

/* --- Quiz Link Button --- */
.btn-external {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 12px 24px;
    width: 250px;
    ext-align: center;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}




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

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-blue-dark);
    color: #a0aec0;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent-green);
}

/* Responsive design adjustments for mobile */
@media (max-width: 600px) {
    .site-title {
        font-size: 1.75rem;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-link {
        text-align: center;
        padding: 12px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: #1a202c;
    }

    .dropdown-link {
        text-align: center;
        padding: 10px;
    }
}
