/* FishChamp start page, tournament search and info pages. Mobile first. */
.fc-home {
    --fc-gold: #d4af37;
    --fc-gold-2: #f1d27a;
    --fc-bg: #050505;
    --fc-surface: #0f1012;
    --fc-surface-2: #16181b;
    --fc-line: rgba(255,255,255,0.08);
    --fc-text: #f4f4f4;
    --fc-muted: #a3a6ab;
    --fc-green: #3ddc84;
    --fc-red: #ff4d4f;
    --fc-radius: 16px;
    background: var(--fc-bg);
    color: var(--fc-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

.fc-home h1, .fc-home h2, .fc-home h3 { color: #fff; letter-spacing: -0.02em; }
.fc-home a { color: inherit; }
.fc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.fc-center { text-align: center; margin-top: 28px; }
.fc-eyebrow {
    display: inline-block;
    color: var(--fc-gold);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 12px;
}

/* Buttons & chips */
.fc-btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--fc-gold-2) 0%, var(--fc-gold) 55%, #b8932b 100%);
    color: #000 !important;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
    box-shadow: 0 6px 24px rgba(212,175,55,.25);
}
.fc-btn2:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(212,175,55,.38); }
.fc-btn2:focus-visible, .fc-home a:focus-visible, .fc-home select:focus-visible, .fc-home input:focus-visible {
    outline: 2px solid var(--fc-gold);
    outline-offset: 2px;
}
.fc-btn2--ghost {
    background: rgba(255,255,255,.04);
    color: #fff !important;
    border-color: rgba(255,255,255,.2);
    box-shadow: none;
}
.fc-btn2--ghost:hover { border-color: var(--fc-gold); box-shadow: none; }
.fc-btn2--block { width: 100%; }
.fc-btn2[aria-busy="true"] { opacity: .6; pointer-events: none; }
.fc-link { color: var(--fc-gold) !important; font-weight: 600; text-decoration: none; }
.fc-link:hover { text-decoration: underline; }

.fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--fc-line);
    color: #ddd;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}
.fc-chip--free { color: var(--fc-green); border-color: rgba(61,220,132,.35); }
.fc-chip--open { color: #000; background: var(--fc-gold); border-color: var(--fc-gold); }

.fc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(0,0,0,.72);
    color: #fff;
    backdrop-filter: blur(6px);
}
.fc-badge--ongoing, .fc-badge--live { background: var(--fc-red); }
.fc-badge--upcoming { background: rgba(212,175,55,.92); color: #000; }
.fc-badge--finished { background: rgba(60,60,60,.85); color: #ddd; }
.fc-badge--featured { left: auto; right: 12px; background: #000; color: var(--fc-gold); border: 1px solid var(--fc-gold); }

/* Hero */
.fc-hero2 {
    position: relative;
    padding: 56px 0 48px;
    background:
        linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.75) 60%, var(--fc-bg) 100%),
        url('/images/bg-brygga.jpg') center/cover no-repeat;
    text-align: center;
}
.fc-hero2 h1 {
    font-size: clamp(2.1rem, 7vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 auto 16px;
    max-width: 900px;
    background: linear-gradient(180deg, #fff 30%, #e8d9a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fc-hero2-sub { color: #d6d6d6; font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 680px; margin: 0 auto 28px; }
.fc-hero2-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.fc-hero2 .fc-search { max-width: 860px; margin: 0 auto; text-align: left; }

.fc-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 860px;
    margin: 36px auto 0;
}
.fc-stats > div {
    background: rgba(15,16,18,.7);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    padding: 14px;
    display: flex;
    flex-direction: column-reverse;
}
.fc-stats dt { color: var(--fc-muted); font-size: .8rem; font-weight: 500; }
.fc-stats dd { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--fc-gold); }

/* Search form */
.fc-search-main {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,.96);
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.fc-search-main input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 14px;
    font-size: 1.05rem;
    color: #111;
    min-height: 46px;
}
.fc-search-main input:focus { outline: none; }
.fc-search-main:focus-within { box-shadow: 0 0 0 3px rgba(212,175,55,.6), 0 20px 60px rgba(0,0,0,.45); }

.fc-filters { margin-top: 12px; }
.fc-filters > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #e5e5e5;
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 4px;
    list-style: none;
}
.fc-filters > summary::-webkit-details-marker { display: none; }
.fc-filters > summary::before { content: '⚙'; color: var(--fc-gold); }
.fc-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: rgba(15,16,18,.88);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
}
.fc-filter-grid label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .78rem; color: var(--fc-muted); font-weight: 600; }
.fc-filter-grid select {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: var(--fc-surface-2);
    color: #fff;
    padding: 0 10px;
    font-size: .9rem;
}
.fc-filter-grid .fc-check { flex-direction: row; align-items: center; gap: 8px; color: #e5e5e5; font-size: .88rem; min-height: 42px; }
.fc-filter-grid .fc-check input { width: 20px; height: 20px; accent-color: var(--fc-gold); }
.fc-filter-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.js .fc-filter-actions .fc-btn2 { display: none; }

/* Search page header */
.fc-search-head { padding: 40px 0 8px; background: radial-gradient(ellipse at top, rgba(212,175,55,.12), transparent 60%); }
.fc-search-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; margin: 0 0 6px; }
.fc-search-head p { color: var(--fc-muted); margin: 0 0 20px; }
.fc-results-count { font-size: 1rem; font-weight: 700; color: var(--fc-muted) !important; margin: 0 0 16px; }
.fc-empty {
    padding: 32px;
    text-align: center;
    color: var(--fc-muted);
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: var(--fc-radius);
}
.fc-pager { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* Sections */
.fc-section { padding: 48px 0; }
.fc-section--alt { background: linear-gradient(180deg, #08090a 0%, #0c0d0f 100%); border-top: 1px solid var(--fc-line); border-bottom: 1px solid var(--fc-line); }
.fc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.fc-section-head h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.fc-section-head p { color: var(--fc-muted); margin: 0; }
.fc-section-head--center { justify-content: center; text-align: center; }
.fc-section-head--center h2 { justify-content: center; }

/* Tournament cards */
.fc-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.fc-tcard {
    display: flex;
    flex-direction: column;
    background: var(--fc-surface);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    overflow: hidden;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.fc-tcard:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.45); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.fc-tcard--ongoing { border-color: rgba(255,77,79,.35); }
.fc-tcard-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.fc-tcard-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.fc-tcard:hover .fc-tcard-media > img { transform: scale(1.04); }
.fc-tcard-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(212,175,55,.25), transparent 55%), linear-gradient(135deg, #14161a, #0a0a0a);
}
.fc-tcard-placeholder img { opacity: .55; border-radius: 16px; }
.fc-tcard-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.fc-tcard-title { font-size: 1.12rem; font-weight: 800; margin: 0; line-height: 1.25; }
.fc-tcard-title a { text-decoration: none; }
.fc-tcard-title a:hover { color: var(--fc-gold); }
.fc-tcard-org { color: var(--fc-muted); font-size: .82rem; margin: -6px 0 0; }
.fc-tcard-meta { list-style: none; margin: 0; padding: 0; color: #cfcfcf; font-size: .88rem; display: grid; gap: 4px; }
.fc-tcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.fc-tcard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-tcard-actions .fc-btn2 { flex: 1 1 0; min-width: 120px; padding: 0 14px; }

/* Live rail */
.fc-live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fc-red); box-shadow: 0 0 0 0 rgba(255,77,79,.7); animation: fc-pulse 1.6s infinite; }
@keyframes fc-pulse { 70% { box-shadow: 0 0 0 12px rgba(255,77,79,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,79,0); } }
@media (prefers-reduced-motion: reduce) {
    .fc-live-dot { animation: none; }
    .fc-tcard, .fc-tcard-media > img, .fc-btn2 { transition: none; }
}
.fc-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.fc-rail > * { scroll-snap-align: start; }
.fc-live, .fc-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    background: var(--fc-surface);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    overflow: hidden;
    padding-bottom: 14px;
}
.fc-live:hover, .fc-product:hover { border-color: rgba(212,175,55,.45); }
.fc-live > span:not(.fc-live-media), .fc-product > span:not(.fc-product-media) { padding: 0 14px; }
.fc-live-media { position: relative; aspect-ratio: 16 / 9; background: #111; display: block; }
.fc-live-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-live-title, .fc-product-title { font-weight: 700; color: #fff; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-live-desc { color: var(--fc-muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Catches */
.fc-catches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fc-catch { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #111; text-decoration: none; }
.fc-catch img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.fc-catch:hover img { transform: scale(1.06); }
.fc-catch-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    padding: 28px 10px 10px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
    font-size: .8rem;
    color: #eee;
}
.fc-catch-info strong { color: #fff; font-size: .92rem; }
.fc-catch-by { color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Products */
.fc-product-media { position: relative; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.fc-product-ad { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fc-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.fc-product-price strong { color: var(--fc-gold); font-size: 1.05rem; margin-right: 8px; }
.fc-product-price s { color: var(--fc-muted); font-size: .85rem; }
.fc-product-provider { color: var(--fc-muted); font-size: .78rem; }

/* Organizers */
.fc-org { background: radial-gradient(ellipse at bottom, rgba(212,175,55,.12), transparent 60%); }
.fc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
.fc-steps li { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 22px; }
.fc-step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--fc-gold); color: #000; font-weight: 900; margin-bottom: 12px;
}
.fc-steps h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; }
.fc-steps p { color: var(--fc-muted); margin: 0; font-size: .92rem; }
.fc-org-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* App CTA */
.fc-appcta-inner {
    display: grid; gap: 28px; align-items: center;
    background: radial-gradient(closest-side circle at 50% 75%, rgba(212,175,55,.13), transparent);
}
.fc-appcta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 8px; }
.fc-appcta p { color: var(--fc-muted); }
.fc-appcta-img {
    width: 100%; height: auto;
    filter:
        drop-shadow(0 0 1px rgba(240,199,94,.55))
        drop-shadow(0 0 16px rgba(212,175,55,.35))
        drop-shadow(0 20px 34px rgba(0,0,0,.65));
    transition: transform .35s ease, filter .35s ease;
}
.fc-appcta-img:hover {
    transform: translateY(-6px) scale(1.02);
    filter:
        drop-shadow(0 0 1px rgba(240,199,94,.7))
        drop-shadow(0 0 24px rgba(212,175,55,.5))
        drop-shadow(0 26px 40px rgba(0,0,0,.7));
}
@media (prefers-reduced-motion: reduce) {
    .fc-appcta-img { transition: none; }
    .fc-appcta-img:hover { transform: none; }
}

/* Info pages (support, legal, download) */
.fc-info { padding: 48px 0 72px; }
.fc-info h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; margin: 0 0 8px; }
.fc-info-sub { color: var(--fc-muted); font-size: 1.05rem; margin: 0 0 28px; }
.fc-info-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.fc-info-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    text-decoration: none;
    transition: border-color .18s, transform .18s;
}
.fc-info-card:hover { border-color: rgba(212,175,55,.45); transform: translateY(-2px); }
.fc-info-card h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.fc-info-card p { color: var(--fc-muted); margin: 0 0 6px; font-size: .92rem; }
.fc-info-icon { font-size: 1.6rem; }
.fc-checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.fc-checklist li::before { content: '✓'; color: var(--fc-gold); font-weight: 900; margin-right: 10px; }

@media (min-width: 640px) {
    .fc-grid { grid-template-columns: repeat(2, 1fr); }
    .fc-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fc-stats { grid-template-columns: repeat(4, 1fr); }
    .fc-rail { grid-auto-columns: 42%; }
    .fc-catches { grid-template-columns: repeat(3, 1fr); }
    .fc-steps, .fc-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .fc-hero2 { padding: 96px 0 72px; }
    .fc-grid { grid-template-columns: repeat(3, 1fr); }
    .fc-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fc-rail { grid-auto-columns: calc((100% - 48px) / 4); }
    .fc-catches { grid-template-columns: repeat(6, 1fr); }
    .fc-steps { grid-template-columns: repeat(4, 1fr); }
    .fc-info-grid { grid-template-columns: repeat(3, 1fr); }
    .fc-appcta-inner { grid-template-columns: 1fr 1fr; background-position: 0 0; background-image: radial-gradient(closest-side circle at 75% 50%, rgba(212,175,55,.14), transparent); }
    .fc-section { padding: 72px 0; }
}
