/*
 Theme Name: Danske Restauranter Child
 Theme URI: https://www.danskerestauranter.dk/
 Description: Child theme for GeneratePress (free). Digital editorial styling for DanskeRestauranter.dk.
 Author: Mikkel Nielsen
 Template: generatepress
 Version: 1.0.1
 Text Domain: danskerestauranter-child
*/

/* ================================
   DanskeRestauranter.dk — Global CSS
   Tema: GeneratePress (free)
   Stil: Digital editorial (clean, modern)
================================ */

/* ---------- Design tokens ---------- */
:root{
  --dr-bg: #0b1220;        /* dyb navy */
  --dr-surface: #0f172a;   /* card/nav */
  --dr-surface-2: #111c33; /* hover/alt */
  --dr-text: #e5e7eb;      /* lys tekst */
  --dr-muted: #a7b0c0;     /* sekundær tekst */
  --dr-line: rgba(255,255,255,.08);

  --dr-accent: #ef233c;    /* rød accent */
  --dr-accent-2: #ff4d64;

  --dr-radius: 18px;
  --dr-radius-sm: 12px;
  --dr-shadow: 0 12px 40px rgba(0,0,0,.35);

  --dr-max: 1140px;
  --dr-gap: 18px;

  --dr-font: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* ---------- Base ---------- */
body.dr-site{
  font-family: var(--dr-font);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(239,35,60,.14), transparent 60%),
              radial-gradient(1000px 600px at 80% 0%, rgba(255,77,100,.10), transparent 55%),
              linear-gradient(180deg, #07101f 0%, #0b1220 45%, #070b14 100%);
  color: var(--dr-text);
}

body.dr-site a{
  color: #ffffff;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(239,35,60,.55);
}
body.dr-site a:hover{
  text-decoration-color: rgba(239,35,60,.95);
}

/* Container */
body.dr-site .site-content,
body.dr-site .inside-header,
body.dr-site .inside-navigation,
body.dr-site .inside-top-bar,
body.dr-site .inside-footer-widgets,
body.dr-site .inside-site-info{
  max-width: var(--dr-max);
}

/* Make content breathe */
body.dr-site .site-main{
  padding-top: 18px;
}

/* ---------- Header / nav polish ---------- */
body.dr-site .site-header{
  background: transparent;
}
body.dr-site .inside-header{
  padding: 18px 16px;
}
body.dr-site .main-navigation{
  background: rgba(15,23,42,.55);
  border: 1px solid var(--dr-line);
  border-radius: var(--dr-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
body.dr-site .main-navigation .inside-navigation{
  padding: 10px 12px;
}
body.dr-site .main-navigation a{
  color: var(--dr-text);
  font-weight: 650;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 10px;
}
body.dr-site .main-navigation a:hover,
body.dr-site .main-navigation .current-menu-item > a{
  background: rgba(239,35,60,.10);
}

/* ---------- Typography ---------- */
body.dr-site h1, body.dr-site h2, body.dr-site h3{
  color: #ffffff;
  letter-spacing: -.01em;
}
body.dr-site h1{ font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
body.dr-site h2{ font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; }
body.dr-site p{ color: var(--dr-text); }
body.dr-site .entry-content p{ color: var(--dr-text); opacity: .96; }
body.dr-site .entry-content .dr-muted{ color: var(--dr-muted); }

/* ---------- Buttons ---------- */
.dr-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  text-decoration:none !important;
  font-weight: 750;
  letter-spacing: .02em;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.dr-btn:hover{ transform: translateY(-1px); }
.dr-btn--primary{
  background: linear-gradient(90deg, var(--dr-accent) 0%, var(--dr-accent-2) 100%);
  color: #fff !important;
  border-color: rgba(239,35,60,.35);
}
.dr-btn--ghost{
  background: rgba(255,255,255,.04);
  color: #fff !important;
}
.dr-btn--ghost:hover{ background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.dr-hero{
  position: relative;
  border-radius: calc(var(--dr-radius) + 6px);
  border: 1px solid var(--dr-line);
  overflow: hidden;
  background:
    radial-gradient(700px 220px at 20% 20%, rgba(239,35,60,.22), transparent 60%),
    radial-gradient(600px 240px at 80% 30%, rgba(255,77,100,.16), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.92) 0%, rgba(11,18,32,.92) 100%);
  box-shadow: var(--dr-shadow);
}
.dr-hero__inner{
  padding: 28px 22px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 860px){
  .dr-hero__inner{ grid-template-columns: 1fr; }
}
.dr-hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(239,35,60,.12);
  border: 1px solid rgba(239,35,60,.20);
  color: #fff;
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 12px;
}
.dr-hero__title{ margin: 10px 0 10px; }
.dr-hero__lead{ color: var(--dr-muted); font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.dr-hero__cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 8px; }
.dr-hero__panel{
  border-radius: var(--dr-radius);
  border: 1px solid var(--dr-line);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.dr-hero__panel h3{ margin: 0 0 10px; font-size: 16px; }
.dr-hero__panel ul{ margin: 0; padding-left: 18px; color: var(--dr-muted); }
.dr-hero__panel li{ margin: 6px 0; }

/* ---------- Section ---------- */
.dr-section{
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--dr-radius);
  border: 1px solid var(--dr-line);
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(10px);
}
.dr-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.dr-section__head p{ margin: 0; color: var(--dr-muted); }

/* ---------- Cards / grids ---------- */
.dr-grid{
  display:grid;
  gap: var(--dr-gap);
}
.dr-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dr-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px){ .dr-grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .dr-grid--3, .dr-grid--2{ grid-template-columns: 1fr; } }

.dr-card{
  border-radius: var(--dr-radius);
  border: 1px solid var(--dr-line);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  padding: 16px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.dr-card:hover{
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
  border-color: rgba(239,35,60,.25);
}
.dr-card__title{
  margin: 0 0 8px;
  font-size: 18px;
}
.dr-card__meta{
  font-size: 13px;
  color: var(--dr-muted);
  margin: 0 0 10px;
}
.dr-card__text{
  margin: 0;
  color: var(--dr-muted);
  line-height: 1.6;
}

/* ---------- “Pills” ---------- */
.dr-pills{ display:flex; flex-wrap:wrap; gap:10px; }
.dr-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #fff;
  text-decoration:none !important;
  font-weight: 700;
}
.dr-pill:hover{ border-color: rgba(239,35,60,.35); background: rgba(239,35,60,.08); }

/* ---------- Post cards (blog) ---------- */
body.dr-site .post{
  border-radius: var(--dr-radius);
  border: 1px solid var(--dr-line);
  background: rgba(15,23,42,.45);
  padding: 18px;
  margin-bottom: 18px;
}
body.dr-site .entry-title a{ text-decoration: none; }
body.dr-site .entry-meta{ color: var(--dr-muted); }
body.dr-site .read-more a{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(239,35,60,.12);
  border: 1px solid rgba(239,35,60,.22);
  text-decoration:none !important;
}

/* ---------- Footer ---------- */
body.dr-site .site-footer{
  background: transparent;
  border-top: 1px solid var(--dr-line);
}
body.dr-site .inside-site-info{
  padding: 18px 16px;
  color: var(--dr-muted);
}

/* ---------- Forms ---------- */
body.dr-site input, body.dr-site textarea{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 12px;
}
body.dr-site input:focus, body.dr-site textarea:focus{
  outline: none;
  border-color: rgba(239,35,60,.45);
  box-shadow: 0 0 0 4px rgba(239,35,60,.18);
}
/* Læsbarhed – global tekstforbedring */
body.dr-site p,
body.dr-site li {
  color: #f1f5f9; /* næsten hvid, ikke grå */
  line-height: 1.65;
}

body.dr-site .dr-muted {
  color: #cbd5e1; /* stadig dæmpet – men læsbar */
}
/* ================================
   FIX: Archive / Category styling
   (GeneratePress default white boxes)
================================ */

/* 1) Fjern hvide baggrunde i content-area */
body.dr-site .site-content,
body.dr-site .content-area,
body.dr-site .site-main,
body.dr-site .inside-article {
  background: transparent !important;
}

/* 2) Style archive header (den store hvide blok) */
body.dr-site .page-header,
body.dr-site .archive .page-header,
body.dr-site .blog .page-header {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: var(--dr-radius) !important;
  padding: 18px !important;
  margin-bottom: 18px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
}

/* Archive title + description */
body.dr-site .page-header h1,
body.dr-site .page-header h2,
body.dr-site .page-header p,
body.dr-site .page-header .taxonomy-description {
  color: #ffffff !important;
}

body.dr-site .page-header .taxonomy-description,
body.dr-site .page-header p {
  color: #cbd5e1 !important;
}

/* 3) Style hvert post “kort” i arkiver (det hvide kort) */
body.dr-site .archive .hentry,
body.dr-site .blog .hentry {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: var(--dr-radius) !important;
  padding: 18px !important;
  margin-bottom: 18px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.20) !important;
}

/* 4) Tekstfarver i arkivkort */
body.dr-site .archive .entry-title a,
body.dr-site .blog .entry-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

body.dr-site .archive .entry-meta,
body.dr-site .blog .entry-meta {
  color: #cbd5e1 !important;
}

body.dr-site .archive .entry-summary,
body.dr-site .archive .entry-summary p,
body.dr-site .blog .entry-summary,
body.dr-site .blog .entry-summary p {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* 5) Read more link / knap */
body.dr-site .archive .read-more a,
body.dr-site .blog .read-more a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: rgba(239,35,60,.12) !important;
  border: 1px solid rgba(239,35,60,.22) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* 6) Pagination */
body.dr-site .paging-navigation,
body.dr-site .navigation.pagination {
  margin-top: 18px !important;
}

body.dr-site .navigation.pagination .page-numbers {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  text-decoration: none !important;
}
body.dr-site .navigation.pagination .page-numbers.current,
body.dr-site .navigation.pagination .page-numbers:hover {
  border-color: rgba(239,35,60,.35) !important;
  background: rgba(239,35,60,.10) !important;
}
/* Postcard thumb in grids */
.dr-postcard__thumb{
  display:block;
  margin: -16px -16px 12px;
  border-radius: calc(var(--dr-radius) - 2px);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.dr-postcard__thumb img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
  opacity:.92;
  transition: transform .18s ease, opacity .18s ease;
}
.dr-card:hover .dr-postcard__thumb img{
  transform: scale(1.02);
  opacity: 1;
}
/* Footer refinement */
.dr-footer{
  padding: 28px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 28px;
}

.dr-footer__about h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.dr-footer__about p{
  margin: 0 0 16px;
  color: #cbd5e1;
  max-width: 620px;
}

.dr-footer__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.dr-footer__nav a{
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
}

.dr-footer__nav a:hover{
  color: #ffffff;
  text-decoration: underline;
}

.dr-footer__copy{
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}
/* ================================
   Footer background fix (GeneratePress)
================================ */
body.dr-site .site-footer{
  background: transparent !important;
}

body.dr-site .footer-widgets,
body.dr-site .site-info{
  background: transparent !important;
}

body.dr-site .inside-site-info,
body.dr-site .inside-footer-widgets{
  background: transparent !important;
}

/* Hvis du vil have en “footer-surface” (mørk plade) */
body.dr-site .site-footer{
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
/* ================================
   Centered footer layout
================================ */

/* Sørg for at footeren følger samme max-width som resten */
body.dr-site .dr-footer{
  max-width: var(--dr-max);
  margin: 18px auto 28px;
  text-align: center;
}

/* Centrer navigationen */
body.dr-site .dr-footer__nav{
  justify-content: center;
}

/* Centrer "Om"-tekst bedre */
body.dr-site .dr-footer__about{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Giv lidt luft mellem footer-dele */
body.dr-site .dr-footer__about p{
  margin-left: auto;
  margin-right: auto;
}
