/* =========================================================
   UgensFreeSpins.com — Design system
   System fonts only. No external assets.
   ========================================================= */

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root{
  --bg: #0b1024;
  --bg-2: #0a0f22;
  --surface: #131a3a;
  --surface-alt: #1a2249;
  --surface-card: #ffffff;
  --text: #f4f6ff;
  --text-dark: #0d1330;
  --muted: #a4adda;
  --muted-dark: #4a5485;
  --brand: #ffc83a;          /* gold/yellow CTA */
  --brand-dark: #d99b00;
  --accent: #e63946;         /* danish red */
  --accent-2: #ffffff;       /* danish white */
  --success: #15803d;        /* license green */
  --success-soft: #dcfce7;
  --info: #38bdf8;
  --border: #2a3266;
  --border-soft: #e4e7f4;
  --shadow-sm: 0 4px 14px rgba(0,0,0,.18);
  --shadow-md: 0 12px 30px rgba(5,10,40,.35);
  --shadow-lg: 0 25px 60px rgba(5,10,40,.45);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }

a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--text-dark);
  padding: 10px 16px; font-weight: 700; z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* =====================  HEADER  ===================== */
.site-header{
  background: linear-gradient(180deg, #0b1024 0%, #0c1230 100%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header__inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
}
.brand:hover{ text-decoration: none; }
.brand__mark{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--text-dark);
  border-radius: 10px;
  font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.brand__mark::before{
  content: "";
  position: absolute; top: 4px; left: 8px; right: 8px;
  height: 4px; background: var(--text-dark); border-radius: 2px 2px 0 0;
  opacity: .8;
}
.brand__name{ font-size: 17px; font-weight: 800; letter-spacing: .2px; }
.brand__name span{ color: var(--brand); }

.header-cta{
  font-size: 13px; color: var(--muted);
}
.header-cta strong{ color: var(--accent-2); }

/* =====================  CALENDAR NAV  ===================== */
.calendar-nav{
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 22px 0 26px;
}
.calendar-nav__heading{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 14px;
  flex-wrap: wrap;
}
.calendar-nav__title{
  margin: 0; font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--muted); font-weight: 700;
}
.calendar-nav__sub{ font-size: 13px; color: var(--muted); }
.calendar-nav__sub b{ color: var(--brand); }

.cal-grid{
  display: grid;
  grid-template-columns: 1.3fr repeat(7, 1fr);
  gap: 10px;
}

.cal-tile{
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 96px; padding: 12px 12px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text); text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  overflow: hidden;
}
.cal-tile:hover{
  transform: translateY(-2px);
  border-color: var(--brand);
  text-decoration: none;
  background: var(--surface-alt);
}
.cal-tile__day{
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); font-weight: 700;
}
.cal-tile__name{
  font-size: 17px; font-weight: 800; line-height: 1.1; margin-top: 6px;
}
.cal-tile__meta{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.cal-tile__badge{
  background: var(--brand); color: var(--text-dark);
  font-weight: 800; font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.cal-tile--week{
  background: linear-gradient(135deg, #1a2249 0%, #2b1d4d 100%);
  border-color: #3a3f7a;
}
.cal-tile--week .cal-tile__name{ color: var(--brand); }
.cal-tile--active{
  border-color: var(--brand);
  background: linear-gradient(135deg, #1f2a5a 0%, #2a1f4d 100%);
  box-shadow: 0 0 0 2px rgba(255,200,58,.22);
}
.cal-tile--today::after{
  content: "I DAG";
  position: absolute; top: 8px; right: 8px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: .6px;
}

/* =====================  HERO  ===================== */
.hero{
  padding: 60px 0 30px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(255,200,58,.10), transparent 60%),
    radial-gradient(700px 360px at 0% 10%, rgba(230,57,70,.10), transparent 60%);
}
.hero__eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,200,58,.12);
  color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,200,58,.3);
}
.hero h1{
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 18px 0 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .accent{ color: var(--brand); }
.hero__lead{
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 720px;
}
.hero__pillrow{
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.pill{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px;
}
.pill b{ color: var(--text); }
.pill .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.pill .dot--green{ background: var(--success); }
.pill .dot--red{ background: var(--accent); }

/* =====================  MAIN  ===================== */
main{ padding: 30px 0 60px; }

.section{ padding: 40px 0; }

h2{
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}
h3{
  font-size: 19px; margin: 18px 0 8px;
}
p{ margin: 0 0 14px; color: #e6e9f8; }
.muted{ color: var(--muted); }

.lead{ font-size: 17px; color: #e6e9f8; }

/* =====================  OFFER CARDS  ===================== */
.offers{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.offer{
  background: var(--surface-card);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  border: 1px solid #e8eaf4;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.offer:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.offer__rank{
  position: absolute; top: 14px; right: 14px;
  font-size: 12px; font-weight: 800;
  color: var(--muted-dark);
  background: #f1f3fb;
  padding: 4px 9px; border-radius: 999px;
}
.offer__top{
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.offer__logo{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #11173a 0%, #2a1f4d 100%);
  color: var(--brand);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.offer__title{
  margin: 0; font-size: 20px; font-weight: 800;
  color: var(--text-dark);
}
.license-badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid #bbf7d0;
  margin-top: 4px;
}
.license-badge::before{
  content: "✓"; font-weight: 900;
}

.offer__headline{
  font-size: 22px;
  font-weight: 800;
  margin: 14px 0 4px;
  color: var(--text-dark);
  letter-spacing: -.2px;
}
.offer__headline span{ color: var(--accent); }
.offer__type{
  font-size: 13px; color: var(--muted-dark);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

.offer__grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  margin: 16px 0 14px;
  padding: 14px;
  background: #f7f8fd;
  border-radius: 14px;
  border: 1px solid #ecf0fa;
}
.offer__grid dt{
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted-dark); font-weight: 700;
}
.offer__grid dd{
  margin: 2px 0 0; font-size: 14px; color: var(--text-dark);
  font-weight: 600;
}

.offer__bottom{
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
}
.offer__checked{ font-size: 12px; color: var(--muted-dark); }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .2px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn--cta{
  background: var(--brand);
  color: var(--text-dark);
  box-shadow: 0 8px 18px rgba(255,200,58,.35);
}
.btn--cta:hover{
  background: var(--brand-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-dark);
}
.btn--cta::after{
  content: "→"; font-weight: 900;
}
.btn--ghost{
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover{ background: var(--surface); text-decoration: none; }

/* =====================  DISCLAIMER  ===================== */
.disclaimer{
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(230,57,70,.08);
  color: #f4d6da;
  border-radius: 8px;
  font-size: 14px;
}
.disclaimer strong{ color: #fff; }

/* =====================  CONTENT BLOCKS  ===================== */
.content-block{ margin-top: 36px; }
.content-block p a{ color: var(--brand); }
.content-block ul{ padding-left: 20px; color: #e6e9f8; }
.content-block li{ margin-bottom: 6px; }

/* =====================  HERO IMAGE  ===================== */
.hero-image{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  object-fit: cover;
}
@media (max-width: 560px){
  .hero-image{ border-radius: var(--radius); margin: 22px auto; }
}

/* =====================  FAQ  ===================== */
.faq{ margin-top: 22px; display: grid; gap: 10px; }
.faq__item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq__q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq__q:hover{ background: var(--surface-alt); }
.faq__q::after{
  content: "+";
  font-size: 22px; line-height: 1;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq__item[open] .faq__q::after{ content: "−"; }
.faq__a{
  padding: 0 20px 18px;
  color: #d8dcf0;
  font-size: 15px;
}

/* =====================  FACTS BOX & AUTHOR BOX  ===================== */
.box-row{
  display: grid; gap: 22px;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}
.box-row--single{
  grid-template-columns: minmax(0, 640px);
  justify-content: start;
}
.facts, .author{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.facts h3, .author h3{
  margin: 0 0 12px;
  font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand);
}
.facts dl{ margin: 0; display: grid; gap: 8px; }
.facts dt{
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
}
.facts dd{ margin: 0 0 4px; color: var(--text); font-size: 14.5px; }
.author p{ font-size: 14.5px; color: #d8dcf0; }
.author__by{
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.author__avatar{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: var(--text-dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,200,58,.35);
}
.author__avatar img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.author__portrait{
  float: right;
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 0 12px 18px;
  object-fit: cover;
  border: 3px solid rgba(255,200,58,.35);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px){
  .author__portrait{
    float: none; display: block;
    margin: 0 0 14px;
  }
}
.author__name{ font-weight: 800; font-size: 16px; }
.author__role{ font-size: 12px; color: var(--muted); }
.author__link{
  display: inline-block; margin-top: 10px;
  color: var(--brand); font-weight: 700;
}

/* =====================  TIMELINE (om-siden) ===================== */
.timeline{
  list-style: none; padding: 0; margin: 12px 0 0;
  border-left: 2px solid var(--border);
}
.timeline li{
  position: relative;
  padding: 0 0 18px 22px;
  margin-bottom: 0;
}
.timeline li::before{
  content: "";
  position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; background: var(--brand);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline__role{ font-weight: 800; color: var(--text); }
.timeline__meta{ font-size: 13px; color: var(--muted); }

/* =====================  FOOTER  ===================== */
.site-footer{
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 40px;
}
.footer-grid{
  display: grid; gap: 22px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h4{
  margin: 0 0 10px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted);
}
.site-footer ul{ list-style: none; padding: 0; margin: 0; }
.site-footer li{ margin-bottom: 8px; }
.site-footer a{ color: var(--text); text-decoration: none; font-size: 14.5px; }
.site-footer a:hover{ color: var(--brand); text-decoration: underline; }
.site-footer p{ color: var(--muted); font-size: 14px; }

.footer-bottom{
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.age-badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 12px;
  padding: 3px 9px; border-radius: 6px;
}

/* =====================  WEEKDAY PLACEHOLDER  ===================== */
.placeholder-card{
  margin-top: 24px;
  padding: 26px;
  background: linear-gradient(135deg, #131a3a 0%, #1f1a45 100%);
  border: 1px dashed #3a4080;
  border-radius: var(--radius);
  text-align: left;
}
.placeholder-card h3{
  margin: 0 0 6px; color: var(--brand);
  font-size: 18px; text-transform: uppercase; letter-spacing: 1.4px;
}
.placeholder-card p{ color: #d6dbef; }
.placeholder-card .btn{ margin-top: 10px; }

/* =====================  BREADCRUMB ===================== */
.breadcrumb{
  font-size: 13px; color: var(--muted); padding: 12px 0 0;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--brand); }
.breadcrumb span{ margin: 0 6px; }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 900px){
  /* Compact, non-scrolling calendar grid.
     "Ugens liste" sits on top as a full-width header tile,
     followed by a 7-column row of weekday tiles. */
  .cal-grid{
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }
  .cal-tile{
    min-height: 78px;
    padding: 10px 8px 8px;
  }
  .cal-tile__name{ font-size: 14px; }
  .cal-tile__day{ font-size: 11px; letter-spacing: 1px; }
  .cal-tile__meta{ font-size: 11px; margin-top: 6px; }
  .cal-tile__meta span:first-child{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cal-tile--week{
    grid-column: 1 / -1;        /* full-width header tile */
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cal-tile--week .cal-tile__day{ order: 1; }
  .cal-tile--week .cal-tile__name{
    order: 2; margin: 0; font-size: 16px;
  }
  .cal-tile--week .cal-tile__meta{
    order: 3; margin-top: 0;
  }
  .cal-tile--today::after{
    font-size: 9px; padding: 1px 5px; top: 6px; right: 6px;
  }

  .box-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  /* On very small screens, fall back to a 4-column grid so labels stay readable.
     Result: Ugens liste full-width, then 4 weekday tiles + 3 weekday tiles. */
  .cal-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cal-tile{ min-height: 72px; padding: 10px 8px; }
  .cal-tile__name{ font-size: 13px; }

  .hero{ padding: 40px 0 16px; }
  .offer{ padding: 18px; }
  .offer__grid{ grid-template-columns: 1fr 1fr; }
  .offer__bottom{ flex-direction: column; align-items: stretch; }
  .offer__checked{ text-align: center; }
  .btn--cta{ width: 100%; }
  .calendar-nav{ padding: 16px 0 18px; }
  .site-header__inner{ padding: 12px 0; }
  .header-cta{ display: none; }
}
