/* =========================================
   VERNGARD — Blogg CSS
   Stil: Mørk tech / editorial gaming
   ========================================= */

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #16161f;
  --surface: #1a1a25;
  --surface-2: #22222f;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);

  --accent: #e8ff47;         /* Neon gul-grønn */
  --accent-rgb: 232, 255, 71;
  --accent-2: #ff4d6d;       /* Rød for gaming */
  --accent-3: #4dffc3;       /* Cyan for AI */
  --accent-4: #7b6cff;       /* Lilla for PC */

  --text: #f0f0f8;
  --text-muted: #7a7a9a;
  --text-dim: #3a3a5c;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NOISE TEXTURE */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--text-muted); }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}
.logo-bracket { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mobile-menu a:last-child { border-bottom: none; }

/* =========================================
   HERO
   ========================================= */
.hero {
  padding-top: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,255,71,0.08) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232,255,71,0.8);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.9;
  margin-bottom: 28px;
}
.hero-title span {
  display: block;
  animation: fadeUp 0.8s ease both;
}
.line-1 { font-size: clamp(4rem, 12vw, 9rem); color: var(--accent-2); animation-delay: 0.1s; }
.line-2 { font-size: clamp(3rem, 9vw, 7rem); color: var(--text); animation-delay: 0.2s; }
.line-3 { font-size: clamp(3rem, 9vw, 7rem); color: var(--accent-3); animation-delay: 0.3s; }
.line-4 { font-size: clamp(4rem, 12vw, 9rem); color: var(--accent-4); animation-delay: 0.4s; }

.hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.8s ease 0.6s both;
}
.scroll-hint { opacity: 0.4; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TICKER */
.hero-ticker {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary:hover {
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,255,71,0.3);
}

/* =========================================
   SECTION STYLES
   ========================================= */
.section-label {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* =========================================
   FEATURED GRID
   ========================================= */
.featured {
  padding: 80px 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}
.card-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.card-img-wrap { position: relative; }
.card-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card--big .card-img { height: 280px; }
.card--small .card-img { height: 120px; }

.placeholder-img { background: var(--surface-2); }
.gaming-bg { background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 50%, #1a0010 100%); }
.ai-bg { background: linear-gradient(135deg, #0a0a1a 0%, #0a1a2d 50%, #001a1a 100%); }
.ai-bg2 { background: linear-gradient(135deg, #0a1a10 0%, #0f2d1a 50%, #001a0a 100%); }
.pc-bg { background: linear-gradient(135deg, #0f0a1a 0%, #1a0f2d 50%, #100010 100%); }

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
  filter: grayscale(0.3);
}
.card--small .placeholder-icon { font-size: 1.8rem; }

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(10,10,15,0.8);
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  color: var(--text-muted);
}

.card-body { padding: 20px; }
.card--big .card-body { padding: 28px; }

.card-meta { margin-bottom: 10px; font-size: 0.7rem; }

.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}
.card--big .card-title { font-size: 1.4rem; margin-bottom: 16px; }
.card--small .card-title { font-size: 0.95rem; margin-bottom: 8px; }

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 12px; }
.arrow { transition: transform var(--transition); }
.card-link:hover .arrow { transform: translateX(4px); }

/* =========================================
   CATEGORY SECTIONS
   ========================================= */
.cat-section { padding: 60px 0; }
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.cat-label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-label h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
}
.cat-icon { font-size: 1.6rem; }
.see-all {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}
.see-all:hover { color: var(--accent); }

/* ARTICLE LIST */
.article-list { display: flex; flex-direction: column; gap: 0; }
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.list-item:hover { padding-left: 8px; border-color: var(--border-bright); }
.list-item:hover .list-arrow { color: var(--accent); transform: translateX(4px); }

.list-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.list-tag.gaming { background: rgba(255,77,109,0.12); color: var(--accent-2); border: 1px solid rgba(255,77,109,0.2); }
.list-tag.ai { background: rgba(77,255,195,0.12); color: var(--accent-3); border: 1px solid rgba(77,255,195,0.2); }
.list-tag.pc { background: rgba(123,108,255,0.12); color: var(--accent-4); border: 1px solid rgba(123,108,255,0.2); }

.list-body { flex: 1; }
.list-body h3 { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.list-body h3 a:hover { color: var(--accent); }
.list-meta { margin-top: 4px; }
.list-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

/* DIVIDER */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}
.section-divider .mono {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  white-space: nowrap;
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter {
  padding: 80px 0;
  margin: 40px 0;
  position: relative;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,255,71,0.04) 0%, rgba(77,255,195,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.nl-label {
  color: var(--accent);
  margin-bottom: 16px;
}
.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.newsletter-inner p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9rem;
}
.nl-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.nl-form input {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.nl-form input:focus { border-color: var(--accent); }
.nl-form input::placeholder { color: var(--text-muted); }
.nl-confirm {
  display: none;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.nl-confirm.show { display: block; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand .logo { font-size: 1.8rem; margin-bottom: 8px; }
.footer-tagline { margin-top: 8px; opacity: 0.5; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  opacity: 0.4;
}

/* =========================================
   ARTICLE PAGE
   ========================================= */
.article-hero {
  padding: 120px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.article-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.article-meta {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta span { font-size: 0.75rem; }

.article-img {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 100%);
  margin: 48px 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}
.article-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.article-body strong { color: var(--text); }
.article-body .highlight {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: rgba(232,255,71,0.04);
  margin: 32px 0;
  font-style: italic;
  color: var(--text);
}

/* =========================================
   OM OSS PAGE
   ========================================= */
.page-hero {
  padding: 140px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.about-section h2 { font-size: 1.6rem; margin-bottom: 16px; }
.about-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .featured-grid {
    grid-template-columns: 1fr;
  }
  .hero-title { }
  .line-1 { font-size: clamp(3rem, 15vw, 6rem); }
  .line-2 { font-size: clamp(2.2rem, 11vw, 5rem); }
  .line-3 { font-size: clamp(2.2rem, 11vw, 5rem); }
  .line-4 { font-size: clamp(3rem, 15vw, 6rem); }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .nl-form { flex-direction: column; }
  .nl-form input { min-width: unset; width: 100%; }
  .btn-primary { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content { padding: 60px 24px 32px; }
  .cat-label h2 { font-size: 1.6rem; }
  .list-item { gap: 10px; }
  .list-tag { display: none; }
}
