/* ============================================================
   ASO DIMITRA — Main Stylesheet
   Dark Tactical Theme
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --bg-base:       #0d0d0d;
    --bg-surface:    #141414;
    --bg-elevated:   #1a1a1a;
    --bg-card:       #1e1e1e;

    --gold:          #c9a84c;
    --gold-light:    #e0bc6e;
    --gold-dim:      #8a6f2e;

    --text-primary:  #f5f2ec;
    --text-secondary:#c8c2b8;
    --text-muted:    #8a8478;

    --border:        #2a2a2a;
    --border-gold:   rgba(201, 168, 76, 0.25);

    --red-accent:    #8b2020;

    --font-display:  'Bebas Neue', 'Barlow Condensed', sans-serif;
    --font-condensed:'Barlow Condensed', sans-serif;
    --font-body:     'Barlow', sans-serif;

    --radius:        2px;
    --transition:    0.2s ease;

    --container:     1200px;
    --header-h:      80px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Top Bar ────────────────────────────────────────────────── */
.topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}
.topbar__links a {
    color: var(--text-secondary);
    margin-left: 1.25rem;
    letter-spacing: 0.06em;
}
.topbar__links a:hover { color: var(--gold); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-gold);
    height: var(--header-h);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo__emblem {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.logo__emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}
.logo__subtitle {
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Navigation ─────────────────────────────────────────────── */
.main-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.main-nav__list a {
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.main-nav__list a:hover,
.main-nav__list a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── Hamburger ──────────────────────────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero__label {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text-primary);
}
.page-hero__subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
}

/* ── Page content ───────────────────────────────────────────── */
.page-content {
    padding: 3rem 0 5rem;
    flex: 1;
}

/* ── Section heading ────────────────────────────────────────── */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.section-divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 2rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--border-gold);
    padding: 1.75rem;
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
    border-top-color: var(--gold);
    transform: translateY(-2px);
}
.card__date {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.5rem;
}
.card__title {
    font-family: var(--font-condensed);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.card__body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.card__link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 2px;
    transition: border-color var(--transition);
}
.card__link:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── Grid layouts ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.7rem 1.75rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg-base);
}
.btn-primary:hover {
    background: var(--gold-light);
    color: var(--bg-base);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-base);
}
.btn-danger {
    background: var(--red-accent);
    color: var(--text-primary);
}
.btn-danger:hover { background: #a02828; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.75rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    outline: none;
    transition: border-color var(--transition);
    border-radius: var(--radius);
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Alert messages ─────────────────────────────────────────── */
.alert {
    padding: 0.875rem 1.25rem;
    border-left: 3px solid;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.alert-success { background: rgba(50,120,50,0.15); border-color: #4a8a4a; color: #7abf7a; }
.alert-error   { background: rgba(139,32,32,0.15); border-color: var(--red-accent); color: #c97a7a; }
.alert-info    { background: rgba(201,168,76,0.1);  border-color: var(--gold-dim);   color: var(--gold); }

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    background: var(--gold-dim);
    color: var(--bg-base);
    font-weight: 700;
}
.badge-event { background: var(--red-accent); color: var(--text-primary); }

/* ── Event meta ─────────────────────────────────────────────── */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.75rem 0;
}
.event-meta__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}
.event-meta__icon { color: var(--gold); font-style: normal; }

/* ── Gallery grid ───────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-elevated);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%);
}
.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}
.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__caption {
    color: var(--text-primary);
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0.5rem;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}
.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}
.lightbox__close:hover { color: var(--gold); }
.lightbox__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-gold);
    padding: 3rem 0 2rem;
    margin-top: auto;
}
.footer__federations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.footer__federations a { color: var(--text-secondary); }
.footer__federations a:hover { color: var(--gold); }
.footer__sep { color: var(--border); }
.footer__bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.footer__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer__links a { color: var(--text-secondary); }
.footer__links a:hover { color: var(--gold); }
.footer__copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.footer__copy a { color: var(--text-secondary); }
.footer__copy a:hover { color: var(--gold); }
.footer__copy small { font-size: 0.72rem; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); border-color: var(--gold); color: var(--bg-base); }

/* ── Crosshair decorative element ───────────────────────────── */
.crosshair-deco {
    position: absolute;
    opacity: 0.04;
    pointer-events: none;
}

/* ── Utility ────────────────────────────────────────────────── */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: calc(var(--header-h) + 32px);
        left: 0; right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-gold);
        padding: 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .main-nav__list a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        font-size: 1rem;
    }
    .main-nav__list li:last-child a { border-bottom: none; }

    .topbar__text { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    .logo__subtitle { display: none; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
}
