/* Town of Lewiston Recreation - Light Theme */

:root {
    --navy: #1b2a4a;
    --green: #2d6a4f;
    --green-light: #40916c;
    --green-bg: #d8f3dc;
    --blue: #3b82f6;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 340px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero-slideshow { height: 420px; }
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero-slide.active {
    opacity: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,106,79,0.75), rgba(27,42,74,0.65));
}
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    z-index: 2;
}
.hero-content h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
}
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
}

/* Sponsor Pills */
.sponsor-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid var(--green);
}
.sponsor-pill:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    color: #fff;
    transform: translateY(-1px);
}
.sponsor-primary {
    background: var(--navy);
    border-color: var(--navy);
    padding: 8px 24px;
    font-size: 14px;
}
.sponsor-primary:hover {
    background: #243b5f;
    border-color: #243b5f;
    color: #fff;
}

/* Program Cards */
.program-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.program-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.program-card .card-body {
    padding: 1.25rem;
}
.program-card .card-title {
    color: var(--navy);
    font-weight: 700;
}

/* Calendar Page */
.rental-page-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.rental-page-header h2 {
    color: var(--navy);
    font-weight: 700;
}

.date-search-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.facility-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}
.facility-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* FullCalendar overrides - light theme */
.fc {
    --fc-border-color: var(--border);
    --fc-today-bg-color: #eff6ff;
    --fc-event-border-color: transparent;
    font-family: inherit;
}
.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}
.fc .fc-button-primary {
    background: var(--navy);
    border-color: var(--navy);
}
.fc .fc-button-primary:hover {
    background: #243b5f;
}
.fc .fc-daygrid-day-number {
    color: var(--text);
    font-weight: 500;
}
.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fc .fc-daygrid-day:hover {
    background: #f1f5f9;
    cursor: pointer;
}

/* Booking Modal */
.booking-modal .modal-header {
    background: var(--navy);
    color: #fff;
}
.booking-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Available slots */
.time-slot {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}
.time-slot:hover {
    border-color: var(--green);
    background: var(--green-bg);
}
.time-slot.selected {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}
.time-slot.booked {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--navy);
    min-height: calc(100vh - 76px);
    padding: 1.5rem 0;
}
.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.6rem 1.5rem;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.admin-sidebar .nav-link.active {
    color: #fff;
    border-left-color: var(--green);
    background: rgba(255,255,255,0.08);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Misc */
.section-heading {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--green);
    display: inline-block;
}

.btn-green {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.btn-green:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    color: #fff;
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-navy:hover {
    background: #243b5f;
    border-color: #243b5f;
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .hero-slideshow { height: 260px; }
    .hero-content h1 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .gallery-item img { height: 140px; }
}
