/*
Theme Name: Fotballklipp Theme
Theme URI: https://fotballklipp.no
Author: Fotballklipp.no
Description: Mørkt, raskt og mobilførst WordPress-tema for Fotballklipp.no. Bygget for videovisning av fotballklipp.
Version: 0.1.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: fotballklipp-theme
*/

:root {
  --fk-bg: #101010;
  --fk-surface: #181818;
  --fk-surface-2: #222;
  --fk-text: #fff;
  --fk-muted: #bdbdbd;
  --fk-border: #2e2e2e;
  --fk-accent: #f4c542;
  --fk-danger: #ff4d4d;
  --fk-radius: 18px;
  --fk-max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fk-bg);
  color: var(--fk-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fk-accent); }
img { max-width: 100%; height: auto; display: block; }

.fk-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16,16,16,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fk-border);
}
.fk-header-inner {
  max-width: var(--fk-max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fk-logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.04em;
}
.fk-logo span { color: var(--fk-accent); }
.fk-main-nav { display: flex; gap: 14px; font-size: .93rem; color: var(--fk-muted); }
.fk-main-nav a { white-space: nowrap; }

.fk-container { max-width: var(--fk-max); margin: 0 auto; padding: 22px 16px 48px; }
.fk-hero { padding: 8px 0 18px; }
.fk-hero h1 { margin: 0 0 6px; font-size: clamp(2rem, 8vw, 4.6rem); line-height: .95; letter-spacing: -.07em; }
.fk-hero p { margin: 0; color: var(--fk-muted); max-width: 680px; font-size: 1.05rem; }

.fk-section { margin: 26px 0 34px; }
.fk-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fk-section-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.fk-placeholder { color: var(--fk-muted); background: var(--fk-surface); border: 1px dashed var(--fk-border); border-radius: var(--fk-radius); padding: 18px; }

.fk-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 680px) { .fk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .fk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fk-video-card {
  background: var(--fk-surface);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius);
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease;
}
.fk-video-card:hover { transform: translateY(-2px); border-color: rgba(244,197,66,.65); }
.fk-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.fk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fk-play { position: absolute; inset: auto 12px 12px auto; background: rgba(0,0,0,.78); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 11px; font-size: .95rem; }
.fk-card-body { padding: 13px 14px 15px; }
.fk-card-body h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.25; letter-spacing: -.025em; }
.fk-card-meta { color: var(--fk-muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px; }
.fk-pill { background: var(--fk-surface-2); color: var(--fk-muted); border: 1px solid var(--fk-border); border-radius: 999px; padding: 3px 8px; }

.fk-single { max-width: 920px; margin: 0 auto; }
.fk-video-embed { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--fk-radius); overflow: hidden; border: 1px solid var(--fk-border); }
.fk-video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.fk-single h1 { margin: 18px 0 10px; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.02; letter-spacing: -.055em; }
.fk-single-content { color: #e9e9e9; font-size: 1.05rem; }
.fk-tax-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }

.fk-empty { color: var(--fk-muted); padding: 24px; background: var(--fk-surface); border-radius: var(--fk-radius); border: 1px solid var(--fk-border); }
.fk-site-footer { border-top: 1px solid var(--fk-border); color: var(--fk-muted); }
.fk-footer-inner { max-width: var(--fk-max); margin: 0 auto; padding: 24px 16px; font-size: .9rem; }

@media (max-width: 560px) {
  .fk-main-nav { gap: 9px; font-size: .82rem; overflow-x: auto; }
  .fk-header-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .fk-container { padding-top: 16px; }
}

.fk-section-title-stack {
  display: block;
}
.fk-section-title-stack h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.fk-section-title-stack p,
.fk-term-description {
  margin: 0;
  color: var(--fk-muted);
  max-width: 720px;
}
.fk-term-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 680px) { .fk-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .fk-term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fk-term-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--fk-surface);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius);
  padding: 16px 18px;
  transition: transform .16s ease, border-color .16s ease;
}
.fk-term-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244,197,66,.65);
}
.fk-term-name {
  font-weight: 800;
  letter-spacing: -.025em;
}
.fk-term-count {
  color: var(--fk-muted);
  font-size: .9rem;
  white-space: nowrap;
}
