/* Bitcoinguiden.se – gemensam stilmall */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0e11;
  --bg-card: #14181f;
  --bg-card-hover: #1a2029;
  --border: #1e2530;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.12);
  --green: #00c853;
  --red: #ff5252;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 17, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.logo-icon {
  background: var(--accent); color: #000;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.logo-se { color: var(--accent); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1.3rem; cursor: pointer; padding: 2px 10px; }

/* Hero (startsida) */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(247, 147, 26, 0.12), transparent), var(--bg);
}
.hero-content { text-align: center; margin-bottom: 44px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 14px; }
.accent { color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

/* Live-widgetar */
.live-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 780px; margin: 0 auto; }
.widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.widget:hover { border-color: rgba(247, 147, 26, 0.3); }
.widget-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.price-main { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
#btc-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-currency { font-size: 1.15rem; color: var(--text-muted); font-weight: 500; }
.price-change { font-size: 0.98rem; font-weight: 600; margin-bottom: 14px; min-height: 1.4em; }
.price-change.positive { color: var(--green); }
.price-change.negative { color: var(--red); }
.fng-display { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
#fng-value { font-size: 2.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
#fng-label { font-size: 1.05rem; font-weight: 600; }
.fng-bar-container { height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.fng-bar { height: 100%; width: 0%; border-radius: 99px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s; background: var(--red); }
.fng-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 10px; }
.widget-footer { font-size: 0.7rem; color: #5f6368; }

/* Guidkort */
.guides { padding: 56px 0 24px; }
.section-title { font-size: 1.55rem; font-weight: 700; margin-bottom: 26px; text-align: center; letter-spacing: -0.01em; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-decoration: none; color: inherit; transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: block;
}
.guide-card:hover { background: var(--bg-card-hover); border-color: rgba(247, 147, 26, 0.4); transform: translateY(-3px); }
.guide-icon { width: 34px; height: 34px; margin-bottom: 14px; color: var(--accent); }
.guide-icon svg { width: 100%; height: 100%; }
.guide-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.guide-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Artikelsidor */
.article { padding: 44px 0 72px; }
.article-inner { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.article .lead { font-size: 1.12rem; color: var(--text-muted); margin-bottom: 34px; }
.article h2 { font-size: 1.35rem; font-weight: 700; margin: 38px 0 12px; letter-spacing: -0.01em; }
.article h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 8px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin-bottom: 6px; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 0.92rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article th { color: var(--text-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.infobox {
  background: var(--accent-soft); border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; font-size: 0.95rem;
}
.infobox strong { color: var(--accent); }
.warnbox {
  background: rgba(255, 82, 82, 0.08); border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; font-size: 0.95rem;
}
.warnbox strong { color: var(--red); }

/* Ordlista */
.glossary dt { font-weight: 700; color: var(--accent); margin-top: 22px; font-size: 1.02rem; }
.glossary dd { margin: 4px 0 0 0; color: var(--text); }
.glossary-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
.glossary-nav a {
  display: inline-block; padding: 4px 11px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px; text-decoration: none;
  color: var(--text-muted); font-weight: 600; font-size: 0.88rem;
}
.glossary-nav a:hover { color: var(--accent); border-color: rgba(247,147,26,0.4); }

/* Relaterat */
.related { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 26px; }
.related h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 8px; }
.related a { text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 14px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.disclaimer { margin-top: 8px; font-size: 0.75rem; opacity: 0.7; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Responsivt */
@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; font-size: 1rem; }
  .menu-toggle { display: block; }
  .live-widgets { grid-template-columns: 1fr; }
  #btc-price, #fng-value { font-size: 1.9rem; }
  .hero { padding: 38px 0 28px; }
}
