/*
Theme Name: Aktiekompas
Theme URI: https://aktiekompas.dk
Author: Aktiekompas
Author URI: https://aktiekompas.dk
Description: Picks & Shovels aktieanbefalinger — midnight tema med grøn accent
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: aktiekompas
*/

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg:        #080E1A;
  --surface:   #0D1625;
  --surface-2: #111B2B;
  --border:    rgba(255,255,255,0.08);
  --green:     #22C97A;
  --green-dk:  #1aab65;
  --muted:     #5A6878;
  --subtle:    #3D4D5E;
  --text-sec:  #B0BAC8;
  --red:       #E05C3A;
  --blue:      #7BA7F7;
  --font:      'DM Sans', sans-serif;
  --mono:      'DM Mono', monospace;
  --radius:    10px;
  --radius-lg: 12px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: #E8EDF5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); }

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.divider { height: 0.5px; background: var(--border); margin: 0 2rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; font-size: 15px; font-weight: 700; border-radius: 8px;
  background: var(--green) !important; color: #fff !important; border: none !important;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn-green:hover { background: var(--green-dk) !important; }
.btn-green:active { transform: scale(.97); }
.btn-green.sm { padding: 8px 18px; font-size: 13px; border-radius: 7px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; font-size: 15px; font-weight: 600; border-radius: 8px;
  background: transparent !important; color: #E8EDF5 !important;
  border: 1.5px solid rgba(255,255,255,0.22) !important;
  cursor: pointer; transition: border-color .15s, transform .1s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.45) !important; }
.btn-outline:active { transform: scale(.97); }
.btn-outline.sm { padding: 8px 18px; font-size: 13px; border-radius: 7px; }

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  padding: 1.1rem 2rem;
  border-bottom: 0.5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,14,26,0.95);
  backdrop-filter: blur(10px);
}
.site-logo { font-size: 18px; font-weight: 700; letter-spacing: -.5px; }
.site-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 6px; transition: color .15s;
}
.nav-link:hover, .nav-link.current { color: var(--green); }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 3rem 2rem 2.5rem; }
.hero-headline {
  font-size: 42px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: .75rem; max-width: 580px;
}
.hero-headline span { color: var(--green); }
.hero-sub { font-size: 15px; color: #7A8799; margin-bottom: 1.5rem; max-width: 500px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }

/* Trust bar */
.trust-bar { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── Strategy Banner ──────────────────────────────────────── */
.strategy-banner {
  background: #0D1F14; border: 1px solid rgba(34,201,122,.2);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  max-width: 780px; margin-bottom: 2.5rem;
}
.strat-label { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.strat-title { font-size: 20px; font-weight: 700; color: #E8EDF5; margin-bottom: 8px; }
.strat-title span { color: var(--green); }
.strat-body { font-size: 13px; color: #7A8799; line-height: 1.75; }
.strat-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.strat-tag {
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  background: rgba(34,201,122,.1); color: var(--green);
}

/* ── Benchmark Card ───────────────────────────────────────── */
.bench-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; max-width: 780px; margin-bottom: 0;
}
.bench-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 12px; }
.bench-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.bench-headline { font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.bench-headline span { color: var(--green); }
.bench-since { font-size: 12px; color: var(--subtle); margin-top: 2px; }
.bench-cta { margin-top: 12px; }
.bench-legend { display: flex; gap: 16px; }
.leg-item { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.leg-line { width: 20px; height: 2px; border-radius: 1px; }
.leg-dashed { border-top: 1.5px dashed #3D4D5E; height: 0; }
.bench-chart-wrap { height: 160px; position: relative; }
.bench-chart-wrap canvas { width: 100% !important; height: 160px !important; }
.bench-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 1.25rem; }
.bs { background: var(--surface-2); border-radius: 8px; border: 0.5px solid rgba(255,255,255,.06); padding: .75rem 1rem; }
.bs-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.bs-val { font-size: 18px; font-weight: 500; font-family: var(--mono); }
.bs-val.up { color: var(--green); }
.bs-val.neu { color: var(--muted); }
.bs-val.blue { color: var(--blue); }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 2.5rem 2rem; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 8px; }
.section-title { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.section-sub { font-size: 13px; color: var(--muted); }

/* ── How It Works ─────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.how-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.how-num { font-size: 11px; font-weight: 700; color: var(--green); font-family: var(--mono); margin-bottom: 10px; letter-spacing: 1px; }
.how-title { font-size: 15px; font-weight: 700; color: #E8EDF5; margin-bottom: 6px; }
.how-text { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Recommendation Cards ─────────────────────────────────── */
.recs-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.rec-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.rec-card-top {
  padding: 14px 16px 12px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 0.5px solid rgba(255,255,255,.06);
}
.rec-ticker-block { display: flex; align-items: center; gap: 10px; }
.rec-logo {
  width: 32px; height: 32px; border-radius: 7px;
  background: #162030; border: 0.5px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; font-family: var(--mono); color: #7A8799; flex-shrink: 0;
}
.rec-name { font-size: 14px; font-weight: 700; color: #E8EDF5; line-height: 1.2; }
.rec-sector { font-size: 11px; color: var(--muted); }
.rec-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; white-space: nowrap; }
.badge-open { background: rgba(34,201,122,.12); color: var(--green); }
.badge-closed { background: rgba(255,255,255,.06); color: #7A8799; }
.rec-return { padding: 14px 16px; display: flex; align-items: baseline; gap: 6px; }
.ret-val { font-size: 28px; font-weight: 700; font-family: var(--mono); line-height: 1; }
.ret-val.pos { color: var(--green); }
.ret-val.neg { color: var(--red); }
.ret-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.ret-bar { height: 2px; background: rgba(255,255,255,.05); margin: 0 16px; border-radius: 1px; overflow: hidden; }
.ret-bar-fill { height: 100%; border-radius: 1px; }
.rec-meta { padding: 10px 16px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.meta-item { background: var(--surface-2); border-radius: 5px; padding: 7px 10px; }
.meta-label { font-size: 10px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.meta-val { font-size: 13px; font-weight: 600; font-family: var(--mono); color: var(--text-sec); }
.rec-date { padding: 0 16px 12px; font-size: 11px; color: var(--subtle); }
.rec-memo-link { padding: 0 16px 14px; }
.rec-memo-link a { font-size: 12px; font-weight: 700; color: var(--green); }

/* Locked card */
.lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(8,14,26,.9); border-radius: var(--radius); gap: 8px;
}
.lock-icon { font-size: 22px; }
.lock-text { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.5; }
.ghost-content { opacity: .15; pointer-events: none; }

/* ── Testimonials ─────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.test-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.test-stars { color: var(--green); font-size: 13px; margin-bottom: 10px; letter-spacing: 2px; }
.test-quote { font-size: 13px; color: var(--text-sec); line-height: 1.6; margin-bottom: 12px; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.test-name { font-size: 13px; font-weight: 700; color: #E8EDF5; }
.test-role { font-size: 11px; color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.price-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.price-card.featured { border: 1.5px solid var(--green); }
.price-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--green); padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 12px; }
.price-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.price-amount { font-size: 34px; font-weight: 500; letter-spacing: -1px; font-family: var(--mono); }
.price-amount span { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 500; }
.price-save { font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 1rem; min-height: 18px; }
.price-spacer { height: 18px; margin-bottom: 1rem; }
.price-features { list-style: none; margin-bottom: 1.25rem; flex: 1; }
.price-features li { font-size: 13px; color: #7A8799; padding: 6px 0; border-bottom: 0.5px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 8px; }
.price-features li:last-child { border-bottom: none; }
.feat-check { color: var(--green); flex-shrink: 0; }
.feat-cross { color: var(--subtle); flex-shrink: 0; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 0.5px solid rgba(255,255,255,.07); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1rem 0; font-size: 14px; font-weight: 700; color: #E8EDF5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; transition: color .15s;
}
.faq-question:hover { color: var(--green); }
.faq-icon { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq-icon.open { transform: rotate(45deg); color: var(--green); }
.faq-answer { font-size: 13px; color: var(--muted); line-height: 1.7; padding-bottom: 1rem; display: none; }
.faq-answer.open { display: block; }

/* ── Footer CTA ───────────────────────────────────────────── */
.footer-cta { padding: 3rem 2rem; border-top: 0.5px solid var(--border); text-align: center; }
.footer-cta-title { font-size: 28px; font-weight: 700; letter-spacing: -1px; margin-bottom: .5rem; }
.footer-cta-title span { color: var(--green); }
.footer-cta-sub { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }
.footer-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer-note { font-size: 12px; color: var(--subtle); margin-top: 1rem; }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border); padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-size: 15px; font-weight: 700; }
.footer-logo span { color: var(--green); }
.footer-legal { font-size: 12px; color: var(--subtle); }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-wrap { padding: 2rem; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.dash-greeting { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.dash-greeting span { color: var(--green); }
.dash-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dash-updated { font-size: 12px; color: var(--subtle); }
.kpi-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 1.5rem; }
.kpi { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.kpi-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.kpi-val { font-size: 24px; font-weight: 700; font-family: var(--mono); line-height: 1; margin-bottom: 4px; }
.kpi-val.up { color: var(--green); }
.kpi-val.blue { color: var(--blue); }
.kpi-val.white { color: #E8EDF5; }
.kpi-delta { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi-delta.pos { color: var(--green); }
.kpi-delta.neg { color: var(--red); }
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 14px; margin-bottom: 1.5rem; }
.dash-panel { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.panel-title { font-size: 13px; font-weight: 700; color: #E8EDF5; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.panel-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: rgba(34,201,122,.12); color: var(--green); }

/* Positions table */
.pos-table { width: 100%; border-collapse: collapse; }
.pos-table th { font-size: 10px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .5px; padding: 0 8px 10px; text-align: left; border-bottom: 0.5px solid rgba(255,255,255,.06); }
.pos-table th:last-child, .pos-table td:last-child { text-align: right; }
.pos-table td { font-size: 13px; font-weight: 600; padding: 10px 8px; border-bottom: 0.5px solid rgba(255,255,255,.04); color: var(--text-sec); font-family: var(--mono); }
.pos-table tr:last-child td { border-bottom: none; }
.pos-name { color: #E8EDF5 !important; font-weight: 700 !important; font-family: var(--font) !important; }
.pos-ticker { font-size: 11px; color: var(--muted); font-weight: 500; }
.td-up { color: var(--green) !important; }
.td-neg { color: var(--red) !important; }

/* Allocation */
.alloc-list { display: flex; flex-direction: column; gap: 10px; }
.alloc-item { display: flex; align-items: center; gap: 10px; }
.alloc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.alloc-name { font-size: 13px; font-weight: 600; color: #E8EDF5; flex: 1; }
.alloc-bar-wrap { flex: 2; height: 4px; background: rgba(255,255,255,.05); border-radius: 2px; overflow: hidden; }
.alloc-bar-fill { height: 100%; border-radius: 2px; }
.alloc-pct { font-size: 12px; font-weight: 600; font-family: var(--mono); color: #7A8799; min-width: 36px; text-align: right; }
.alloc-ret { font-size: 12px; font-weight: 600; font-family: var(--mono); min-width: 48px; text-align: right; }

/* Signal feed */
.signal-list { display: flex; flex-direction: column; }
.signal-item { padding: 11px 0; border-bottom: 0.5px solid rgba(255,255,255,.05); display: flex; gap: 12px; }
.signal-item:last-child { border-bottom: none; }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.signal-title { font-size: 13px; font-weight: 700; color: #E8EDF5; margin-bottom: 2px; }
.signal-meta { font-size: 11px; color: var(--muted); }
.signal-new { font-size: 10px; font-weight: 700; background: var(--green); color: #fff; padding: 2px 7px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }

/* Locked dashboard */
.dash-locked { padding: 4rem 2rem; text-align: center; }
.dash-locked-icon { font-size: 48px; margin-bottom: 1rem; }
.dash-locked-title { font-size: 22px; font-weight: 700; margin-bottom: .5rem; }
.dash-locked-sub { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }

/* ── Single Recommendation ────────────────────────────────── */
.single-rec { max-width: 780px; margin: 0 auto; padding: 2rem; }
.single-rec-header { margin-bottom: 2rem; }
.single-rec-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 2rem; }
.single-rec-memo { font-size: 15px; color: var(--text-sec); line-height: 1.8; }
.single-rec-memo h2 { font-size: 18px; font-weight: 700; color: #E8EDF5; margin: 1.5rem 0 .5rem; }
.single-rec-memo p { margin-bottom: 1rem; }
.single-rec-memo ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.single-rec-memo li { margin-bottom: .4rem; }

/* ── Admin styles ─────────────────────────────────────────── */
.admin-notice-aktiek { background: #0D1F14; border-left: 4px solid var(--green); padding: .75rem 1rem; margin: 1rem 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-headline { font-size: 30px; }
  .recs-grid, .how-grid, .test-grid, .pricing-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .bench-stats { grid-template-columns: 1fr 1fr; }
  .single-rec-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .bench-stats, .kpi-row { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .section { padding: 2rem 1rem; }
}
