/*
Theme Name: Floorballcentralen
Theme URI: https://floorballcentralen.dk
Author: Floorballcentralen
Description: Specialbygget dansk floorball-nyhedstema med mørkt sportsdesign, røde accenter og dynamiske WordPress-indlæg.
Version: 1.4.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: floorballcentralen
*/

:root{
  --fc-red:#E30613;
  --fc-red-dark:#A8000B;
  --fc-bg:#090A0C;
  --fc-card:#15171A;
  --fc-card2:#1B1E22;
  --fc-text:#FFFFFF;
  --fc-muted:#B9BDC4;
  --fc-border:#2B2F34;
  --fc-radius:16px;
  --fc-max:1280px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--fc-bg);color:var(--fc-text);font-family:Archivo,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.fc-wrap{width:min(var(--fc-max),calc(100% - 32px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(9,10,12,.97);border-top:3px solid var(--fc-red);border-bottom:1px solid var(--fc-border);backdrop-filter:blur(12px)}
.header-inner{min-height:76px;display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:12px;min-width:max-content}
.brand-logo{display:flex;align-items:center;flex:0 0 auto}
.brand-logo .custom-logo-link{display:block;line-height:0}
.brand-logo .custom-logo{display:block;width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;object-fit:contain;border-radius:50%}
.brand-text{font-weight:900;letter-spacing:.035em;text-transform:uppercase;font-size:1.03rem;line-height:1.05}
.brand-text small{display:block;color:var(--fc-red);font-size:.64rem;letter-spacing:.12em;margin-top:5px}
.main-nav{margin-left:auto}
.main-nav ul{display:flex;gap:24px;list-style:none;padding:0;margin:0;align-items:center}
.main-nav a{font-weight:800;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}
.main-nav a:hover{color:var(--fc-red)}
.menu-toggle{display:none;margin-left:auto;background:transparent;border:1px solid var(--fc-border);color:#fff;padding:9px 11px;border-radius:10px}

.hero{position:relative;min-height:570px;display:grid;align-items:end;overflow:hidden;border-bottom:1px solid var(--fc-border);background:radial-gradient(circle at 78% 30%,rgba(227,6,19,.30),transparent 30%),linear-gradient(135deg,#090a0c 30%,#17191d 70%,#090a0c)}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,10,12,.98) 0%,rgba(9,10,12,.82) 48%,rgba(9,10,12,.14) 100%)}
.hero-art{position:absolute;right:-5%;bottom:-16%;width:56%;aspect-ratio:1;border-radius:50%;border:2px solid rgba(227,6,19,.28);box-shadow:0 0 140px rgba(227,6,19,.18) inset}
.hero-art:before,.hero-art:after{content:"";position:absolute;border-radius:50%;border:2px solid rgba(255,255,255,.08)}
.hero-art:before{inset:10%}.hero-art:after{inset:24%;border-color:rgba(227,6,19,.35)}
.hero-inner{position:relative;z-index:2;padding:100px 0 76px;max-width:790px}
.kicker{font-size:.8rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--fc-red);margin-bottom:15px}
.hero h1{font-size:clamp(3.3rem,7.8vw,6.6rem);line-height:.9;margin:0 0 22px;text-transform:uppercase;letter-spacing:-.05em}
.hero h1 .red{color:var(--fc-red)}
.hero p{font-size:1.12rem;color:#e2e2e2;max-width:680px;margin:0 0 28px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--fc-red);color:#fff;padding:14px 20px;border-radius:9px;font-weight:900;text-transform:uppercase;font-size:.82rem;letter-spacing:.045em;transition:.2s}
.btn:hover{background:#ff1724;transform:translateY(-1px)}
.btn.alt{background:transparent;border:1px solid var(--fc-border)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:-28px;position:relative;z-index:5}
.stat{background:var(--fc-card);border:1px solid var(--fc-border);border-radius:14px;padding:18px}
.stat b{font-size:1.35rem;display:block}.stat span{color:var(--fc-muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em}

.section{padding:52px 0}
.section.compact{padding-top:16px}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.section-title{margin:0;font-size:1.42rem;text-transform:uppercase;letter-spacing:.02em}
.section-title:before{content:"";display:inline-block;width:5px;height:1.15em;background:var(--fc-red);margin-right:10px;vertical-align:-.15em;border-radius:3px}
.section-sub{color:var(--fc-muted);font-size:.9rem}
.news-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}
.news-list{background:var(--fc-card);border:1px solid var(--fc-border);border-radius:var(--fc-radius);overflow:hidden}
.news-card{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;padding:18px;border-bottom:1px solid var(--fc-border)}
.news-card:last-child{border-bottom:0}
.thumb{aspect-ratio:16/10;border-radius:11px;overflow:hidden;background:#24272c}
.thumb img{width:100%;height:100%;object-fit:cover}
.category{display:inline-flex;color:var(--fc-red);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
.news-card h3{margin:0 0 7px;font-size:1.14rem;line-height:1.25}
.news-card h3 a:hover{color:var(--fc-red)}
.meta{color:var(--fc-muted);font-size:.76rem}
.excerpt{color:#d0d3d6;font-size:.9rem;margin:9px 0 0}
.sidebar{display:grid;gap:18px;align-content:start}
.panel{background:var(--fc-card);border:1px solid var(--fc-border);border-radius:var(--fc-radius);padding:20px}
.panel h3{margin:0 0 15px;text-transform:uppercase;font-size:1rem}
.filters{display:grid;gap:10px}
.filters a,.club-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--fc-border);padding:11px 12px;border-radius:9px;background:#111316}
.filters a:hover,.club-item:hover{border-color:var(--fc-red)}
.count{color:var(--fc-red);font-weight:900}
.club-item{margin-bottom:8px}.club-item:last-child{margin-bottom:0}
.club-avatar{width:34px;height:34px;border-radius:50%;background:#25282d;overflow:hidden;display:grid;place-items:center;font-weight:900}
.club-name{margin-right:auto;font-weight:800;font-size:.88rem}

.category-grid,.league-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tile{background:linear-gradient(145deg,var(--fc-card),#101215);border:1px solid var(--fc-border);border-radius:14px;padding:22px;min-height:126px;display:flex;flex-direction:column;justify-content:space-between}
.tile:hover{border-color:var(--fc-red)}
.tile strong{text-transform:uppercase;font-size:1.02rem}.tile span{color:var(--fc-muted);font-size:.8rem}
.red-line{width:38px;height:4px;background:var(--fc-red);border-radius:4px}

.archive-header{padding:64px 0 30px;border-bottom:1px solid var(--fc-border)}
.archive-header h1{font-size:clamp(2.2rem,6vw,4.7rem);margin:0;text-transform:uppercase;letter-spacing:-.04em}
.content-shell{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;padding:42px 0}
.article{background:var(--fc-card);border:1px solid var(--fc-border);border-radius:var(--fc-radius);overflow:hidden}
.article-body{padding:28px}
.article h1{font-size:clamp(2rem,5vw,4rem);line-height:1.02;margin:0 0 14px}
.article-content{font-size:1.05rem;color:#e7e7e7}
.article-content a{color:var(--fc-red);text-decoration:underline}
.article-content h2,.article-content h3{margin-top:1.8em}
.featured{max-height:600px;width:100%;object-fit:cover}

.site-footer{margin-top:42px;border-top:1px solid var(--fc-border);background:#060708}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;padding:42px 0}
.footer-title{font-weight:900;text-transform:uppercase;margin-bottom:10px}
.footer-copy{color:var(--fc-muted);font-size:.9rem}
.footer-links{list-style:none;margin:0;padding:0}.footer-links li{margin:7px 0}.footer-links a:hover{color:var(--fc-red)}
.copyright{border-top:1px solid var(--fc-border);padding:18px 0;color:#8f949b;font-size:.78rem}

.pagination{display:flex;gap:8px;margin-top:22px}.pagination .page-numbers{padding:9px 12px;border:1px solid var(--fc-border);border-radius:8px}.pagination .current{background:var(--fc-red);border-color:var(--fc-red)}
.empty{padding:30px;background:var(--fc-card);border:1px solid var(--fc-border);border-radius:var(--fc-radius);color:var(--fc-muted)}

@media(max-width:900px){
 .main-nav{display:none;position:absolute;left:0;right:0;top:78px;background:#090a0c;border-bottom:1px solid var(--fc-border);padding:20px}
 .main-nav.open{display:block}.main-nav ul{flex-direction:column;align-items:flex-start}
 .menu-toggle{display:block}
 .news-layout,.content-shell{grid-template-columns:1fr}
 .stats{grid-template-columns:repeat(2,1fr)}
 .category-grid,.league-grid{grid-template-columns:repeat(2,1fr)}
 .footer-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
 .fc-wrap{width:min(var(--fc-max),calc(100% - 22px))}
 .hero{min-height:500px}.hero-inner{padding:80px 0 58px}.hero h1{font-size:3.1rem}
 .news-card{grid-template-columns:1fr}.thumb{aspect-ratio:16/9}
 .stats{grid-template-columns:1fr 1fr;margin-top:-18px}.stat{padding:14px}
 .category-grid,.league-grid{grid-template-columns:1fr}
 .section{padding:38px 0}
}


/* v1.1 header/layout refinements */
.site-header .custom-logo-link{display:block!important;line-height:0!important}
.site-header .custom-logo{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;object-fit:contain!important}
.site-header .brand{display:flex;align-items:center;gap:12px}
.site-header .main-nav a{font-size:.78rem}
.hero{min-height:520px}
.hero-inner{padding-top:84px;padding-bottom:68px}
@media (min-width:901px){
  .header-inner{padding-top:6px;padding-bottom:6px}
  .brand-text{max-width:220px}
}
@media(max-width:600px){
  .site-header .custom-logo{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important}
  .brand-text{font-size:.82rem}
  .brand-text small{display:none}
  .header-inner{min-height:64px}
  .main-nav{top:67px}
}


/* v1.2 newsroom front page */
.newsroom-hero{padding:34px 0 12px;background:var(--fc-bg)}
.lead-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:16px}
.lead-story,.top-story{position:relative;overflow:hidden;border:1px solid var(--fc-border);border-radius:16px;background:var(--fc-card)}
.lead-story{min-height:520px}
.lead-media,.top-media{position:absolute;inset:0}
.lead-media img,.top-media img{width:100%;height:100%;object-fit:cover}
.lead-media:after,.top-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,8,.06),rgba(5,6,8,.96))}
.lead-placeholder,.top-placeholder{position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(227,6,19,.38),transparent 32%),linear-gradient(145deg,#191b20,#090a0c)}
.lead-content{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:34px}
.lead-content h1{font-size:clamp(2rem,4vw,4.1rem);line-height:.98;letter-spacing:-.04em;margin:7px 0 12px;max-width:900px}
.lead-content p{max-width:740px;color:#d6d8dc;margin:0 0 12px}
.top-stack{display:grid;grid-template-rows:1fr 1fr;gap:16px}
.top-story{min-height:252px}
.top-content{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:22px}
.top-content h2{font-size:1.35rem;line-height:1.12;margin:5px 0 8px}
.news-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}
.strip-card{display:grid;grid-template-columns:108px 1fr;gap:13px;background:var(--fc-card);border:1px solid var(--fc-border);border-radius:13px;padding:11px}
.strip-card:hover{border-color:var(--fc-red)}
.strip-thumb{aspect-ratio:1;border-radius:9px;overflow:hidden;background:#24272c}
.strip-thumb img{width:100%;height:100%;object-fit:cover}
.strip-card h3{font-size:.94rem;line-height:1.18;margin:4px 0}
.live-bar{margin-top:20px;background:#fff;color:#0b0c0e;border-radius:12px;display:flex;align-items:center;gap:14px;padding:11px 16px;font-size:.82rem}
.live-label{background:var(--fc-red);color:#fff;font-weight:900;text-transform:uppercase;border-radius:6px;padding:6px 9px;letter-spacing:.06em}
.live-bar strong{font-weight:900}
.newsroom-main{padding-top:32px}
.latest-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px}
.latest-list{display:grid;gap:12px}
.latest-card{display:grid;grid-template-columns:240px 1fr;gap:18px;background:var(--fc-card);border:1px solid var(--fc-border);border-radius:14px;padding:14px}
.latest-card:hover{border-color:#3b3f45}
.latest-card .thumb{aspect-ratio:16/10}
.latest-card h3{font-size:1.25rem;line-height:1.2;margin:5px 0 8px}
.section-band{border-top:1px solid var(--fc-border);border-bottom:1px solid var(--fc-border);background:#0c0e11}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.feature-card{background:var(--fc-card);border:1px solid var(--fc-border);border-radius:14px;overflow:hidden}
.feature-card .thumb{border-radius:0;aspect-ratio:16/9}
.feature-body{padding:16px}.feature-body h3{margin:5px 0 7px;line-height:1.18}
.club-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.club-tile{background:var(--fc-card);border:1px solid var(--fc-border);border-radius:13px;padding:18px;text-align:center}
.club-tile:hover{border-color:var(--fc-red)}
.club-tile .club-avatar{width:58px;height:58px;margin:0 auto 12px}
.club-tile strong{display:block;font-size:.9rem}
@media(max-width:1000px){
 .lead-grid,.latest-grid{grid-template-columns:1fr}
 .top-stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}
 .news-strip{grid-template-columns:1fr 1fr}
 .club-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:650px){
 .newsroom-hero{padding-top:16px}
 .lead-story{min-height:470px}.lead-content{padding:22px}
 .top-stack,.news-strip,.feature-grid{grid-template-columns:1fr}
 .latest-card{grid-template-columns:1fr}
 .club-grid{grid-template-columns:repeat(2,1fr)}
 .live-bar{align-items:flex-start;flex-direction:column}
}


/* v1.3 editorial polish */
.newsroom-hero .fc-wrap,.newsroom-main .fc-wrap,.section-band .fc-wrap{max-width:1380px}
.newsroom-hero{padding-top:38px}
.lead-grid{grid-template-columns:minmax(0,1.7fr) minmax(340px,.82fr);gap:18px}
.lead-story{min-height:535px}
.lead-media:after{background:linear-gradient(180deg,rgba(5,6,8,.02) 20%,rgba(5,6,8,.22) 48%,rgba(5,6,8,.96) 100%)}
.top-media:after{background:linear-gradient(180deg,rgba(5,6,8,.04),rgba(5,6,8,.88))}
.lead-content{padding:36px}
.lead-content h1{max-width:860px;font-size:clamp(2.6rem,4.25vw,4.65rem)}
.lead-content p{font-size:1.03rem;line-height:1.55}
.top-content h2{font-size:1.48rem}
.news-strip{gap:16px}
.strip-card{min-height:126px;grid-template-columns:116px 1fr;padding:12px}
.strip-thumb{aspect-ratio:auto;height:100%;min-height:100px}
.strip-thumb img{width:100%;height:100%;object-fit:cover}
.latest-card{grid-template-columns:260px 1fr;padding:15px}
.latest-card .thumb{min-height:158px;background:linear-gradient(145deg,#24272c,#15171a);overflow:hidden}
.latest-card .thumb img{width:100%;height:100%;object-fit:cover}
.latest-card h3{font-size:1.35rem}
.section-title{letter-spacing:-.025em}
.category{letter-spacing:.075em}
.fc-section-link{font-size:.8rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#fff}
.fc-section-link:hover{color:var(--fc-red)}
.fc-editorial-section{padding:52px 0}
.fc-editorial-section + .fc-editorial-section{border-top:1px solid var(--fc-border)}
.fc-category-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px}
.fc-category-card{position:relative;min-height:310px;border:1px solid var(--fc-border);border-radius:15px;overflow:hidden;background:var(--fc-card)}
.fc-category-card:first-child{min-height:390px}
.fc-category-card .thumb{position:absolute;inset:0;border-radius:0}
.fc-category-card .thumb img{width:100%;height:100%;object-fit:cover}
.fc-category-card .thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,8,.04),rgba(5,6,8,.94))}
.fc-category-card.no-image:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(227,6,19,.32),transparent 34%),#15171a}
.fc-category-body{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:22px}
.fc-category-card:first-child .fc-category-body{padding:26px}
.fc-category-body h3{margin:7px 0 8px;font-size:1.28rem;line-height:1.15}
.fc-category-card:first-child h3{font-size:1.75rem}
.fc-empty-note{border:1px dashed #34383e;border-radius:14px;padding:24px;color:var(--fc-muted);grid-column:1/-1}
.club-tile{transition:transform .18s ease,border-color .18s ease}
.club-tile:hover{transform:translateY(-2px)}
@media(max-width:1000px){
 .fc-category-grid{grid-template-columns:1fr 1fr}
 .fc-category-card:first-child{grid-column:1/-1}
}
@media(max-width:650px){
 .lead-story{min-height:500px}
 .lead-content h1{font-size:2.55rem}
 .fc-category-grid{grid-template-columns:1fr}
 .fc-category-card:first-child{grid-column:auto}
 .fc-category-card,.fc-category-card:first-child{min-height:300px}
}


/* v1.4 image sharpness + responsive media */
.lead-media img,.top-media img,.strip-thumb img,.latest-card .thumb img,.fc-category-card .thumb img{
  image-rendering:auto;
  backface-visibility:hidden;
}
.lead-media img{object-position:center center}
.featured{height:auto;max-height:none;object-fit:contain;background:#0c0e11}
@media (min-width:1200px){
  .lead-media img{min-width:100%;min-height:100%}
}
