/* /assets/style.css */

/* =========================
   Base + Theme
========================= */
:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --border:#dbe3f0;

  --text:#0f172a;
  --muted:#475569;

  --primary:#2563eb;
  --primary-soft:#38bdf8;

  --radius:18px;
  --shadow:0 20px 50px rgba(15,23,42,.12);

  --focus: rgba(37,99,235,.35);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 30%, rgba(37,99,235,.18), transparent 60%),
    var(--bg);
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
strong{ font-weight:800; }

/* Focus styles */
a:focus, button:focus, input:focus, summary:focus{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* =========================
   Layout
========================= */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:24px 16px 64px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
}

.card.soft{
  box-shadow:none;
  background:#f8fafc;
}

/* =========================
   Typography
========================= */
h1{
  font-size: clamp(32px, 4vw, 46px);
  line-height:1.05;
  margin:0 0 12px;
  letter-spacing:-0.02em;
}

h2{
  margin: 18px 0 8px;
  font-size:20px;
  letter-spacing:-0.01em;
}

p{
  margin: 0 0 12px;
  line-height:1.6;
  color: var(--muted);
  font-size:15px;
}

.lead{
  font-size:17px;
  line-height:1.55;
  color:var(--muted);
  max-width:70ch;
  margin-bottom:18px;
}

.muted{ color:var(--muted); }

ul{
  margin: 10px 0 0;
  padding-left:18px;
}

li{
  color:var(--muted);
  line-height:1.6;
  margin:6px 0;
}

/* =========================
   Buttons / CTA
========================= */
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn{
  border-radius:999px;
  padding:12px 18px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 1px solid transparent;
}

.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color:#fff;
  box-shadow: 0 12px 30px rgba(37,99,235,.28);
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37,99,235,.32);
}

.btn-secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}

.btn-secondary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

/* =========================
   SEO Header (includes/seo-header.php)
========================= */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.logo{
  height:48px;
  width:auto;
}

.site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.site-nav a{
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
}

.site-nav a:hover{
  text-decoration:underline;
}

.site-nav a.nav-active{
  font-weight:800;
  color:var(--text);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.25);
  text-decoration:none;
}

.site-nav .nav-sep{
  color: rgba(71,85,105,.7);
  padding:0 2px;
}

/* CTA in nav */
.site-nav a.nav-cta{
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color:#fff;
  border:0;
  box-shadow: 0 10px 26px rgba(37,99,235,.22);
  font-weight:800;
}

.site-nav a.nav-cta:hover{
  text-decoration:none;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(37,99,235,.28);
}

/* =========================
   Index-style sections
========================= */
.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
}

.side h2{
  margin-top:0;
  font-size:18px;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.tag{
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(56,189,248,.14);
  color:#0b2a3a;
  border: 1px solid rgba(56,189,248,.25);
}

.quote{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.18);
  font-size:14px;
  line-height:1.45;
  color: var(--text);
}

/* Steps */
.steps{
  margin-top:22px;
  display:grid;
  gap:12px;
}

.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid var(--border);
}

.step-num{
  width:28px;
  height:28px;
  border-radius:50%;
  background: rgba(37,99,235,.12);
  color: var(--primary);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.step p{
  margin:0;
  font-size:14px;
  color: var(--muted);
  line-height:1.4;
}

/* Content area */
.content{
  margin-top:26px;
  display:grid;
  gap:18px;
}

.cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

/* FAQ */
.faq details{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
}

.faq details + details{ margin-top:10px; }

.faq summary{
  cursor:pointer;
  font-weight:900;
  color: var(--text);
  outline:none;
}

.faq p{
  margin-top:10px;
}

/* =========================
   Generic two-column grid (SEO pages)
========================= */
.grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  margin-top:18px;
}

/* =========================
   Footer
========================= */
.site-footer,
footer{
  margin-top:48px;
  font-size:13px;
  color: var(--muted);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

.site-footer a,
footer a{
  color: var(--muted);
  text-decoration:none;
}

.site-footer a:hover,
footer a:hover{
  text-decoration:underline;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }
  .cols{ grid-template-columns:1fr; }

  .site-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .logo{ height:44px; }
}
/* ==============================
   Frågor-sidor (fragor-for-par.php)
   - gör listor till snygga "cards"
================================= */

/* Vanliga wrappers/klasser man brukar använda */
.question-list,
.questions-list,
.questions,
.q-list,
.list-questions,
#questions {
  margin-top: 14px;
}

/* Om du har <ol> eller <ul> med frågor */
.question-list ol,
.question-list ul,
.questions-list,
.questions,
.q-list,
.list-questions,
#questions ol,
#questions ul,
main ol,
main ul {
  padding-left: 0;
  margin: 14px 0 0;
}

/* Card-stil på varje fråga */
.question-list li,
.questions-list li,
.questions li,
.q-list li,
.list-questions li,
#questions li,
main ol li,
main ul li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  margin: 10px 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  color: var(--text);
  line-height: 1.5;
}

/* Om det är en numrerad lista (<ol>) – lägg en snygg num-badge */
main ol {
  counter-reset: qnum;
}
main ol > li {
  position: relative;
  padding-left: 48px; /* plats för badge */
}
main ol > li::before {
  counter-increment: qnum;
  content: counter(qnum);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

/* Länkar inne i fråge-korten */
.question-list li a,
.questions-list li a,
.questions li a,
.q-list li a,
main li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.question-list li a:hover,
.questions-list li a:hover,
.questions li a:hover,
.q-list li a:hover,
main li a:hover {
  text-decoration: underline;
}

/* Små “chips/tags” om du råkar ha dem under frågor */
.question-tags,
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.question-tag,
.chip {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,.14);
  color: #0b2a3a;
  border: 1px solid rgba(56,189,248,.25);
}

/* Lite mer luft mellan rubrik och listor på dessa sidor */
main h1, main h2 {
  margin-bottom: 10px;
}
main p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Mobil: lite tajtare padding */
@media (max-width: 900px) {
  main ol > li { padding-left: 46px; }
  main ol > li::before { left: 12px; top: 12px; }
}
/* ==============================
   Frågor-sida (fragor-for-par.php)
   Klassen används i din HTML: .note .muted .qgrid .q
================================= */

.muted{
  color: var(--muted);
  line-height: 1.6;
}

/* Tips-rutan */
.note{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.18);
}

/* Grid med frågor */
.qgrid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* En fråga (kort) */
.qgrid .q{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  color: var(--text);
  line-height: 1.5;
}

/* Lite “hover”-känsla så det känns klickbart även om det inte är det */
.qgrid .q:hover{
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* Mobil: en kolumn */
@media (max-width: 900px){
  .qgrid{ grid-template-columns: 1fr; }
}
main.card a{
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
main.card a:hover{
  text-decoration: underline;
}
/* ===== Primary CTA-knappar (Spela / Starta spelet) ===== */

.btn-primary,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active {
  color: #ffffff !important;
}

/* Lite ljusare, mer “inbjudande” blå */
.btn-primary {
  background: linear-gradient(
    135deg,
    #3b82f6,   /* ljusare blå */
    #60a5fa
  );
  box-shadow: 0 12px 28px rgba(59,130,246,.35);
}

/* Hover: lyft – inte mörkare */
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    #2563eb,
    #38bdf8
  );
}
main .btn-primary {
  font-size: 16px;
  padding: 14px 22px;
}
/* Secondary nav under header */
.site-nav-secondary{
  margin-top: 10px;
  opacity: .95;
}

.site-nav-secondary a{
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
}

.site-nav-secondary a:hover{
  text-decoration: none;
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.18);
}

@media (max-width: 900px){
  .site-nav-secondary a{
    width: auto;
  }
}
.flag{
  font-size:18px;
  margin-right:6px;
  line-height:1;
}
.lang-flag {
  width: 18px;
  height: 12px;
  margin-right: 6px;   /* 👈 detta är mellanrummet */
  display: inline-block;
  vertical-align: middle;
}
.site-header .brand {
  flex-shrink: 0;          /* 👈 KRITISKT */
  display: flex;
  align-items: center;
}

.site-header .logo {
  height: 36px;            /* justera om du vill */
  width: auto;
  max-width: 160px;        /* skydd mot extrema fall */
}
.site-header .brand {
  flex-shrink: 0;          /* 👈 KRITISKT */
  display: flex;
  align-items: center;
}

.site-header .logo {
  height: 36px;            /* justera om du vill */
  width: auto;
  max-width: 160px;        /* skydd mot extrema fall */
}
.site-header .brand {
  flex-shrink: 0;          /* 👈 KRITISKT */
  display: flex;
  align-items: center;
}

.site-header .logo {
  height: 36px;            /* justera om du vill */
  width: auto;
  max-width: 160px;        /* skydd mot extrema fall */
}


.lang-switch { display:flex; gap:8px; align-items:center; margin-left:10px; }
.lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:36px;
  padding:0 10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  text-decoration:none;
  font-weight:800;
  line-height:1;
}
.lang-btn.active{ border-color: rgba(0,0,0,.25); box-shadow:0 6px 18px rgba(0,0,0,.06); }
.lang-flag{ font-size:18px; margin-right:6px; }
.lang-label{ font-size:12px; opacity:.9; }
.lang-flag{ width:18px; height:18px; margin-right:6px; display:inline-block; }

.related-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.related-link{
  display:inline-block;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  text-decoration:none;
}
.related-link:hover{
  text-decoration:underline;
}
