/*
Theme Name: NetassistProfile
Theme URI: https://netassist.dk
Author: Netassist
Author URI: https://netassist.dk
Description: Premium tech & finance magazine theme – SQL, AI Agents, Claude Code, Copilot & Markets
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: netassist-profile
*/

/* ============================================================
   TOKENS
============================================================ */
:root {
    --ink:        #0d0d14;
    --ink-2:      #3a3a4a;
    --ink-3:      #7a7a90;
    --bg:         #f8f8fc;
    --surface:    #ffffff;
    --border:     #e8e8f0;

    --purple:     #6c63ff;
    --purple-dk:  #4f48cc;
    --teal:       #00c9a7;
    --amber:      #f59e0b;
    --rose:       #f43f5e;
    --blue:       #3b82f6;

    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
    --shadow:     0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.14);

    --heading:    'Playfair Display', Georgia, serif;
    --body:       'Inter', system-ui, sans-serif;
    --mono:       'JetBrains Mono', 'Fira Code', monospace;

    --ease:       cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--body);
    color: var(--ink);
    background: #0e0d0d;          /* hvid baggrund udenfor siden */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Global max-width ── */
:root { --site-width: 1280px; }

/* Boxed layout – alt indhold max 1280px, centreret, hvid udenfor */
.page-wrap {
    max-width: var(--site-width);
    margin: 0 auto;
    background: var(--surface);
}

/* Wrap hele body-indholdet mellem header og footer */
#page-content {
    max-width: var(--site-width);
    margin: 0 auto;
    background: var(--bg);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 48px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 28px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2,h3,h4,h5 {
    font-family: var(--heading);
    line-height: 1.25;
    color: var(--ink);
}

/* ============================================================
   HEADER — 5-zone layout
============================================================ */
#site-header-wrap {
    background: var(--surface);
}

/* ══════════════════════════════════════════
   HEADER-ENHED: hero + nav + tags + breaking i ét samlet blok
════════════════════════════════════════════ */
#site-header-wrap {
    max-width: var(--site-width);
    margin: 0 auto;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    /* Ingen indre luft — alle child-elementer flyder direkte mod hinanden */
}

#site-header-wrap > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Zone 1+2: Hero-banner ── */
.site-hero-header {
    position: relative;
    width: 100%;
    min-height: 170px;
    background-color: #3da9bb;           /* fallback farve når intet billede */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 14px 28px 18px;
    overflow: hidden;
}

/* Baggrundsbillede som <img> — virker i alle browsere inkl. Edge */
.hero-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}

/* Gradient overlay oven på billedet */
.site-hero-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    background: -webkit-linear-gradient(
        top,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.05) 60%,
        rgba(0,0,0,0.00) 100%
    );
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.05) 60%,
        rgba(0,0,0,0.00) 100%
    );
    pointer-events: none;
}

/* ── Øverste række: telefon (venstre) + sociale ikoner (højre) ── */
.hero-topbar {
    position: relative;
    z-index: 2;                        /* over billede (z0) og overlay (z1) */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: auto;               /* skubber brand-rækken ned */
}

.hero-topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    transition: background .2s;
}

.hero-social:hover                    { background: rgba(255,255,255,0.38); }
.hero-social--facebook:hover          { background: #1877f2; }
.hero-social--twitter:hover           { background: #000; }
.hero-social--linkedin:hover          { background: #0a66c2; }
.hero-social--youtube:hover           { background: #ff0000; }
.hero-social--instagram:hover         { background: radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%); }

.hero-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0,0,0,0.25);
    padding: 4px 12px;
    border-radius: 20px;
    transition: background .2s;
}
.hero-phone:hover { background: rgba(0,0,0,0.42); }

/* ── Nederste række: firmanavn/tagline ── */
.hero-brand {
    position: relative;
    z-index: 2;                        /* over billede (z0) og overlay (z1) */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    max-height: 58px;
    width: auto;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hero-brand-name {
    font-family: var(--heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

.hero-brand-tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.3px;
}

.logo-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

/* ── Zone 3: Sticky nav bar ── */
/* ── Zone 3: Sticky nav bar — direkte under hero, ingen luft ── */
.nav-bar-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--purple);
    box-shadow: 0 2px 12px rgba(108,99,255,0.35);
    margin-top: 0;   /* ingen luft op mod hero */
}

.nav-bar-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0;
}

/* Nav links */
.primary-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    flex: 1;
}

.primary-nav li > a {
    display: block;
    padding: 0 16px;
    height: 52px;
    line-height: 52px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    transition: background .18s, color .18s;
}

.primary-nav li > a:hover,
.primary-nav li.current-menu-item > a,
.primary-nav li.current-menu-ancestor > a {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Nav bar right actions */
.nav-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-left: 8px;
}

.nav-search-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.85);
    transition: background .2s;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-search-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-subscribe {
    background: #fff;
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 999px;
    margin-left: 6px;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}

.btn-subscribe:hover { background: rgba(255,255,255,0.9); color: var(--purple-dk); transform: translateY(-1px); }

/* Search bar (toggled) */
.nav-search-bar {
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.nav-search-bar[hidden] { display: none; }

.nav-search-bar form {
    display: flex;
    gap: 8px;
}

.nav-search-bar input {
    flex: 1;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 8px 18px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.nav-search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search-bar input:focus { background: rgba(255,255,255,0.18); }

.nav-search-bar button {
    background: #fff;
    color: var(--purple);
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background .2s;
    cursor: pointer;
    border: none;
    background: none;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
    background: var(--purple-dk);
    position: absolute;
    left: 0; right: 0;
    z-index: 198;
    animation: mobileMenuIn .22s var(--ease);
}

@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu .container { padding: 12px 28px 20px; }

.mobile-nav { display: flex; flex-direction: column; gap: 2px; list-style: none; }
.mobile-nav li a {
    display: block; padding: 11px 14px; border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 600; color: rgba(255,255,255,0.85);
    transition: background .15s;
}
.mobile-nav li a:hover,
.mobile-nav li.current-menu-item a { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Zone 4: Tags bar — direkte under nav, ingen luft ── */
.tags-bar {
    background: var(--ink);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-top: 0;
}

.tags-bar .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.tags-bar .container::-webkit-scrollbar { display: none; }

.tags-bar-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.tags-bar-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .18s, color .18s, border-color .18s;
}

.tags-bar-tag:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }
.tags-bar-tag--active { background: var(--purple); color: #fff; border-color: var(--purple); }
.tags-bar-tag--hash { color: rgba(255,255,255,0.45); }

/* ── Zone 5: Breaking news ── */
.breaking-bar {
    background: #fff;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
    font-size: 0.82rem;
}

.breaking-label {
    background: var(--rose);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.breaking-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.breaking-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: breakingScroll 45s linear infinite;
    width: max-content;
}

.breaking-inner:hover { animation-play-state: paused; }

@keyframes breakingScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.breaking-item {
    padding: 0 24px;
    color: var(--ink-2);
    font-weight: 500;
    transition: color .2s;
}

.breaking-item:hover { color: var(--purple); }

.breaking-sep {
    color: var(--border);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Gammel header-wrap fjernes (erstattet) ── */
.header-wrap { display: none; }

/* ============================================================
   OLD HEADER KEPT FOR REFERENCE — now replaced
============================================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 68px;
    gap: 20px;
}

/* Logo – left */
.site-logo {
    font-family: var(--heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    flex-shrink: 0;
}

/* Nav – center */
.primary-nav { display: flex; gap: 2px; justify-content: center; }

.primary-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: background .18s var(--ease), color .18s var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: var(--bg);
    color: var(--ink);
}

/* Right actions */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    gap: 8px;
    transition: border-color .2s;
}

.search-form:focus-within { border-color: var(--purple); }

.search-form input {
    border: none;
    background: none;
    font-size: 0.85rem;
    color: var(--ink);
    width: 160px;
    outline: none;
}

.search-form input::placeholder { color: var(--ink-3); }

.search-form svg { color: var(--ink-3); flex-shrink: 0; }

.btn-subscribe {
    background: var(--purple);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    transition: background .2s, transform .15s;
}

.btn-subscribe:hover {
    background: var(--purple-dk);
    color: #fff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background .2s;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: all .3s;
}

/* Hamburger → X animering */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobil menu ── */
#mobile-menu {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    position: absolute;
    left: 0; right: 0;
    z-index: 198;
    animation: mobileMenuIn .22s var(--ease);
}

@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu .container { padding: 12px 28px 20px; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
}

.mobile-nav li a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background .15s, color .15s;
}

.mobile-nav li a:hover,
.mobile-nav li.current-menu-item a {
    background: var(--bg);
    color: var(--purple);
}

/* ── Active state i primær nav ── */
.primary-nav li.current-menu-item > a,
.primary-nav li.current-menu-ancestor > a {
    background: var(--bg);
    color: var(--purple);
}

/* ============================================================
   TOPIC PILL TAGS
============================================================ */
.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
}

.topic-sql    { background: var(--blue); }
.topic-ai     { background: var(--purple); }
.topic-claude { background: #b45309; }
.topic-copilot{ background: #059669; }
.topic-finance{ background: var(--teal); color: var(--ink); }
.topic-default{ background: var(--ink-2); }

/* ============================================================
   HERO — featured post
============================================================ */
.hero-section {
    padding: 52px 0 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    min-height: 520px;
}

.hero-content {
    padding: 48px 56px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--ink-3);
    font-weight: 500;
}

.hero-eyebrow .sep { opacity: 0.4; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 18px;
    color: var(--ink);
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-excerpt {
    font-size: 1.05rem;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-2);
}

.author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.read-time {
    font-size: 0.8rem;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0d0d14 0%, #1a1a35 40%, #2d1b69 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.code-preview {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.85;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
}

.code-preview .kw  { color: #c678dd; }
.code-preview .fn  { color: #61afef; }
.code-preview .str { color: #98c379; }
.code-preview .cm  { color: #5c6370; font-style: italic; }
.code-preview .num { color: #e5c07b; }

/* ============================================================
   SECTION LABEL
============================================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.section-label h2 {
    font-family: var(--heading);
    font-size: 1.55rem;
    font-weight: 800;
}

.section-label-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-label-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-label-link:hover { color: var(--purple-dk); }

/* ============================================================
   MAIN FEED — 3-col card grid
============================================================ */
.feed-section {
    padding: 64px 0;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Post card */
.pcard {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.pcard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pcard-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a35, #2d1b69);
}

.pcard-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.pcard:hover .pcard-thumb img { transform: scale(1.04); }

.pcard-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
}

.pcard-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.pcard-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pcard-date { font-size: 0.78rem; color: var(--ink-3); }

.pcard-title {
    font-family: var(--heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    transition: color .18s;
}

.pcard:hover .pcard-title { color: var(--purple); }

.pcard-excerpt {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Featured wide card */
.pcard-wide {
    grid-column: span 2;
    flex-direction: row;
}

.pcard-wide .pcard-thumb {
    width: 320px;
    min-width: 320px;
    aspect-ratio: unset;
}

.pcard-wide .pcard-title { font-size: 1.3rem; }

/* ============================================================
   TOPICS STRIP
============================================================ */
.topics-section {
    padding: 56px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.topic-card {
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.topic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
}

.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-card:hover::before { opacity: 1; }

.tc-sql {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}

.tc-ai {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #c4b5fd;
}

.tc-claude {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
}

.tc-finance {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
}

.topic-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.topic-card-title {
    font-family: var(--heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}

.topic-card-count {
    font-size: 0.8rem;
    color: var(--ink-3);
    font-weight: 500;
}

/* ============================================================
   MAGAZINE LAYOUT — featured + side list
============================================================ */
.magazine-section { padding: 64px 0; }

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

/* Big featured */
.mag-feature { display: flex; flex-direction: column; gap: 18px; }

.mag-feature-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0d0d14, #2d1b69);
}

.mag-feature-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mag-feature-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.mag-feature-title a { color: var(--ink); transition: color .2s; }
.mag-feature-title a:hover { color: var(--purple); }

.mag-feature-excerpt { color: var(--ink-2); font-size: 0.95rem; line-height: 1.75; }

/* Side list */
.mag-list { display: flex; flex-direction: column; gap: 0; }

.mag-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.mag-list-item:first-child { padding-top: 0; }
.mag-list-item:last-child { border-bottom: none; }

.mag-list-thumb {
    width: 80px;
    min-width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.mag-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mag-list-title {
    font-family: var(--heading);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

.mag-list-title a { color: inherit; }
.mag-list-title a:hover { color: var(--purple); }

.mag-list-meta {
    font-size: 0.75rem;
    color: var(--ink-3);
    margin-top: 5px;
}

/* ============================================================
   NEWSLETTER BANNER
============================================================ */
/* ── Micro nyhedsbrev (erstat stor section) ── */
.micro-newsletter {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    background: var(--surface);
}

.micro-nl-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.micro-nl-label {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--purple);
    white-space: nowrap;
    flex-shrink: 0;
}

.micro-nl-text {
    font-size: .85rem;
    color: var(--ink-2);
    flex: 1;
    min-width: 160px;
}

.micro-nl-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.micro-nl-form input {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .82rem;
    outline: none;
    width: 200px;
    transition: border-color .2s;
}

.micro-nl-form input:focus { border-color: var(--purple); }

.micro-nl-form button {
    background: var(--purple);
    color: #fff;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: .82rem;
    font-weight: 700;
    transition: background .2s;
}

.micro-nl-form button:hover { background: var(--purple-dk); }

/* Gammel stor section beholdes til andre sider hvis nødvendigt */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d0d14 0%, #1a1035 50%, #0d1f35 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15), transparent 70%);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,201,167,0.12), transparent 70%);
    pointer-events: none;
}

.newsletter-inner {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-tag {
    display: inline-block;
    background: rgba(108,99,255,0.25);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(108,99,255,0.3);
    margin-bottom: 20px;
}

.newsletter-inner h2 {
    font-family: var(--heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.newsletter-inner p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 13px 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--purple); }

.newsletter-form button {
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 13px 24px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}

.newsletter-form button:hover {
    background: var(--purple-dk);
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
    background: #09090f;
    color: rgba(255,255,255,0.6);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .site-logo { color: #fff; margin-bottom: 14px; }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color .2s;
}

.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    text-decoration: underline;
    transition: color .2s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   SINGLE POST
============================================================ */
.post-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 64px 0 0;
}

.post-hero-inner { max-width: 780px; margin: 0 auto; }

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.entry-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-hero-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    flex-wrap: wrap;
}

.post-thumb-full {
    margin-top: 40px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, #0d0d14, #2d1b69);
}

.post-thumb-full img { width: 100%; height: 100%; object-fit: cover; }

.post-body-wrap {
    padding: 56px 0 80px;
}

.post-content-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    align-items: start;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-2);
}

.entry-content h2 {
    font-size: 1.6rem;
    color: var(--ink);
    margin: 40px 0 16px;
}

.entry-content h3 {
    font-size: 1.25rem;
    color: var(--ink);
    margin: 28px 0 12px;
}

.entry-content p { margin-bottom: 20px; }

.entry-content a { color: var(--purple); text-decoration: underline; }

.entry-content code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--ink);
}

.entry-content pre {
    background: #0d0d14;
    border-radius: var(--radius);
    padding: 28px;
    overflow-x: auto;
    margin: 28px 0;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255,255,255,0.88);
    font-size: 0.875rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--purple);
    margin: 28px 0;
    padding: 16px 24px;
    background: #f5f3ff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink-2);
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar-sticky { position: sticky; top: 88px; }

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}

.widget-title {
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--purple);
}

/* ============================================================
   ARCHIVE
============================================================ */
.archive-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 52px 0;
    text-align: center;
}

.archive-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.archive-header p { color: var(--ink-3); margin-top: 8px; }

/* ============================================================
   404
============================================================ */
.not-found {
    padding: 120px 0;
    text-align: center;
}

.not-found-code {
    font-family: var(--mono);
    font-size: 9rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.18;
    margin-bottom: -20px;
}

.not-found h2 { font-size: 2rem; margin-bottom: 12px; }
.not-found p { color: var(--ink-3); margin-bottom: 32px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 26px;
    border-radius: 999px;
    transition: background .2s, transform .15s;
}

.btn-primary:hover {
    background: var(--purple-dk);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   UTILITIES
============================================================ */
.mt-0 { margin-top: 0; }
.visually-hidden { clip: rect(0,0,0,0); overflow: hidden; position: absolute; white-space: nowrap; height: 1px; width: 1px; }

/* ============================================================
   COOKIE BANNER
============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #09090f;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    animation: slideUp .35s var(--ease);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }

.cookie-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 260px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

.cookie-text a { color: #a78bfa; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cookie-btn {
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all .2s;
    white-space: nowrap;
}

.cookie-btn-primary { background: var(--purple); color: #fff; }
.cookie-btn-primary:hover { background: var(--purple-dk); transform: translateY(-1px); }

.cookie-btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn-outline:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.4);
}

/* Cookie modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-box {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn .28s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.cookie-modal-header h2 {
    font-family: var(--heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.cookie-modal-close {
    font-size: 1.5rem;
    color: var(--ink-3);
    line-height: 1;
    padding: 4px;
    transition: color .2s;
}

.cookie-modal-close:hover { color: var(--ink); }

.cookie-modal-body { padding: 20px 28px; }

.cookie-modal-intro {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 20px;
}

.cookie-modal-intro a { color: var(--purple); text-decoration: underline; }

.cookie-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
}

.cookie-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-group-info { display: flex; align-items: center; gap: 10px; }

.cookie-group-info h3 { font-size: 0.95rem; font-weight: 700; }

.cookie-badge {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.cookie-group-desc {
    font-size: 0.835rem;
    color: var(--ink-3);
    line-height: 1.65;
}

/* Toggle */
.cookie-toggle { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.cookie-toggle-disabled { cursor: default; }
.cookie-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }

.cookie-toggle-track {
    display: block;
    width: 44px; height: 24px;
    background: #d1d5db;
    border-radius: 24px;
    transition: background .25s;
    position: relative;
}

.cookie-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.cookie-toggle-track.on,
.cookie-checkbox:checked + .cookie-toggle-track {
    background: var(--purple);
}

.cookie-checkbox:checked + .cookie-toggle-track::after { transform: translateX(20px); }

.cookie-modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   HERO-BILLEDE (øverst på forsiden)
============================================================ */
/* ── Jumbotron / Hero-banner ── */
.site-hero-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0d0d14;
    /* Fast højde — billedet fylder dette ud */
    height: 420px;
}

.site-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Gradient-overlay i bunden så tekst/categories nedenunder ikke kæmper mod billedet */
.site-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

/* ============================================================
   TICKER BAR
============================================================ */
.ticker-bar {
    background: var(--ink);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-label {
    background: var(--purple);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    width: max-content;
}

.ticker-inner:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    padding: 0 20px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
}

.ticker-item:hover { color: var(--purple); }

.ticker-cat {
    color: var(--teal);
    font-weight: 700;
    margin-right: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.ticker-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.55rem;
    flex-shrink: 0;
}

/* ============================================================
   STATS STRIP
============================================================ */
.stats-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.stats-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.8rem;
    color: var(--ink-2);
    transition: all .2s;
    white-space: nowrap;
}

.stat-chip:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.stat-icon { font-size: 1rem; line-height: 1; }
.stat-name { font-weight: 700; }
.stat-count { color: var(--ink-3); font-size: 0.74rem; }
.stat-chip:hover .stat-count { color: rgba(255,255,255,0.75); }

.stat-date {
    margin-left: auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   2×2 CATEGORY BOX GRID
============================================================ */
.catgrid-section {
    padding: 52px 0 64px;
}

.catgrid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ── Individual box ─────────────────────── */
.catbox {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
    box-shadow: var(--shadow-sm);
}

.catbox:hover {
    box-shadow: 0 20px 56px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* ── Hero image area ────────────────────── */
.catbox-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.catbox-hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.catbox-hero-graphic {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.catbox-hero-icon {
    font-size: 3.5rem;
    line-height: 1;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.catbox-hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.catbox-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 18px 22px;
    gap: 10px;
}

.catbox-title {
    font-family: var(--heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    flex: 1;
}

.catbox-title a {
    color: #fff;
    transition: color .2s;
}

.catbox-title a:hover { color: var(--accent); }

.catbox-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 3px 10px;
    flex-shrink: 0;
    align-self: flex-end;
}

/* ── Post list ──────────────────────────── */
.catbox-body {
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catbox-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    position: relative;
}

.catbox-row:hover {
    background: color-mix(in srgb, var(--accent, #6c63ff) 5%, transparent);
}

.catbox-row:last-of-type { border-bottom: none; }

.catbox-rank {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent, var(--purple));
    opacity: 0.7;
    line-height: 1;
}

.catbox-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catbox-row:hover .catbox-post-title { color: var(--accent, var(--purple)); }

.catbox-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.catbox-date {
    font-size: 0.72rem;
    color: var(--ink-3);
    white-space: nowrap;
}

.catbox-read {
    font-size: 0.68rem;
    color: var(--ink-3);
    white-space: nowrap;
}

.catbox-empty {
    padding: 20px 22px;
    font-size: 0.85rem;
    color: var(--ink-3);
    font-style: italic;
}

.catbox-seeall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent, var(--purple));
    border-top: 1px solid var(--border);
    transition: background .15s, gap .2s;
    margin-top: auto;
}

.catbox-seeall:hover {
    background: color-mix(in srgb, var(--accent, #6c63ff) 6%, transparent);
    gap: 14px;
}

/* ============================================================
   THUMBNAIL STRIP
============================================================ */
.thumbstrip-section {
    padding: 56px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.thumbstrip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tcard {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: transform .2s var(--ease), box-shadow .2s;
}

.tcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tcard-thumb {
    position: relative;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tcard-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.tcard-icon { font-size: 2rem; line-height: 1; }

.tcard-cat-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.9);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.tcard-body { padding: 12px 14px 14px; }

.tcard-title {
    font-family: var(--heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcard:hover .tcard-title { color: var(--purple); }

.tcard-date {
    font-size: 0.72rem;
    color: var(--ink-3);
}

/* ============================================================
   AUTHOR SPOTLIGHT
============================================================ */
.author-spotlight {
    padding: 64px 0;
}

.author-card-big {
    background: linear-gradient(135deg, #0d0d14 0%, #1a1035 60%, #0d1f35 100%);
    border-radius: 20px;
    padding: 44px 48px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
    position: relative;
    overflow: hidden;
}

.author-card-big::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(108,99,255,.18), transparent 70%);
    pointer-events: none;
}

.author-card-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(108,99,255,.25);
    object-fit: cover;
}

/* Når det er et rigtigt foto */
.author-card-avatar--photo {
    background: none;
}

.author-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    margin-bottom: 4px;
}

.author-card-name {
    font-family: var(--heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.author-card-bio {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 16px;
}

.author-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.author-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--teal);
    transition: color .2s;
}
.author-card-link:hover { color: #fff; }

.author-card-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    flex-shrink: 0;
}

.author-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-stat-n {
    font-family: var(--heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.author-stat span:last-child {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   MAGAZINE LAYOUT (3-col + featured panel)
============================================================ */
.magazine-section { padding: 64px 0; background: var(--bg); }

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

.mag-col-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 3-col sub-grid inside main */
.mag-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Featured top card (full width inside mag-col-main) */
.mag-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow .2s;
}

.mag-featured-card:hover { box-shadow: var(--shadow-lg); }

.mag-featured-thumb {
    aspect-ratio: unset;
    min-height: 240px;
    background: linear-gradient(135deg, #0d0d14, #2d1b69);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.mag-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mag-featured-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.mag-featured-title {
    font-family: var(--heading);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
}

.mag-featured-title a { color: var(--ink); }
.mag-featured-title a:hover { color: var(--purple); }

/* Small cards in 3-col */
.mag-mini-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.mag-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.mag-mini-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a35, #2d1b69);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
}

.mag-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mag-mini-body { padding: 14px 16px; }

.mag-mini-title {
    font-family: var(--heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin-top: 6px;
}

.mag-mini-title a { color: inherit; }
.mag-mini-card:hover .mag-mini-title a { color: var(--purple); }

/* Side panel */
.mag-side-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.mag-side-header {
    padding: 16px 20px;
    border-bottom: 2px solid var(--purple);
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 800;
    background: var(--bg);
}

.mag-side-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.mag-side-item:last-child { border-bottom: none; }
.mag-side-item:hover { background: var(--bg); }

.mag-side-thumb {
    width: 64px;
    min-width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--purple), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.mag-side-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mag-side-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

.mag-side-title a { color: inherit; }
.mag-side-item:hover .mag-side-title a { color: var(--purple); }

.mag-side-meta { font-size: 0.72rem; color: var(--ink-3); margin-top: 4px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .feed-grid { grid-template-columns: repeat(2, 1fr); }
    .pcard-wide { grid-column: span 1; flex-direction: column; }
    .pcard-wide .pcard-thumb { width: 100%; min-width: unset; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .thumbstrip-grid { grid-template-columns: repeat(4, 1fr); }
    .author-card-big { grid-template-columns: auto 1fr; }
    .author-card-stats { flex-direction: row; grid-column: 1 / -1; justify-content: center; }
    .mag-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .header-banner-slot { display: none; }
    .primary-nav li > a { padding: 0 11px; font-size: .82rem; }
}

@media (max-width: 900px) {
    .site-hero-banner { height: 320px; }
    .hero-brand { padding: 0 14px; }
    .hero-topbar { padding: 0 14px; }
    .hero-brand-name { font-size: 1.3rem; }
    .primary-nav { display: none; }
    .nav-toggle { display: flex; }
    .catgrid-2x2 { grid-template-columns: 1fr; }
    .thumbstrip-grid { grid-template-columns: repeat(2, 1fr); }
    .magazine-grid { grid-template-columns: 1fr; }
    .mag-featured-card { grid-template-columns: 1fr; }
    .mag-featured-thumb { min-height: 200px; }
    .mag-3col { grid-template-columns: repeat(3, 1fr); }
    .post-content-inner { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .header-wrap { grid-template-columns: auto 1fr; }
    .primary-nav { display: none; }
    .search-form { display: none; }
    .nav-toggle { display: flex; justify-self: end; }
    .author-card-big { grid-template-columns: 1fr; text-align: center; }
    .author-card-avatar { margin: 0 auto; }
    .author-card-tags { justify-content: center; }
    .author-card-stats { flex-direction: row; justify-content: center; }
}

@media (max-width: 640px) {
    .catgrid-2x2 { grid-template-columns: 1fr; }
    .thumbstrip-grid { grid-template-columns: repeat(2, 1fr); }
    .mag-3col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .stats-inner { gap: 6px; }
    .header-wrap { grid-template-columns: 1fr auto; }
    .catbox-hero { height: 160px; }
    .site-hero-banner { height: 260px; }
}
