/* ============================================================
   GreenBayPackers.eu — Fan Club Novinky Hub
   Template: page-templates/template-fanclub-novinky.php
   Style: Encyclopedia Light — cream page, dark hero
   ============================================================ */

:root {
    --fcn-green:      #203731;
    --fcn-green-deep: #07130D;
    --fcn-gold:       #FFB612;
    --fcn-gold-dim:   rgba(255, 182, 18, .18);
    --fcn-cream:      #F8F5EE;
    --fcn-text:       #1A1A1A;
    --fcn-muted:      #3D3D3D;
    --fcn-card-bg:    #FFFFFF;
    --fcn-border:     rgba(32, 55, 49, .08);
    --fcn-radius:     10px;
    --fcn-transition: .25s ease;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.gbp-fcn-page {
    background: var(--fcn-cream);
}

/* ══════════════════════════════════════════════════════════
   HERO — Encyclopedia dark hero s fotkou komunity
   ══════════════════════════════════════════════════════════ */
.gbp-fcn-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background: var(--fcn-green-deep);
    color: #fff;
}
@media (max-width: 768px) { .gbp-fcn-hero { min-height: 65vh; } }

/* Background layers */
.gbp-fcn-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Gradient overlay */
.gbp-fcn-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 55% 30%, rgba(32,55,49,.7) 0%, #07130D 65%),
        linear-gradient(to top, rgba(2,6,3,.98) 0%, rgba(2,6,3,.45) 55%, transparent 100%);
}

/* Hero background image */
.gbp-fcn-hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 55%;
    opacity: .28;
}

/* Horizontal lines */
.gbp-fcn-hero__lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 79px,
        rgba(255,182,18,.03) 80px
    );
}

/* Large G watermark */
.gbp-fcn-hero__g-watermark {
    position: absolute;
    right: -3%;
    bottom: -5%;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(16rem, 34vw, 40rem);
    line-height: 1;
    color: rgba(255,182,18,.04);
    pointer-events: none;
    user-select: none;
}

/* Grain texture */
.gbp-fcn-hero__grain {
    position: absolute;
    inset: 0;
    opacity: .032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Hero content container — full-width, handles vertical positioning */
.gbp-fcn-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: clamp(120px, 18vh, 200px);
    padding-bottom: clamp(60px, 8vh, 80px);
}

/* Inner content — left-aligned, max 660px */
.gbp-fcn-hero__content {
    max-width: 660px;
}

/* Eyebrow chip */
.gbp-fcn-hero__eyebrow {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fcn-gold);
    margin-bottom: 18px;
    padding: 4px 12px;
    border: 1px solid var(--fcn-gold-dim);
    border-radius: 2px;
}

/* Title */
.gbp-fcn-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: -.01em;
    color: #fff;
    margin: 0 0 8px;
}

.gbp-fcn-hero__title-accent {
    display: block;
    color: var(--fcn-gold);
}

/* Gold divider */
.gbp-fcn-hero__divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--fcn-gold), transparent);
    margin: 22px 0;
}

/* Description */
.gbp-fcn-hero__desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(.9rem, 1.4vw, 1rem);
    font-weight: 400;
    line-height: 1.75;
    color: #FFFFFF;
    max-width: 520px;
    margin: 0 0 clamp(32px, 4vw, 44px);
}

/* Scroll indicator */
.gbp-fcn-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,182,18,.45);
    z-index: 2;
    animation: fcn-bounce 2s ease-in-out infinite;
}
.gbp-fcn-hero__scroll span {
    display: block;
    width: 1px;
    height: 22px;
    background: linear-gradient(to bottom, transparent, rgba(255,182,18,.4));
}
@keyframes fcn-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(5px); }
}

@media (max-width: 480px) {
    .gbp-fcn-hero__inner { padding-block: 60px 52px; }
}

/* ── Filter pills (in dark hero) ─────────────────────────── */
.gbp-fcn-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gbp-fcn-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 1.5px solid rgba(255, 255, 255, .18);
    color: rgba(255,255,255,.92);
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease;
    white-space: nowrap;
    user-select: none;
}

.gbp-fcn-pill:hover {
    border-color: rgba(255, 182, 18, .5);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    transform: translateY(-1px);
}

.gbp-fcn-pill--active {
    background: var(--fcn-gold);
    border-color: var(--fcn-gold);
    color: var(--fcn-green-deep);
    font-weight: 700;
}

.gbp-fcn-pill--active:hover {
    background: #ffc233;
    border-color: #ffc233;
    color: var(--fcn-green-deep);
    transform: translateY(-1px);
}

.gbp-fcn-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gbp-fcn-pill__dot--vyjazdy    { background: #FFB612; }
.gbp-fcn-pill__dot--tipovacka  { background: #4a8c6a; }
.gbp-fcn-pill__dot--stretnutia { background: linear-gradient(120deg, #203731, #FFB612); }

@media (max-width: 540px) {
    .gbp-fcn-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .gbp-fcn-filters::-webkit-scrollbar { display: none; }
    .gbp-fcn-pill { flex-shrink: 0; }
}

/* ── Hide old hero pills on mobile/tablet ── */
@media (max-width: 768px) {
    .gbp-fcn-filters--desktop { display: none; }
}

/* ════════════════════════════════════════════
   TOP FILTER BAR (nad gridom, nový štýl)
═══════════════════════════════════════════ */
.gbp-fcn-topfilter {
    background: #F8F5EE;
    border-bottom: 1px solid rgba(32,55,49,0.10);
    padding: 28px 0 24px;
}
.gbp-fcn-topfilter__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.gbp-fcn-topfilter__tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 26px;
    border-radius: 100px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    border: 2px solid rgba(32,55,49,0.18);
    color: #203731;
    background: transparent;
    text-decoration: none;
    transition: border-color .18s, background .18s, color .18s, transform .15s;
    white-space: nowrap;
}
.gbp-fcn-topfilter__tab:hover {
    border-color: #203731;
    background: rgba(32,55,49,0.06);
    transform: translateY(-1px);
}
.gbp-fcn-topfilter__tab--active {
    background: #203731;
    border-color: #203731;
    color: #F8F5EE;
}
.gbp-fcn-topfilter__tab--active:hover {
    background: #1A3028;
    border-color: #1A3028;
    transform: translateY(-1px);
}
@media (max-width: 540px) {
    .gbp-fcn-topfilter__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .gbp-fcn-topfilter__nav::-webkit-scrollbar { display: none; }
    .gbp-fcn-topfilter__tab { flex-shrink: 0; }
}

/* ── Mobile filter bar — skrytý na desktop, viditeľný na mobile ── */
.gbp-fcn-mobile-filter-bar { display: none; }

@media (max-width: 768px) {
    .gbp-fcn-topfilter { display: none; }
    .gbp-fcn-mobile-filter-bar {
        display: block;
        background: #F8F5EE;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(32,55,49,0.08);
    }
    .gbp-fcn-type-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        background: #ffffff;
        border: 1.5px solid rgba(32,55,49,0.22);
        border-radius: 12px;
        color: #203731;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        text-transform: none;
        letter-spacing: 0;
        cursor: pointer;
        box-sizing: border-box;
        box-shadow: 0 1px 4px rgba(32,55,49,0.07);
        transition: border-color 0.18s, box-shadow 0.18s;
    }
    .gbp-fcn-type-trigger:hover {
        border-color: #203731;
        box-shadow: 0 2px 8px rgba(32,55,49,0.12);
    }
}

/* ── Category bottom sheet ─────────────────────────────────── */
.gbp-fcn-type-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.gbp-fcn-type-sheet[hidden] { display: none; }
.gbp-fcn-type-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.gbp-fcn-type-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: #F8F5EE;
    border-top: 3px solid #203731;
    border-radius: 20px 20px 0 0;
    padding: 12px 0 32px;
    max-height: 80vh;
    overflow-y: auto;
    animation: gbp-fcn-sheet-up 0.28s cubic-bezier(0.32,0.72,0,1);
}
@keyframes gbp-fcn-sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.gbp-fcn-type-handle {
    width: 40px; height: 4px;
    background: rgba(32,55,49,0.18);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.gbp-fcn-type-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(32,55,49,0.5);
    margin: 0 0 8px;
    padding: 0 20px;
}
.gbp-fcn-type-list { list-style: none; margin: 0; padding: 0; }
.gbp-fcn-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #203731;
    text-decoration: none;
    border-bottom: 1px solid rgba(32,55,49,0.07);
    transition: background 0.15s;
}
.gbp-fcn-type-item:hover { background: rgba(32,55,49,0.04); }
.gbp-fcn-type-item.is-active { font-weight: 700; }
.gbp-fcn-type-check { color: #203731; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   GRID SECTION — cream background
   ══════════════════════════════════════════════════════════ */
.gbp-fcn-grid-section {
    background: var(--fcn-cream);
    padding: clamp(44px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}

/* Results bar */
.gbp-fcn-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 3vw, 36px);
    flex-wrap: wrap;
}

.gbp-fcn-results-count {
    font-family: 'Inter', sans-serif;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--fcn-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gbp-fcn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--fcn-muted);
    text-decoration: none;
    transition: color .15s ease;
    white-space: nowrap;
}

.gbp-fcn-reset-filter:hover {
    color: var(--fcn-green-deep);
}

/* Cards grid */
.gbp-fcn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.5vw, 26px);
}

@media (max-width: 960px) {
    .gbp-fcn-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .gbp-fcn-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   CARD — Encyclopedia light card
   ══════════════════════════════════════════════════════════ */
.gbp-fcn-card {
    display: flex;
    flex-direction: column;
    background: var(--fcn-card-bg);
    border: 1px solid var(--fcn-border);
    border-radius: var(--fcn-radius);
    overflow: hidden;
    isolation: isolate;
    position: relative;
    box-shadow: 0 2px 8px rgba(7, 19, 13, .06);
    transition: border-color var(--fcn-transition), box-shadow var(--fcn-transition), transform var(--fcn-transition);
    height: 100%;
    animation: gbp-fcn-card-in .38s ease both;
}

@media (prefers-reduced-motion: no-preference) {
    .gbp-fcn-card:hover {
        border-color: rgba(255, 182, 18, .42);
        box-shadow: 0 8px 32px rgba(7, 19, 13, .12);
        transform: translateY(-3px);
    }
    .gbp-fcn-card:hover .gbp-fcn-card__img {
        transform: scale(1.04);
    }
}

/* Image wrap */
.gbp-fcn-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

/* No dark overlay on light cards — let image breathe */
.gbp-fcn-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

/* Placeholder */
.gbp-fcn-card__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #203731 0%, #07130D 100%);
}

/* Category badge on image */
.gbp-fcn-card__cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.4;
    z-index: 3;
}

.gbp-fcn-card__cat-badge--vyjazdy {
    background: #FFB612;
    color: #07130D;
}
.gbp-fcn-card__cat-badge--tipovacka {
    background: #203731;
    color: #FFB612;
    border: 1px solid rgba(255,182,18,.3);
}
.gbp-fcn-card__cat-badge--stretnutia {
    background: linear-gradient(120deg, #203731 0%, #FFB612 100%);
    color: #fff;
}

/* Card inner */
.gbp-fcn-card__inner {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Meta */
.gbp-fcn-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gbp-fcn-card__term {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-decoration: none;
    transition: opacity .15s ease;
}
.gbp-fcn-card__term:hover { opacity: .75; }
.gbp-fcn-card__term--vyjazdy    { color: #B8860B; }
.gbp-fcn-card__term--tipovacka  { color: #2d6a4f; }
.gbp-fcn-card__term--stretnutia { color: #203731; }

.gbp-fcn-card__sep  { color: rgba(32,55,49,.3); font-size: .72rem; }

.gbp-fcn-card__date {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    color: var(--fcn-muted);
}

/* Title */
.gbp-fcn-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gbp-fcn-card__title a {
    color: var(--fcn-green-deep);
    text-decoration: none;
    transition: color .15s ease;
}
.gbp-fcn-card__title a:hover { color: var(--fcn-green); }

/* Excerpt */
.gbp-fcn-card__excerpt {
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    color: var(--fcn-muted);
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

/* Footer */
.gbp-fcn-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--fcn-border);
    margin-top: auto;
    flex-wrap: wrap;
}

.gbp-fcn-card__time {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    color: var(--fcn-muted);
    white-space: nowrap;
}

/* CTA link */
.gbp-fcn-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fcn-green);
    text-decoration: none;
    flex-shrink: 0;
    transition: color .15s ease, gap .15s ease;
}
.gbp-fcn-card__cta:hover { color: var(--fcn-gold); gap: 8px; }
.gbp-fcn-card__cta svg  { transition: transform .15s ease; }
.gbp-fcn-card__cta:hover svg { transform: translateX(2px); }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE — light
   ══════════════════════════════════════════════════════════ */
.gbp-fcn-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(60px, 8vw, 100px) 20px;
    gap: 14px;
    background: var(--fcn-card-bg);
    border: 1px solid var(--fcn-border);
    border-radius: var(--fcn-radius);
}

.gbp-fcn-empty__icon {
    margin-bottom: 4px;
    opacity: .7;
}

.gbp-fcn-empty__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fcn-green-deep);
    margin: 0;
}

.gbp-fcn-empty__text {
    font-family: 'Inter', sans-serif;
    font-size: .9375rem;
    color: var(--fcn-muted);
    max-width: 400px;
    margin: 0;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   PAGINATION — light
   ══════════════════════════════════════════════════════════ */
.gbp-fcn-pagination {
    margin-top: clamp(40px, 5vw, 60px);
    display: flex;
    justify-content: center;
}

.gbp-fcn-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.gbp-fcn-pagination .page-numbers li { display: contents; }

.gbp-fcn-pagination a,
.gbp-fcn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    color: var(--fcn-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all .15s ease;
}

.gbp-fcn-pagination a:hover {
    background: var(--fcn-card-bg);
    color: var(--fcn-green-deep);
    border-color: var(--fcn-border);
    box-shadow: 0 2px 8px rgba(7,19,13,.06);
}

.gbp-fcn-pagination .current {
    background: var(--fcn-green);
    color: var(--fcn-gold);
    border-color: var(--fcn-green);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   LOADING STATE + ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.gbp-fcn-grid--loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .2s ease;
}

@keyframes gbp-fcn-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gbp-fcn-card:nth-child(1)   { animation-delay: .04s; }
.gbp-fcn-card:nth-child(2)   { animation-delay: .08s; }
.gbp-fcn-card:nth-child(3)   { animation-delay: .12s; }
.gbp-fcn-card:nth-child(4)   { animation-delay: .16s; }
.gbp-fcn-card:nth-child(5)   { animation-delay: .20s; }
.gbp-fcn-card:nth-child(6)   { animation-delay: .24s; }
.gbp-fcn-card:nth-child(7)   { animation-delay: .28s; }
.gbp-fcn-card:nth-child(8)   { animation-delay: .32s; }
.gbp-fcn-card:nth-child(n+9) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    .gbp-fcn-card { animation: none; }
}
