/* ═══════════════════════════════════════════════════════════
   GEOCACHING.SK — Joomla 6 Template Stylesheet
   Brand Kit v1.0 | 2026
   ═══════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
    /* Brand - Nature */
    --forest: #1B4332;
    --forest-light: #2D6A4F;
    --meadow: #40916C;
    --leaf: #52B788;
    --leaf-light: #74C69D;
    --mint: #B7E4C7;
    --mist: #D8F3DC;
    --peak: #F8FAF9;

    /* Brand - Signal */
    --signal: #FF6B35;
    --signal-dark: #E85D2A;
    --signal-light: #FF8C61;

    /* Brand - Neutral */
    --slate: #2C3E50;
    --slate-light: #5D7285;
    --rock: #8FA3B0;
    --sand: #F4F1EB;
    --white: #FFFFFF;
    --gps-blue: #3A86FF;

    /* Semantic (Light mode defaults) */
    --bg-page: #F8FAF9;
    --bg-card: #FFFFFF;
    --bg-elevated: #F4F1EB;
    --text-primary: #2C3E50;
    --text-secondary: #5D7285;
    --text-heading: #1B4332;
    --text-muted: #8FA3B0;
    --border: rgba(27, 67, 50, 0.08);
    --border-hover: rgba(82, 183, 136, 0.3);
    --accent: #FF6B35;
    --accent-hover: #E85D2A;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(27, 67, 50, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Container */
    --container-max: 1200px;
    --container-pad: 32px;

    /* Nav height */
    --nav-h: 64px;
}

/* ── DARK MODE ── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-page: #0F1A14;
        --bg-card: #162821;
        --bg-elevated: #1E3A2C;
        --text-primary: #D8F3DC;
        --text-secondary: #8FA3B0;
        --text-heading: #B7E4C7;
        --text-muted: #5D7285;
        --border: rgba(183, 228, 199, 0.1);
        --border-hover: rgba(82, 183, 136, 0.3);
        --accent: #FF8C61;
        --accent-hover: #FF6B35;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
        --sand: #1E3A2C;
    }
}

[data-theme="dark"] {
    --bg-page: #0F1A14;
    --bg-card: #162821;
    --bg-elevated: #1E3A2C;
    --text-primary: #D8F3DC;
    --text-secondary: #8FA3B0;
    --text-heading: #B7E4C7;
    --text-muted: #5D7285;
    --border: rgba(183, 228, 199, 0.1);
    --border-hover: rgba(82, 183, 136, 0.3);
    --accent: #FF8C61;
    --accent-hover: #FF6B35;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --sand: #1E3A2C;
}

[data-theme="dark"] svg[aria-hidden="true"]:first-of-type {
    opacity: 0.1;
    filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) svg[aria-hidden="true"]:first-of-type {
        opacity: 0.1;
        filter: invert(1);
    }
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── TOPO PATTERN ── */
/* ZAKOMENTOVANÉ - nahradené inline SVG
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,...");
    background-size: 400px 300px;
    opacity: 0.035;
    z-index: -1;
    pointer-events: none;
}
*/

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body::before,
    [data-theme="dark"] body::before {
        opacity: 0.06;
        filter: invert(1);
    }
}

a { color: var(--gps-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--forest-light); }

img { max-width: 100%; height: auto; }

.gc-main--frontpage {
    display: none;
}

/* ── CONTAINER ── */
.gc-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ── UTILITY ── */
.gc-accent { color: var(--accent); }

/* ── BUTTONS ── */
.gc-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.gc-btn--primary {
    background: var(--accent);
    color: var(--white);
}

.gc-btn--primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.gc-btn--secondary {
    background: rgba(82, 183, 136, 0.15);
    color: var(--leaf-light);
    border: 1px solid rgba(82, 183, 136, 0.3);
}

.gc-btn--secondary:hover {
    background: rgba(82, 183, 136, 0.25);
    color: var(--leaf-light);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.gc-nav {
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(183, 228, 199, 0.1);
}

.gc-nav__inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc-nav__logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-nav__logo span { color: var(--white); }
.gc-nav__logo .gc-accent { color: var(--signal); }
.gc-nav__logo:hover { color: var(--white); }

/* Menu module styling (Joomla menu) */
.gc-nav .mod-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.gc-nav .mod-menu a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--mint);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
}

.gc-nav .mod-menu a:hover {
    background: rgba(183, 228, 199, 0.1);
    color: var(--white);
}

.gc-nav .mod-menu .active > a,
.gc-nav .mod-menu .current > a {
    background: rgba(82, 183, 136, 0.15);
    color: var(--leaf-light);
}

/* Hamburger */
.gc-nav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.gc-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mint);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.gc-main--hidden {
    display: none;
}
/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.gc-hero {
    background: var(--forest);
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.gc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(82, 183, 136, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(58, 134, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

  /*  .gc-hero__content {
    position: relative;
    z-index: 1;
 max-width: 640px;
} */

.gc-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.gc-hero__content h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gc-hero__content p:not(.gc-hero__sub) {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 32px;
}

.gc-hero__curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
}

/* ═══════════════════════════════════════════
   HERO MAPA
   ═══════════════════════════════════════════ */

.gc-hero__map-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    aspect-ratio: 4/3;
}

.gc-hero__map-wrap {
    overflow: hidden;
}

#gcHeroMap-gc-hero-1,
[id^="gcHeroMap-"] {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.gc-hero__map-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    transform: none;
    background: rgba(27, 67, 50, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 1000;
    white-space: nowrap;
    max-width: 90%;
}
.gc-hero__map-coords {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--leaf-light);
    letter-spacing: 0.5px;
}

.gc-hero__map-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

/* Skryť Leaflet attribution v hero */
.gc-hero__map-wrap .leaflet-control-attribution {
    display: none;
}

/* ═══════════════════════════════════════════
   mod_gc_hero — Hero modul
   ═══════════════════════════════════════════ */

.gc-hero__heading {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(36px, 5vw, 58px);
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gc-hero__heading-accent {
    display: block;
    color: var(--signal);   /* bolo: var(--leaf-light) */
}


/* Hero inner — dva stĺpce
.gc-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}*/

/* Ilustrácia vpravo */
.gc-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-hero__visual svg {
    max-width: 480px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Na mobile skryť ilustráciu */
@media (max-width: 768px) {
    .gc-hero__inner {
        grid-template-columns: 1fr;
    }
    .gc-hero__visual {
        display: none;
    }
}

.gc-hero__sub {
    font-size: 18px;
    color: var(--leaf-light);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 520px;
}

/*.gc-hero__content p {
    font-size: 18px;
    color: var(--leaf-light);
    line-height: 1.6;
    margin-bottom: 32px;
}*/

.gc-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Štatistiky */
.gc-hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
}

.gc-hero__stat {
    display: flex;
    flex-direction: column;
    flex: unset;
    padding: 0;
}

.gc-hero__stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--leaf);
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 0;
}

.gc-hero__stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rock);
    margin-top: 4px;
    white-space: nowrap;
}
/* Responsive */
@media (max-width: 640px) {
    .gc-hero__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gc-hero__stat {
        padding: 0;
    }

  /*  .gc-hero__stat-divider {
        display: none;
    }*/

    .gc-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.gc-section {
    padding: var(--space-4xl) 0;
}

.gc-section--sand {
    background: var(--sand);
}

.gc-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.gc-section__tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--meadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--space-sm);
}

.gc-section__tag::before, .gc-section__tag::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--leaf-light);
    border-radius: 1px;
}

.gc-section__heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════
   EVENTS GRID
   ═══════════════════════════════════════════ */
.gc-events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
}

.gc-events-grid__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ═══════════════════════════════════════════
   mod_gc_events_home — CSS
   ═══════════════════════════════════════════ */

.gc-ehome {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* Zoznam */
.gc-ehome__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gc-ehome__empty {
    color: var(--text-muted);
    padding: var(--space-xl);
    text-align: center;
}

/* Karta eventu */
.gc-ehome__card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1.5px solid var(--border);
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
}

.gc-ehome__card:hover {
    border-color: var(--leaf-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.08);
    color: inherit;
}

.gc-ehome__card--today {
    border-color: rgba(255, 107, 53, 0.3);
}

.gc-ehome__card--cito {
    border-color: rgba(58, 134, 255, 0.2);
}

/* Dátum box */
.gc-ehome__date {
    background: var(--mist);
    border-radius: var(--radius-md);
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.gc-ehome__date:hover {
    opacity: 0.75;
}

.gc-ehome__day {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--forest);
    line-height: 1;
}

.gc-ehome__month {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--meadow);
}

/* Info */
.gc-ehome__info {
    min-width: 0;
}

.gc-ehome__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-heading);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-ehome__meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

/* Badges */
.gc-ehome__badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.gc-ehome__badge--today {
    background: rgba(255, 107, 53, 0.12);
    color: var(--signal);
}

.gc-ehome__badge--cito {
    background: rgba(58, 134, 255, 0.12);
    color: var(--gps-blue);
}

.gc-ehome__badge--mega {
    background: rgba(82, 183, 136, 0.12);
    color: var(--meadow);
}

/* GC kód */
.gc-ehome__gc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--leaf);
    background: var(--mist);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Link — všetky eventy */
.gc-ehome__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    padding: 12px 0;
    transition: gap 0.2s;
}

.gc-ehome__all:hover {
    gap: 10px;
    color: var(--accent-hover);
}

/* Mapa karta */
.gc-ehome__map-card {
    background: var(--forest);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.gc-ehome__map-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.gc-ehome__map-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}

.gc-ehome__map-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--leaf);
    background: rgba(82, 183, 136, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.gc-ehome__map-wrap {
    margin: 16px;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
}

.gc-ehome__map-wrap > div {
  width: 100%;
  height: 100% !important;
  min-height: 320px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gc-ehome {
        grid-template-columns: 1fr;
    }
    .gc-ehome__map-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .gc-ehome__card {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }
    .gc-ehome__gc {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   mod_gc_blog — CSS
   ═══════════════════════════════════════════ */

.gc-blog-home__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.gc-blog-home__empty {
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-xl);
}

.gc-blog-home__footer {
    margin-top: var(--space-xl);
    text-align: center;
}

/* Karta */
.gc-blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.gc-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.1);
    color: inherit;
    border-color: transparent;
}

/* Obrázok / farebný blok */
.gc-blog-card__img {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Telo karty */
.gc-blog-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gc-blog-card__cat {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.gc-blog-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 8px;
}

.gc-blog-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.gc-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--mist);
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 1024px) {
    .gc-blog-home__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gc-blog-home__grid {
        grid-template-columns: 1fr;
    }
}



/* ═══════════════════════════════════════════
   TOOLS GRID
   ═══════════════════════════════════════════ */
.gc-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ═══════════════════════════════════════════
   BLOG GRID
   ═══════════════════════════════════════════ */
.gc-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
   .gc-main {
       padding: var(--space-3xl) 0;
       min-height: 40vh;
   }

   .is-frontpage .gc-main {
     padding: 0;
     min-height: 0;
 }


.gc-content--with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
}

.gc-content__main {
    min-width: 0;
}

/* Content card styling */
.gc-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1.5px solid var(--border);
    margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.gc-footer {
    background: var(--forest);
    margin-top: var(--space-4xl);
    padding: 56px 0 32px;
}

.gc-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.gc-footer__logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.gc-footer__brand p {
    font-size: 14px;
    color: var(--rock);
    line-height: 1.6;
    max-width: 300px;
}

.gc-footer__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.gc-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(183, 228, 199, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--leaf-light);
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.gc-footer__social a:hover {
    background: rgba(82, 183, 136, 0.2);
    transform: translateY(-2px);
    color: var(--leaf-light);
}

.gc-footer__col h3,
.gc-footer__col h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--leaf-light);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-footer__col a {
    display: block;
    font-size: 14px;
    color: var(--rock);
    padding: 4px 0;
    text-decoration: none;
}

.gc-footer__col a:hover { color: var(--leaf-light); }

/* Footer menu module override */
.gc-footer__col .mod-menu {
    list-style: none;
}

.gc-footer__col .mod-menu a {
    display: block;
    font-size: 14px;
    color: var(--rock);
    padding: 4px 0;
    text-decoration: none;
}

.gc-footer__col .mod-menu a:hover { color: var(--leaf-light); }

.gc-footer__divider {
    height: 1px;
    background: rgba(183, 228, 199, 0.1);
    margin-bottom: var(--space-lg);
}

.gc-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--rock);
}

/* ═══════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════ */
.gc-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.gc-error {
    max-width: 480px;
    padding: var(--space-xl);
}

.gc-error__icon { margin-bottom: var(--space-lg); }

.gc-error__code {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 72px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.gc-error__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
}

.gc-error__message {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════
   OFFLINE PAGE
   ═══════════════════════════════════════════ */
.gc-offline-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--forest);
}

.gc-offline { max-width: 400px; padding: var(--space-xl); }
.gc-offline__icon { margin-bottom: var(--space-lg); }

.gc-offline h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.gc-offline p {
    color: var(--leaf-light);
    margin-bottom: var(--space-xl);
}

.gc-offline__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gc-offline__form input[type="text"],
.gc-offline__form input[type="password"] {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(183, 228, 199, 0.2);
    background: rgba(183, 228, 199, 0.08);
    color: var(--white);
    outline: none;
}

.gc-offline__form input:focus {
    border-color: var(--leaf);
}

/* ═══════════════════════════════════════════
   JOOMLA MODULE STYLES (chrome)
   ═══════════════════════════════════════════ */

/* gcCard chrome */
.gc-module-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1.5px solid var(--border);
    margin-bottom: var(--space-lg);
}

.gc-module-card > h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
}

/* gcTool chrome */
.gc-module-tool {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    border: 1.5px solid var(--border);
    transition: all 0.3s;
}

.gc-module-tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.gc-module-tool > h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-heading);
    margin-bottom: var(--space-sm);
}

/* gcFooter chrome */
.gc-footer__col h3,
.gc-footer__col h4,
.gc-footer__col > div > h3,
.gc-footer__col .moduletable h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--signal);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-footer-module h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--signal);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-event__date-wrap:hover {
    opacity: 0.75;
    transform: scale(0.97);
    transition: all 0.2s;
}

.gc-footer__col-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--signal);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   JOOMLA CONTENT OVERRIDES
   ═══════════════════════════════════════════ */
.com-content-article .page-header h1,
.com-content-category .page-header h1,
.blog .page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--text-heading);
    letter-spacing: -0.5px;
    margin-bottom: var(--space-lg);
}

.com-content-article__body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-primary);
}

.com-content-article__body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-heading);
    margin: var(--space-xl) 0 var(--space-md);
}

.com-content-article__body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-heading);
    margin: var(--space-lg) 0 var(--space-md);
}

.com-content-article__body p {
    margin-bottom: var(--space-md);
}

.com-content-article__body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--mist);
    padding: 2px 6px;
    border-radius: 4px;
}

.gc-event--today .gc-event__date-wrap,
.gc-event--live .gc-event__date-wrap {
    display: flex;
}

/* ═══════════════════════════════════════════
   TOOL CARDS
   ═══════════════════════════════════════════ */
.gc-tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1.5px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    height: 100%;
}

.gc-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--leaf-light);
    color: inherit;
}

.gc-tool-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
}

.gc-tool-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-heading);
    margin-bottom: var(--space-sm);
}

.gc-tool-card__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.gc-tool-card__link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
}

.gc-tool-card:hover .gc-tool-card__link {
    color: var(--accent-hover);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .gc-events-grid { grid-template-columns: 1fr; }
    .gc-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .gc-blog-grid { grid-template-columns: 1fr 1fr; }
    .gc-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .gc-content--with-sidebar { grid-template-columns: 1fr; }
    .gc-content__sidebar { order: -1; }
}

@media (max-width: 640px) {
    :root { --container-pad: 16px; }

    .gc-nav .mod-menu { display: none; }
    .gc-nav .mod-menu.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--forest);
        padding: var(--space-md);
        border-bottom: 1px solid rgba(183, 228, 199, 0.1);
    }
    .gc-nav__hamburger { display: block; }

    .gc-hero { padding: 48px 0 72px; }

    .gc-section { padding: var(--space-3xl) 0; }

    .gc-tools-grid { grid-template-columns: 1fr; }
    .gc-blog-grid { grid-template-columns: 1fr; }

    .gc-footer__grid { grid-template-columns: 1fr; }
    .gc-footer__bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

/* ═══════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════ */
@media print {
    .gc-nav, .gc-hero, .gc-footer, .gc-nav__hamburger { display: none !important; }
    body { background: #fff; color: #000; }
    .gc-main { padding: 0; }
}

.is-subpage .gc-main {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.com-content-article {
    max-width: 780px;
    margin: 0 auto;
}

.com-content-article .page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--text-heading);
    letter-spacing: -0.5px;
    margin-bottom: var(--space-xl);
    line-height: 1.1;
}

.com-content-article__body img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.com-content-article .category-name a,
.com-content-article .category-name {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--leaf);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-sm);
}

.gc-tool-list {
    list-style: none;
    margin-top: var(--space-md);
}

.gc-tool-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.gc-tool-list li:last-child {
    border-bottom: none;
}

.gc-tool-list a {
    color: var(--text-primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.gc-tool-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--leaf);
    flex-shrink: 0;
}

.gc-tool-list a:hover {
    color: var(--accent);
}


@media (prefers-color-scheme: dark) {
    /* 1. Karta a jej pozadie */
    .gc-list-item, .gc-beg-card, .gc-link-card {
        background: #1e1e1e !important; /* Tmavosivá namiesto bielej */
        border-color: #333 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    }

    /* 2. Hlavné nadpisy - v tme musia byť svetlejšie */
    .gc-list-item h3, .gc-beg-card h3, .gc-section-title {
        color: #b7e4c7 !important; /* Svetlomätová namiesto tmavej lesnej */
    }

    /* 3. Bežný text */
    .gc-list-item p, .gc-beg-card p {
        color: #cccccc !important; /* Svetlosivá namiesto bridlicovej */
    }

    /* 4. Tagy a štítky */
    .term-tag, .gc-size-badge {
        background: #2d3748 !important; /* Tmavšie pozadie štítku */
        color: #e2e8f0 !important;
    }

    /* 5. Kontajner (ak máš fixné biele pozadie pod ním) */
    body {
        background-color: #121212;
    }
}

/* ═══════════════════════════════════════════
   EVENTS COMPONENT — com_gcevents
   ═══════════════════════════════════════════ */
.gc-events-page {
    max-width: 1200px;
    margin: 0 auto;
}

.gc-events-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.gc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    border: 1.5px solid var(--border);
    min-width: 120px;
}

.gc-stat__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    color: var(--text-heading);
    line-height: 1;
}

.gc-stat__num--today { color: var(--signal); }
.gc-stat__num--cito  { color: var(--gps-blue); }
.gc-stat__num--mega  { color: var(--meadow); }

.gc-stat__label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Filters */
.gc-events-filters {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    align-items: center;
    flex-wrap: wrap;
}

.gc-filter {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.gc-filter--active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.gc-filter-select {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
}

/* Layout */
.gc-events-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.gc-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gc-events-map-wrap {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 500px;
}

#gcEventsMap {
    width: 100%;
    height: 100%;
}

/* Event karta */
.gc-event {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1.5px solid var(--border);
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.25s;
}

.gc-event:hover {
    border-color: var(--leaf-light);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.08);
}

.gc-event--today {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.02);
}

.gc-event--live {
    border-color: var(--signal);
    background: rgba(255, 107, 53, 0.04);
}

.gc-event--cito {
    border-color: rgba(58, 134, 255, 0.2);
}

.gc-event--ended {
    opacity: 0.5;
}

/* Date box */
.gc-event__date-wrap {
    background: var(--mist);
    border-radius: var(--radius-md);
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.gc-event__date-wrap:hover {
    opacity: 0.75;
}

.gc-event__day {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--forest);
    line-height: 1;
}

.gc-event__month {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--meadow);
}

/* Info */
.gc-event__info { min-width: 0; }

.gc-event__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-heading);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gc-event__name a {
    color: var(--text-heading);
    text-decoration: none;
}

.gc-event__name a:hover { color: var(--signal); }

.gc-event__meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Badges */
.gc-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.gc-badge--today { background: rgba(255, 107, 53, 0.12); color: var(--signal); }
.gc-badge--live  { background: var(--signal); color: var(--white); }
.gc-badge--cito  { background: rgba(58, 134, 255, 0.12); color: var(--gps-blue); }
.gc-badge--mega  { background: rgba(82, 183, 136, 0.12); color: var(--meadow); }

/* GC kód */
.gc-event__gc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--leaf);
    background: var(--mist);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.gc-event__gc:hover { color: var(--forest); }

/* Empty state */
.gc-events-empty {
    color: var(--text-muted);
    padding: var(--space-xl);
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .gc-events-layout { grid-template-columns: 1fr; }
    .gc-events-map-wrap { position: static; height: 350px; }
}

@media (max-width: 640px) {
    .gc-event { grid-template-columns: 48px 1fr; }
    .gc-event__gc { display: none; }
    .gc-events-stats { gap: var(--space-md); }
    .gc-stat { min-width: 80px; padding: var(--space-sm) var(--space-md); }
}

.gcblog-pagination {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gcblog-pagination .pagination {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.gcblog-pagination .pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid rgba(27,67,50,0.12);
    background: #fff;
    color: #1B4332;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.gcblog-pagination .pagination .page-item .page-link:hover {
    background: #D8F3DC;
    border-color: #52B788;
    color: #1B4332;
}

.gcblog-pagination .pagination .page-item.active .page-link {
    background: #1B4332;
    border-color: #1B4332;
    color: #fff;
}

.gcblog-pagination .pagination .page-item.disabled .page-link {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.gcblog-pagination span.icon-angle-left::before { content: '‹'; font-size: 18px; color: #1B4332; }
.gcblog-pagination span.icon-angle-right::before { content: '›'; font-size: 18px; color: #1B4332; }
.gcblog-pagination span.icon-angle-double-left::before { content: '«'; font-size: 18px; color: #1B4332; }
.gcblog-pagination span.icon-angle-double-right::before { content: '»'; font-size: 18px; color: #1B4332; }

/* ═══════════════════════════════════════════
   com_contact — CSS Override
   ═══════════════════════════════════════════ */

.com-contact {
    max-width: 720px;
    margin: 0 auto;
}

/* Skry "Kontakty" sekciu s pozíciou Administrator */
.com-contact__container {
    display: none;
}

/* Skry page-header s názvom "Web" */
.com-contact .page-header {
    display: none;
}

/* Nadpis formulára */
.com-contact > h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-heading);
    margin-bottom: var(--space-xl);
}

/* Formulár */
.com-contact__form .form-validate {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: none;
}

/* Legenda */
.com-contact__form legend {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg);
    width: 100%;
}

/* Skry povinné pole */
.com-contact__form .control-group.field-spacer,
.com-contact__form .field-spacer {
    display: none !important;
}

/* Control group */
.com-contact__form .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-lg);
}

/* Label */
.com-contact__form .control-label label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-heading);
    display: block;
}

.com-contact__form .control-label {
    text-align: left;
    width: 100%;
    float: none;
    padding: 0;
}

.com-contact__form .controls {
    width: 100%;
    float: none;
    margin-left: 0;
}

/* Hviezdička */
.com-contact__form .star {
    color: var(--signal);
}

/* Inputy */
.com-contact__form .form-control {
    width: 100%;
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: 10px !important;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.com-contact__form .form-control:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

/* Textarea */
.com-contact__form textarea.form-control {
    resize: vertical;
    min-height: 160px;
}

/* Submit tlačidlo */
.com-contact__form .btn-primary {
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.com-contact__form .btn-primary:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,67,50,0.2);
}

/* Posledný control-group (submit) */
.com-contact__form .control-group:last-child {
    margin-top: var(--space-xl);
    margin-bottom: 0;
}

/* Dark mode */
[data-theme="dark"] .com-contact__form .form-control {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .com-contact__form .form-validate {
    background: var(--bg-card);
}
.com-contact__form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
