/* ───────────────────────────────────────────────────────────────────────
   Temă „Site centru local" (slug: local-group)
   Toate culorile de brand vin din variabilele CSS setate inline în
   base_site.html din Site.theme_config: --lg-primary / --lg-secondary /
   --lg-accent. Modificarea paletei nu necesită reconstruirea acestui fișier.
   ─────────────────────────────────────────────────────────────────────── */

:root {
    --lg-primary: #2e7d32;
    --lg-secondary: #1b5e20;
    --lg-accent: #f9a825;
    --lg-ink: #1f2421;
}

body.lg-site {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--lg-ink);
}

/* ── Antet ── */
.lg-header {
    background: var(--lg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.lg-header .navbar {
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.lg-header .nav-link,
.lg-header .navbar-text {
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
}
.lg-header .nav-link:hover,
.lg-header .nav-link:focus {
    color: #fff;
}
.lg-header .nav-link.active {
    color: #fff;
    font-weight: 700;
}
.lg-header .navbar-toggler {
    border-color: rgba(255, 255, 255, .4);
}
.lg-header .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}
.lg-logo {
    display: block;
    max-height: 52px;
    width: auto;
}
.lg-wordmark {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .2px;
}
.lg-dropdown {
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* ── Butoane CTA antet (Înscrie-te / Donează) ── */
.btn-accent {
    background: var(--lg-accent);
    border-color: var(--lg-accent);
    color: var(--lg-ink);
    font-weight: 700;
}
.btn-accent:hover,
.btn-accent:focus {
    filter: brightness(.94);
    color: var(--lg-ink);
}
.lg-btn-donate {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    font-weight: 600;
}
.lg-btn-donate:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}
.lg-lang-switch .nav-link {
    padding-left: .5rem;
    padding-right: .5rem;
}

/* ── Carusel ── */
.lg-carousel-section {
    background: var(--lg-secondary);
}
.lg-carousel__img {
    height: clamp(320px, 52vh, 720px);
    object-fit: cover;
}
.lg-carousel__caption {
    background: rgba(0, 0, 0, .45);
    border-radius: .5rem;
    padding: .6rem 1rem;
    backdrop-filter: blur(2px);
}
.lg-carousel__caption p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Hero (fallback când nu există fotografii în carusel) ── */
.lg-hero {
    background: linear-gradient(135deg, var(--lg-primary), var(--lg-secondary));
    color: #fff;
    padding: 3.5rem 0;
}
.lg-hero__title {
    font-weight: 800;
    margin-bottom: .25rem;
}
.lg-hero__subtitle {
    opacity: .9;
    margin-bottom: 0;
}

/* ── Titluri secțiuni / pagini ── */
.lg-section-title,
.lg-page-title {
    color: var(--lg-secondary);
    font-weight: 800;
}
.lg-section-title {
    position: relative;
    padding-bottom: .5rem;
}
.lg-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--lg-accent);
}

/* ── Carduri noutăți ── */
.lg-card {
    border: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
    transition: transform .15s ease, box-shadow .15s ease;
}
.lg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}
.lg-card .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.lg-card h3 a:hover {
    color: var(--lg-primary);
}
.lg-badge-pinned {
    background: var(--lg-accent);
    color: var(--lg-ink);
}

/* ── Articol ── */
.lg-article,
.lg-static-page {
    max-width: 820px;
}
.lg-article-body {
    font-size: 1.05rem;
    line-height: 1.7;
}
.lg-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}
.lg-event-note {
    background: color-mix(in srgb, var(--lg-primary) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--lg-primary) 30%, #fff);
    color: var(--lg-secondary);
}
.lg-article a,
.lg-static-page a {
    color: var(--lg-primary);
}

/* ── Subsol ── */
.lg-footer {
    background: var(--lg-secondary);
    color: rgba(255, 255, 255, .92);
}
.lg-footer a {
    color: #fff;
    text-decoration: underline;
}

/* ── Buton de editare (doar pentru editori autentificați) ── */
.lg-edit-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    background: var(--lg-primary);
    color: #fff;
    border-radius: 2rem;
    padding: .5rem .9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    text-decoration: none;
    font-weight: 600;
}
.lg-edit-fab:hover {
    color: #fff;
    filter: brightness(1.08);
}

/* ── Arhivă pe ani (jumper) ── */
.lg-archive {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}
.lg-archive__chip {
    flex: 0 0 auto;
    padding: .25rem .75rem;
    border-radius: 2rem;
    border: 1px solid color-mix(in srgb, var(--lg-primary) 35%, #fff);
    color: var(--lg-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
}
.lg-archive__chip:hover {
    background: color-mix(in srgb, var(--lg-primary) 10%, #fff);
    color: var(--lg-secondary);
}
.lg-archive__chip.is-active {
    background: var(--lg-primary);
    border-color: var(--lg-primary);
    color: #fff;
}
