/*
Theme Name: CryptoPilot
Theme URI: https://cryptopilot.se
Author: CryptoPilot
Version: 1.4
Description: CryptoPilot – Swedish crypto guide, tools and affiliate site.
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg:     #08101d;
  --bg2:    #0f172a;
  --card:   #121b2b;
  --txt:    #f3f6fb;
  --mut:    #b7c3d6;
  --line:   rgba(255,255,255,.10);
  --gold:   #f5c451;
  --gold2:  #ffda6f;
  --accent: #4dd4c6;
  --accent2:#20b6a8;
  --warn:   #ffb4a8;
  --ok:     #b8f3cf;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  color: var(--txt);
  line-height: 1.6;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(245,196,81,.08), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================
   LAYOUT
   ============================================= */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(9,15,28,.80);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 72px; flex-wrap: nowrap;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: #fff; font-weight: 900; font-size: 22px; letter-spacing: .3px;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }

/* Nav */
.nav { display: none; gap: 14px; align-items: center; flex-wrap: nowrap; }
.nav a {
  color: #dfe8f5; font-weight: 600; font-size: 14px; letter-spacing: .1px;
  transition: color .15s, transform .15s; white-space: nowrap;
  display: inline-block;
}
.nav a:hover { color: #fff; transform: translateY(-1px); }
.nav .cta-btn {
  padding: 9px 16px; border-radius: 999px; color: #181f2d; font-weight: 900; font-size: 14px;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  box-shadow: 0 6px 18px rgba(245,196,81,.35); white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.nav .cta-btn:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 8px 24px rgba(245,196,81,.45); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--txt); border-radius: 2px; transition: .2s;
}

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  background: rgba(9,15,28,.97); border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 18px; color: #dfe8f5; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .cta-btn {
  margin: 12px 18px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #181f2d; font-weight: 900;
}
.mobile-nav-langs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.mobile-nav-langs a {
  padding: 5px 9px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: #dfe8f5; border-bottom: none;
}
.mobile-nav-langs a:hover, .mobile-nav-langs a.active {
  background: rgba(255,255,255,.1); color: #fff;
}

.nav-divider { width: 1px; height: 20px; background: var(--line); flex-shrink: 0; }

/* Mobile lang button in topbar */
.mobile-lang-wrap { position: relative; display: none; }
@media (max-width: 899px) { .mobile-lang-wrap { display: block; } }
.mobile-lang-toggle {
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: #dfe8f5; font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.mobile-lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #0f172a; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; min-width: 160px; z-index: 300;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.mobile-lang-menu.open { display: block; }
.mobile-lang-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #dfe8f5; transition: background .15s;
}
.mobile-lang-menu a:hover, .mobile-lang-menu a.active { background: rgba(255,255,255,.08); color: #fff; }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-toggle {
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: #dfe8f5; font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 10px; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.lang-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #0f172a; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; min-width: 160px; z-index: 200;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.lang-menu.open { display: block; }
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #dfe8f5;
  transition: background .15s;
}
.lang-menu a:hover, .lang-menu a.active { background: rgba(255,255,255,.08); color: #fff; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .hamburger { display: none; }
}

/* =============================================
   HERO
   ============================================= */
.hero { padding: 56px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; }
}

/* Logo column */
.hero-logo-col {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  order: 1;
}
@media (min-width: 860px) { .hero-logo-col { order: 0; } }

.hero-logo-img {
  width: clamp(160px, 36vw, 300px); height: auto;
  border-radius: 32px;
  filter: drop-shadow(0 20px 50px rgba(245,196,81,.22));
}
.hero-logo-name {
  font-size: clamp(30px, 5vw, 46px); font-weight: 900;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: .4px;
}

/* Text column */
.hero-text-col { display: flex; flex-direction: column; gap: 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(245,196,81,.12); border: 1px solid rgba(245,196,81,.28);
  color: #ffe7a0; font-weight: 800; font-size: 12px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; margin-bottom: 14px; max-width: 16ch;
}
.hero .lead { font-size: 18px; color: #d4dfef; max-width: 58ch; margin-bottom: 24px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 15px;
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #181f2d; border-color: transparent;
  box-shadow: 0 10px 24px rgba(245,196,81,.30);
}
.btn-secondary { background: rgba(255,255,255,.05); color: #fff; }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line); border-radius: 28px;
  padding: 26px; box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 22px; margin-bottom: 14px; }
.tag {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  font-size: 12px; margin: 3px 4px 0 0;
}

/* =============================================
   TRUST SIGNALS
   ============================================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px;
  text-align: center;
}
.trust-num { font-size: 28px; font-weight: 900; color: var(--gold); line-height: 1; }
.trust-label { font-size: 13px; color: var(--mut); margin-top: 4px; }

/* =============================================
   CARDS & GRID
   ============================================= */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--mut); font-size: 15px; line-height: 1.55; }

.cards-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.cards-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; margin-bottom: 10px; }
.section-lead { color: #d4dfef; max-width: 70ch; margin-bottom: 24px; font-size: 17px; }

/* =============================================
   GOLDEN RULES
   ============================================= */
.golden-wrap {
  background: linear-gradient(135deg, rgba(245,196,81,.10), rgba(245,196,81,.04));
  border: 1px solid rgba(245,196,81,.25); border-radius: 28px; padding: 32px;
}
.golden-wrap .section-title { color: var(--gold2); }

.rules-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
@media (min-width: 640px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }

.rule-card {
  background: rgba(245,196,81,.07); border: 1px solid rgba(245,196,81,.20);
  border-radius: 18px; padding: 18px;
}
.rule-card .rule-icon { font-size: 22px; margin-bottom: 8px; }
.rule-card h4 { font-size: 15px; font-weight: 800; color: var(--gold2); margin-bottom: 6px; }
.rule-card p { font-size: 13px; color: #d9e4f2; line-height: 1.5; }

/* =============================================
   BOT SECTION
   ============================================= */
.bot-card {
  background: linear-gradient(135deg, rgba(77,212,198,.10), rgba(77,212,198,.04));
  border: 1px solid rgba(77,212,198,.25); border-radius: 28px; padding: 32px;
}
.bot-features { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0; }
@media (min-width: 640px) { .bot-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bot-features { grid-template-columns: repeat(3, 1fr); } }

.bot-feature {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px;
  background: rgba(77,212,198,.06); border: 1px solid rgba(77,212,198,.15);
  border-radius: 14px;
}
.bot-feature .dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.bot-feature span { font-size: 14px; color: #d9e4f2; line-height: 1.45; }

/* =============================================
   EXCHANGES
   ============================================= */
.exchange-category { margin-bottom: 40px; }
.exch-cat-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--txt); }
.exch-cat-desc { font-size: 13px; color: var(--mut); margin-bottom: 16px; }

.exchange-card {
  display: flex; flex-direction: column; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, transform .15s;
}
.exchange-card:hover { border-color: rgba(245,196,81,.35); transform: translateY(-2px); }

/* Top pick — gold border */
.exchange-card--top {
  border-color: rgba(245,196,81,.55);
  box-shadow: 0 0 0 1px rgba(245,196,81,.25), 0 8px 32px rgba(245,196,81,.08);
}
.exchange-card--top:hover { border-color: var(--gold); }
.exch-top-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--bg); background: linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius: 8px; padding: 2px 9px; margin-bottom: 12px;
}

.exch-top { flex: 1; }
.exch-bottom { margin-top: 14px; }
.exchange-name { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.exchange-desc { font-size: 13px; color: var(--mut); line-height: 1.5; }
.exchange-code { font-size: 11px; color: var(--mut); margin-top: 8px; min-height: 16px; }
/* SVG logo */
.exch-logo-img-wrap {
  height: 44px; display: flex; align-items: center; margin-bottom: 14px;
}
.exch-logo-img { height: 36px; width: auto; max-width: 110px; object-fit: contain; opacity: .95; }

/* Per-logo filters */
/* Dark/black SVG fills → invert to white */
.exch-logo-img--hyperliquid,
.exch-logo-img--okx { filter: brightness(0) invert(1); }
/* Bybit & BingX: have dark background fills — screen blend removes dark, keeps brand colors */
.exch-logo-img--bybit,
.exch-logo-img--bingx { mix-blend-mode: screen; }
/* JPEG logos with dark bg — round corners (grid cards) */
.exch-logo-img--legion,
.exch-logo-img--coinlist,
.exch-logo-img--gmx { border-radius: 6px; height: 30px; max-width: 130px; object-fit: cover; }
/* JPEG logos in hero (exchange pages) — larger */
.exch-hero-logo.exch-logo-img--legion,
.exch-hero-logo.exch-logo-img--coinlist,
.exch-hero-logo.exch-logo-img--gmx { height: 44px; max-width: 180px; }
.exchanges-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .exchanges-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .exchanges-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================
   KONTAKT
   ============================================= */
.kontakt-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .kontakt-grid { grid-template-columns: repeat(2, 1fr); } }

.kontakt-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s;
}
.kontakt-card--tg  { border-color: rgba(42,172,226,.25); }
.kontakt-card--bot { border-color: rgba(77,212,198,.25); }
.kontakt-card--tg:hover  { border-color: rgba(42,172,226,.55); }
.kontakt-card--bot:hover { border-color: rgba(77,212,198,.45); }
.kontakt-icon { font-size: 32px; flex-shrink: 0; margin-top: 2px; }
.kontakt-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.kontakt-body p  { font-size: 13px; color: var(--mut); line-height: 1.6; margin-bottom: 12px; }
.kontakt-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.kontakt-perks li { font-size: 13px; color: var(--mut); }

/* =============================================
   SITE SECTIONS NAV
   ============================================= */
.sections-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .sections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .sections-grid { grid-template-columns: repeat(3, 1fr); } }

.section-tile {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.section-tile:hover {
  background: rgba(255,255,255,.07); border-color: rgba(245,196,81,.25);
  transform: translateY(-2px);
}
.tile-icon { font-size: 26px; flex-shrink: 0; }
.tile-text h3 { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.tile-text p { font-size: 12px; color: var(--mut); line-height: 1.4; }

/* =============================================
   WARN / OK BOXES
   ============================================= */
.warnbox {
  padding: 16px 20px; border-radius: 16px;
  background: rgba(255,180,168,.07); border: 1px solid rgba(255,180,168,.22);
  color: #ffe1db; font-size: 14px; line-height: 1.5;
}
.okbox {
  padding: 16px 20px; border-radius: 16px;
  background: rgba(184,243,207,.07); border: 1px solid rgba(184,243,207,.22);
  color: #d9ffea; font-size: 14px; line-height: 1.5;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, rgba(245,196,81,.12), rgba(77,212,198,.08));
  border: 1px solid rgba(245,196,81,.20); border-radius: 28px;
  padding: 40px 32px; text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; }
.cta-banner p { color: var(--mut); margin-bottom: 24px; font-size: 16px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { padding: 40px 0 56px; color: var(--mut); font-size: 13px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line);
  padding-top: 28px; margin-bottom: 20px;
}
.footer-brand { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--mut); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { font-size: 11px; color: #7a8499; line-height: 1.6; margin-top: 8px; }

/* =============================================
   HERO LOGO (big)
   ============================================= */
.hero-logo-big {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-logo-big img {
  width: clamp(140px, 40vw, 260px);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(245,196,81,.25));
  border-radius: 28px;
}
.hero-logo-big .brand-name {
  font-size: clamp(28px, 5vw, 42px); font-weight: 900;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: .5px;
}

/* =============================================
   EXCHANGE LOGO BADGES
   ============================================= */
.exch-logo {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  flex-shrink: 0; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.exch-logo.kraken   { background: linear-gradient(135deg,#5741d9,#3d2db0); }
.exch-logo.binance  { background: linear-gradient(135deg,#f0b90b,#c99500); color:#181f2d; }
.exch-logo.bybit    { background: linear-gradient(135deg,#f7a600,#c98a00); color:#181f2d; }
.exch-logo.okx      { background: linear-gradient(135deg,#2e2e2e,#111); }
.exch-logo.bitget   { background: linear-gradient(135deg,#00c4c4,#007e7e); }
.exch-logo.kucoin   { background: linear-gradient(135deg,#23af92,#178f75); }
.exch-logo.coinbase { background: linear-gradient(135deg,#0052ff,#003ecc); }
.exch-logo.mexc     { background: linear-gradient(135deg,#2354e6,#1a3eb5); }
.exch-logo.bingx        { background: linear-gradient(135deg,#1652f0,#0f3ec0); }
.exch-logo.legion       { background: linear-gradient(135deg,#6c5ce7,#4a3db5); }
.exch-logo.hyperliquid  { background: linear-gradient(135deg,#00c2a8,#007a6b); }
.exch-logo.dydx         { background: linear-gradient(135deg,#6966ff,#4a47d4); }
.exch-logo.gmx          { background: linear-gradient(135deg,#1a6bff,#0047cc); }
.exch-logo.coinlist     { background: linear-gradient(135deg,#1a1a2e,#0d0d1f); }
