/* Lions Club Open Source - Styles */
:root {
    --primary: #003366;
    --primary-dark: #001a33;
    --accent: #c4a000;
    --accent-hover: #a88800;
    --text: #1a1a1a;
    --text-light: #555;
    --bg: #f5f7fa;
    --white: #fff;
    --border: #e0e4e8;
    --success: #0a7c42;
    --error: #c0392b;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --radius: 12px;
    --font: 'Open Sans', system-ui, sans-serif;
    --font-h: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .7rem; color: var(--primary); }
.logo-icon { font-size: 1.9rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--font-h); font-size: 1.1rem; }
.logo-text span { font-size: .72rem; color: var(--text-light); }

.main-nav ul { display: flex; list-style: none; gap: .2rem; }
.main-nav a { display: block; padding: .45rem .9rem; border-radius: 8px; font-weight: 500; color: var(--text); font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--primary); color: #fff; }
.admin-link { color: var(--accent) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 4.5rem 0; text-align: center; }
.hero h1 { font-family: var(--font-h); font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.8rem; opacity: .9; }
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 50px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .25s; text-align: center; }
.btn-primary { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; border-radius: 6px; background: #eee; border: none; cursor: pointer; }
.btn-danger { background: #fdecea; color: var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn-upload { cursor: pointer; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-title { font-family: var(--font-h); font-size: 1.75rem; text-align: center; margin-bottom: 2.2rem; color: var(--primary); }
.page-header { background: var(--primary); color: #fff; padding: 2.5rem 0; text-align: center; }
.page-header h1 { font-family: var(--font-h); font-size: 2rem; margin-bottom: .4rem; }
.content-narrow { max-width: 700px; }
.content-narrow h2 { font-family: var(--font-h); color: var(--primary); margin: 1.8rem 0 .8rem; }
.content-narrow p { margin-bottom: .9rem; }
.values-list { list-style: none; margin: 1.2rem 0; }
.values-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.info-box { background: #fff8e1; border-left: 4px solid var(--accent); padding: 1.1rem; margin-top: 1.8rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); text-align: center; transition: transform .25s; }
.card:hover { transform: translateY(-3px); }
.card-icon { font-size: 2.3rem; margin-bottom: .8rem; }
.card h3 { font-family: var(--font-h); color: var(--primary); margin-bottom: .5rem; }

/* Events */
.events-list { display: flex; flex-direction: column; gap: 1.1rem; }
.event-card { display: flex; gap: 1.3rem; background: var(--white); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); align-items: flex-start; }
.event-date { background: var(--primary); color: #fff; border-radius: 10px; padding: .7rem .9rem; text-align: center; min-width: 65px; }
.event-date .day { display: block; font-size: 1.5rem; font-weight: 700; font-family: var(--font-h); }
.event-date .month { font-size: .75rem; text-transform: uppercase; }
.event-content h3 { font-family: var(--font-h); color: var(--primary); margin-bottom: .3rem; }
.event-meta { color: var(--text-light); font-size: .9rem; margin-bottom: .4rem; }

/* CTA */
.cta-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 2.8rem 1.8rem; text-align: center; }
.cta-box h2 { font-family: var(--font-h); margin-bottom: .8rem; }
.cta-box p { max-width: 480px; margin: 0 auto 1.3rem; opacity: .9; }

/* Forms */
.contact-form, .login-form { background: var(--white); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--primary); }
.form-group input, .form-group textarea { width: 100%; padding: .7rem .95rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,51,102,.12); }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Alerts */
.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.3rem; }
.alert-success { background: #e6f7ed; color: var(--success); border: 1px solid #b7e4c7; }
.alert-error { background: #fdecea; color: var(--error); border: 1px solid #f5c6cb; }
.alert-error ul { margin: 0; padding-left: 1.2rem; }

/* Gallery public */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.gallery-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img, .gallery-item video { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-caption { padding: .7rem 1rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.badge { background: var(--primary); color: #fff; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }

/* Footer */
.site-footer { background: var(--primary-dark); color: #bbb; padding: 2.8rem 0 1.3rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.8rem; margin-bottom: 1.8rem; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: .8rem; font-family: var(--font-h); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { color: #999; }
.footer-col a:hover { color: var(--accent); }
.motto { font-style: italic; color: var(--accent); margin-top: .6rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; text-align: center; font-size: .82rem; color: #777; }

/* ===== ADMIN ===== */
.admin-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 1rem; }
.login-box { background: var(--white); border-radius: var(--radius); padding: 2.2rem; width: 100%; max-width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.login-header { text-align: center; margin-bottom: 1.3rem; }
.login-header .logo-icon { font-size: 2.8rem; }
.login-header h1 { font-family: var(--font-h); color: var(--primary); font-size: 1.4rem; }
.login-hint { text-align: center; margin-top: .9rem; color: var(--text-light); font-size: .85rem; }
.text-center { text-align: center; }

.admin-body { background: var(--bg); min-height: 100vh; }
.admin-header-bar { background: var(--primary); color: #fff; padding: 0 1.25rem; }
.admin-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.admin-logo { color: #fff; font-weight: 700; font-family: var(--font-h); }
.admin-header-bar nav { display: flex; gap: .3rem; }
.admin-header-bar nav a { color: rgba(255,255,255,.85); padding: .4rem .8rem; border-radius: 6px; font-size: .9rem; }
.admin-header-bar nav a:hover, .admin-header-bar nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.admin-header-bar nav a.logout { color: #ffb3b3; }

.admin-content { max-width: 1100px; margin: 0 auto; padding: 1.8rem 1.25rem; }
.admin-content h1 { font-family: var(--font-h); color: var(--primary); margin-bottom: .3rem; }

/* Upload zone (style cPanel / WordPress) */
.upload-zone { background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; margin: 1.5rem 0; transition: .25s; }
.upload-zone.dragover { border-color: var(--accent); background: #fffdf0; }
.upload-inner .upload-icon { font-size: 3rem; margin-bottom: .5rem; }
.upload-inner h3 { font-family: var(--font-h); color: var(--primary); margin-bottom: .3rem; }
.upload-hint { font-size: .85rem; color: var(--text-light); margin-top: 1rem; }
.upload-preview { margin-top: 1rem; color: var(--primary); font-weight: 600; }

.media-filters { display: flex; gap: .5rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.media-filters a { padding: .4rem 1rem; border-radius: 20px; background: var(--white); border: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.media-filters a.active, .media-filters a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.media-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-thumb { position: relative; aspect-ratio: 16/10; background: #eee; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.video-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); color: #fff; padding: .2rem .5rem; border-radius: 4px; font-size: .75rem; }
.media-info { padding: .8rem; }
.media-name { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .2rem; }
.media-meta { font-size: .75rem; color: var(--text-light); margin-bottom: .6rem; }
.media-actions { display: flex; gap: .4rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .3s; }
    .main-nav.open { max-height: 400px; }
    .main-nav ul { flex-direction: column; padding: 1rem; }
    .event-card { flex-direction: column; align-items: center; text-align: center; }
    .admin-header-inner { flex-direction: column; height: auto; padding: .8rem 0; gap: .5rem; }
}
