/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Montserrat:wght@400;500;600&display=swap');

/* BASIC RESET & THEME */
:root {
    --primary-green: #556b2f;
    --dark-green: #2e4034;
    --background-dark: #1a2a26;
    --text-light: #f2f2f2;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.15);
    --module-bg: rgba(255, 255, 255, 0.05);
    --module-bg-hover: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
}

/* BACKGROUND CYCLER & OVERLAY */
#background-cycler {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-size: cover; background-position: center; transition: background-image 1.5s ease-in-out;
}
.background-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26, 42, 38, 0.9), rgba(26, 42, 38, 0.7));
    z-index: -1;
}

/* MAIN LAYOUT */
.page-container { max-width: 1200px; margin: 2rem auto; padding: 0 20px; }

/* --- THIS IS THE FIX: Styles for the new search/list view --- */
.club-search-header {
    text-align: center; margin-bottom: 2rem; padding: 1.5rem;
    background-color: var(--module-bg); border-radius: 8px;
}
#club-search-input {
    width: 60%; padding: 12px 20px; border-radius: 30px; border: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.2); color: var(--text-light); font-size: 1rem;
}
.club-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.club-card {
    background-color: var(--module-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}
.club-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}
.club-card-info {
    padding: 1rem;
}
.club-card-info h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Merriweather', serif;
}
.club-card-info p {
    margin: 0;
    color: var(--text-muted);
}
/* --- End of new styles --- */


/* --- DETAIL PAGE STYLES (Existing) --- */
.club-layout { display: flex; align-items: flex-start; gap: 2rem; }
.main-column { flex: 2; }
.sidebar-column { flex: 1; max-width: 350px; position: sticky; top: 100px; }

/* MODULE STYLES */
.club-module {
    background-color: var(--module-bg); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem;
}
.club-module h2 {
    font-family: 'Merriweather', serif; margin-top: 0; border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem; margin-bottom: 1rem;
}
.club-module p { line-height: 1.7; color: var(--text-muted); }

/* AMENITIES SECTION */
.amenities-list { list-style: none; padding: 0; }
.amenities-list li {
    padding: 10px 0 10px 40px; /* Space for icon */
    position: relative;
    font-size: 1rem;
}
.amenities-list li::before {
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
#amenity-library::before { content: '📚'; }
#amenity-store::before { content: '🛍️'; }
#amenity-workstation::before { content: '💻'; }

/* LOADING & ERROR STATES */
.status-message {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-family: 'Merriweather', serif;
}

/* LEFT COLUMN MODULES */
.club-header .cover-photo { height: 250px; background-size: cover; background-position: center; border-radius: 8px; }
.club-header .header-info { padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; }
.club-header h1 { font-family: 'Merriweather', serif; font-size: 2.5rem; margin: 0; }
.follow-btn {
    background-color: var(--primary-green); color: white; padding: 10px 25px; border-radius: 5px;
    text-decoration: none; font-weight: bold; border: none; cursor: pointer;
}
.staff-grid { display: flex; gap: 1.5rem; text-align: center; flex-wrap: wrap; }
.staff-member img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }

/* RIGHT COLUMN MODULES */
.event-list .event-item {
    background-color: var(--module-bg-hover);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.event-item h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.event-item .event-date { font-size: 0.9rem; color: var(--primary-green); font-weight: bold; }
.event-item p { margin: 0.5rem 0; font-size: 0.95rem; }
.event-item .details-link { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; }

.sightings-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sightings-gallery img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 10px; }
.member-grid img { width: 40px; height: 40px; border-radius: 50%; }