/* =========================================
   Liverpool Pakhtoon Community — Site CSS
   Put this file at: wwwroot/css/site.css
   ========================================= */

/* Base tokens */
:root {
    --bg: #0b1220;
    --panel: rgba(17, 26, 46, 0.75);
    --panel-solid: #111a2e;
    --text: #e7edf7;
    --muted: #9bb0d1;
    --border: rgba(231, 237, 247, 0.12);
    --shadow: 0 18px 60px rgba(0,0,0,.35);
    --accent: #4ade80;
    --accent2: #60a5fa;
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1120px;
    --focus: 0 0 0 4px rgba(96,165,250,0.25);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 800px at 10% -10%, rgba(96,165,250,.14), transparent 60%), radial-gradient(900px 600px at 90% 0%, rgba(74,222,128,.12), transparent 55%), var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

::selection {
    background: rgba(74,222,128,.25);
}

/* =========================================
   Header / Nav
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.65);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 14px;
}

/* Brand (logo + text) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-weight: 650;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop nav links */
.navlinks {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .navlinks a {
        color: var(--muted);
        padding: 9px 12px;
        border-radius: 999px;
        border: 1px solid transparent;
        transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
    }

        .navlinks a:hover {
            text-decoration: none;
            color: var(--text);
            border-color: var(--border);
            background: rgba(255,255,255,0.03);
        }

        .navlinks a:active {
            transform: translateY(1px);
        }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    padding: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

    .nav-toggle:focus {
        outline: none;
        box-shadow: var(--focus);
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        margin: 5px 0;
        opacity: .9;
    }

/* Mobile behavior */
@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .brand-subtitle {
        display: none;
    }

    .navlinks {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        margin: 0 auto;
        width: min(var(--container), 92%);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        background: rgba(17, 26, 46, 0.92);
        backdrop-filter: blur(14px);
        box-shadow: var(--shadow);
    }

        .navlinks.open {
            display: flex;
        }

        .navlinks a {
            border-radius: 14px;
            border-color: rgba(231,237,247,0.10);
            background: rgba(255,255,255,0.02);
        }
}

/* When menu open, stop page scroll */
body.menu-open {
    overflow: hidden;
}

/* =========================================
   Typography & layout helpers
   ========================================= */
h1, h2, h3 {
    margin: 0 0 10px;
    line-height: 1.15;
}

h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    letter-spacing: -.3px;
}

h2 {
    font-size: clamp(18px, 2.2vw, 24px);
}

p {
    margin: 0 0 12px;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

/* Main section spacing */
main.container {
    padding-top: 18px;
    padding-bottom: 26px;
}

/* =========================================
   Cards / panels
   ========================================= */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero {
    padding: 6px 0 10px;
}

.hero-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    font-weight: 650;
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    color: #062012;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 18px 45px rgba(74,222,128,0.12);
    transition: transform .12s ease, filter .12s ease;
}

    .btn:hover {
        text-decoration: none;
        filter: brightness(1.05);
    }

    .btn:active {
        transform: translateY(1px);
    }

    .btn:focus {
        outline: none;
        box-shadow: var(--focus);
    }

    .btn.secondary {
        color: var(--text);
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--border);
        box-shadow: none;
    }

/* Grids */
.grid {
    display: grid;
    gap: 14px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Tables
   ========================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

    .table th, .table td {
        padding: 12px 12px;
        border-bottom: 1px solid rgba(231,237,247,0.10);
        text-align: left;
        vertical-align: top;
    }

    .table th {
        color: var(--text);
        font-weight: 850;
        background: rgba(255,255,255,0.03);
    }

    .table tr:last-child td {
        border-bottom: 0;
    }

/* Mobile: make table scroll */
@media (max-width: 760px) {
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =========================================
   Forms
   ========================================= */
.form-row {
    display: grid;
    gap: 10px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(231,237,247,0.14);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

    input:focus, textarea:focus, select:focus {
        border-color: rgba(96,165,250,0.45);
        box-shadow: var(--focus);
    }

/* =========================================
   Gallery
   ========================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.photo {
    border-radius: var(--radius);
    border: 1px solid rgba(231,237,247,0.12);
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    box-shadow: 0 14px 45px rgba(0,0,0,0.22);
}

    .photo img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

    .photo .meta {
        padding: 10px 12px;
    }

.meta .title {
    font-weight: 900;
    margin-bottom: 4px;
    color: var(--text);
}

.meta .time {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

/* =========================================
   Footer
   ========================================= */
footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    color: var(--muted);
    background: rgba(11, 18, 32, 0.55);
}

/* =========================================
   Accessibility helpers
   ========================================= */
:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}


/* Event details photo grid */
.event-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1000px) {
    .event-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .event-photo-grid {
        grid-template-columns: 1fr;
    }
}

.event-photo {
    padding: 0;
    border: 1px solid rgba(231,237,247,0.12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    cursor: zoom-in;
    box-shadow: 0 14px 45px rgba(0,0,0,0.22);
}

    .event-photo img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

/* Videos */
.event-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .event-video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    border: 1px solid rgba(231,237,247,0.12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

.video-title {
    padding: 12px 12px 0;
    font-weight: 850;
}

.video-embed {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-top: 10px;
}

    .video-embed iframe {
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
    }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .lightbox.open {
        display: block;
    }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
}

.lightbox-panel {
    position: relative;
    width: min(980px, 94vw);
    margin: 6vh auto 0;
    border-radius: 18px;
    border: 1px solid rgba(231,237,247,0.16);
    background: rgba(17,26,46,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.55);
    padding: 14px;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(231,237,247,0.16);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.lightbox-figure {
    margin: 0;
}

.lightbox-img {
    width: 100%;
    max-height: 74vh;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: rgba(0,0,0,0.25);
    touch-action: pinch-zoom;
}

.lightbox-caption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}


.mini-item {
    border: 1px solid rgba(231,237,247,0.12);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
}

.mini-title {
    font-weight: 900;
    margin-bottom: 4px;
}

.mini-meta {
    color: var(--muted);
    font-size: 13px;
}

.mini-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--text);
    font-weight: 750;
}
@media (max-width: 860px) {
    .navlinks {
        display: none;
    }

        .navlinks.open {
            display: flex;
        }
}