/* ============================================================
   benkibyte - style.css
   ------------------------------------------------------------
   All visuell stil bor her. Fargene styres av variablene under,
   saa vil du endre tema bytter du bare verdiene i :root.
   Kommentarer er paa norsk. Lykke til med pirkingen! <3
   ============================================================ */

/* ---------- TEMA-VARIABLER (endre disse for nytt fargetema) ---------- */
:root {
  --bg-deep:    #1a0033;   /* moerk lilla bunn */
  --bg-mid:     #2d0a4e;   /* midt-lilla */
  --neon-pink:  #ff45c9;   /* signaturrosa */
  --neon-cyan:  #1cf0ff;   /* knall cyan */
  --neon-lime:  #b6ff3d;   /* giftig groenn */
  --neon-yellow:#ffe600;   /* gul highlight */
  --neon-orange:#ff7a00;
  --panel:      #0f0024;   /* bakgrunn i bokser */
  --panel-edge: #ff45c9;   /* kant rundt bokser */
  --text:       #eafff7;   /* lys tekst */
  --link:       #1cf0ff;
  --link-visit: #b6ff3d;
}

/* ---------- GRUNNLEGGENDE ---------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  /* Stjernehimmel-bakgrunn laget med rene CSS-gradienter (ingen bildefil noedvendig).
     Vil du heller ha en flislagt GIF: bytt 'background' under til
     background: url('assets/bg-tile.gif') repeat;  */
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 90px 80px, var(--neon-cyan), transparent),
    radial-gradient(1px 1px at 160px 50px, #fff, transparent),
    radial-gradient(2px 2px at 200px 120px, var(--neon-pink), transparent),
    radial-gradient(1px 1px at 50px 160px, #fff, transparent),
    linear-gradient(160deg, var(--bg-deep), var(--bg-mid));
  background-size: 220px 220px, 220px 220px, 220px 220px, 220px 220px, 220px 220px, 100% 100%;
  color: var(--text);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  font-size: 16px;
  line-height: 1.5;
  /* Egendefinert markoer (liten rosa pil i SVG, ingen ekstern fil) */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 2 L3 22 L9 16 L13 24 L17 22 L13 14 L21 14 Z' fill='%23ff45c9' stroke='%231cf0ff' stroke-width='1.5'/%3E%3C/svg%3E") 3 2, auto;
}

/* Pekefinger-markoer paa alt klikkbart (en liten gul stjerne) */
a, button, .clickable {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2 l2.5 7.5 H24 l-6 5 2.5 8 -6.5 -4.8 -6.5 4.8 2.5 -8 -6 -5 h7.5 Z' fill='%23ffe600' stroke='%23ff45c9' stroke-width='1.2'/%3E%3C/svg%3E") 14 14, pointer;
}

/* ---------- BREDDE / LAYOUT-RAMME ---------- */
.frame { max-width: 980px; margin: 0 auto; padding: 8px; }

/* ---------- MARQUEE TOPPBANNER ---------- */
.top-marquee {
  background: repeating-linear-gradient(
    45deg, var(--neon-pink) 0 14px, var(--neon-cyan) 14px 28px);
  border-top: 3px ridge var(--neon-yellow);
  border-bottom: 3px ridge var(--neon-yellow);
  color: #000;
  font-weight: bold;
  text-shadow: 1px 1px 0 #fff;
  padding: 4px 0;
  letter-spacing: 1px;
}

/* ---------- HEADER / LOGO ---------- */
.site-header { text-align: center; padding: 18px 8px 10px; }
.logo {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: clamp(40px, 9vw, 92px);
  margin: 0;
  letter-spacing: 2px;
  background: linear-gradient(90deg,
    var(--neon-pink), var(--neon-yellow), var(--neon-lime),
    var(--neon-cyan), var(--neon-pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hue-slide 6s linear infinite;
  filter: drop-shadow(3px 3px 0 #000);
}
@keyframes hue-slide { to { background-position: 300% 0; } }

.tagline { font-size: 14px; color: var(--neon-lime); margin: 2px 0 0; }
.tagline .blink { color: var(--neon-yellow); }

/* ---------- NAVIGASJON ---------- */
.navbar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin: 12px 0;
}
.navbar a {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(180deg, #ff8ad8, var(--neon-pink));
  border: 3px outset var(--neon-cyan);
  color: #14002e !important;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff;
  box-shadow: 3px 3px 0 #000;
}
.navbar a:hover {
  background: linear-gradient(180deg, var(--neon-cyan), #0bbcd1);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000;
}
.navbar a.current {
  background: linear-gradient(180deg, var(--neon-lime), #7ec000);
  border-style: inset;
}

/* ---------- HOVEDLAYOUT: innhold + sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }

/* ---------- BOKSER / PANELER ---------- */
.box {
  background: var(--panel);
  border: 3px ridge var(--panel-edge);
  box-shadow: 4px 4px 0 #000, inset 0 0 14px rgba(255,69,201,.25);
  margin-bottom: 14px;
}
.box h2, .box h3 {
  margin: 0;
  padding: 6px 10px;
  font-family: "Courier New", monospace;
  background: repeating-linear-gradient(
    90deg, var(--neon-cyan) 0 10px, #0bbcd1 10px 20px);
  color: #021018;
  text-shadow: 1px 1px 0 #fff;
  border-bottom: 2px solid var(--neon-pink);
}
.box .inner { padding: 12px 14px; }

/* Liten variant til sidebaren */
.widget h3 { font-size: 14px; }
.widget .inner { padding: 10px; font-size: 13px; }

/* ---------- TEKST / LENKER ---------- */
a { color: var(--link); }
a:visited { color: var(--link-visit); }
a:hover { color: var(--neon-yellow); }

h1, h2, h3 { line-height: 1.2; }
hr.fancy {
  border: 0; height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--neon-pink) 0 8px, var(--neon-yellow) 8px 16px);
  margin: 14px 0;
}

.blink { animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.rainbow-text {
  background: linear-gradient(90deg,
    var(--neon-pink), var(--neon-yellow), var(--neon-lime), var(--neon-cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* ---------- "UNDER CONSTRUCTION" SKILT (ren CSS, ingen GIF) ---------- */
.construction {
  display: inline-block;
  background: repeating-linear-gradient(
    45deg, #000 0 12px, var(--neon-yellow) 12px 24px);
  color: #000;
  padding: 6px 10px;
  font-weight: bold;
  border: 3px solid #000;
  text-shadow: 1px 1px 0 var(--neon-yellow);
  animation: wobble 1.2s ease-in-out infinite;
}
.construction span { background: #ffe600; padding: 2px 6px; border: 2px solid #000; }
@keyframes wobble { 50% { transform: rotate(-2deg); } }

/* ---------- 88x31 BADGES / BUTTONS ---------- */
.badge-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.badge88 {
  width: 88px; height: 31px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Courier New", monospace; font-size: 10px; font-weight: bold;
  border: 1px solid #000; text-align: center; line-height: 1.1;
  text-decoration: none; color: #000;
  box-shadow: 1px 1px 0 #000;
}

/* ---------- BESOEKSTELLER (odometer) ---------- */
.counter { display: inline-flex; gap: 2px; background: #000; padding: 4px; border: 2px inset #555; }
.counter .digit {
  font-family: "Courier New", monospace;
  font-size: 22px; font-weight: bold;
  color: var(--neon-lime);
  background: #001a00; padding: 1px 4px;
  text-shadow: 0 0 6px var(--neon-lime);
}

/* ---------- MUSIKKSPILLER ---------- */
.player .inner { text-align: center; }
.player .track-name {
  font-family: "Courier New", monospace;
  background: #000; color: var(--neon-cyan);
  padding: 4px; border: 2px inset #444;
  margin-bottom: 6px; white-space: nowrap; overflow: hidden;
}
.player .track-name span { display: inline-block; }
.player-controls { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; }
.player-controls button {
  font-family: "Courier New", monospace; font-weight: bold;
  background: linear-gradient(180deg, #fff, #bbb);
  border: 3px outset #ddd; padding: 4px 8px; color: #000;
}
.player-controls button:active { border-style: inset; }
/* Liten "equalizer"-animasjon */
.eq { display: flex; gap: 3px; justify-content: center; height: 26px; align-items: flex-end; }
.eq i { width: 5px; background: var(--neon-pink); display: inline-block; animation: eq 0.8s ease-in-out infinite; }
.eq i:nth-child(2){ animation-delay: .15s; background: var(--neon-cyan); }
.eq i:nth-child(3){ animation-delay: .3s; background: var(--neon-lime); }
.eq i:nth-child(4){ animation-delay: .45s; background: var(--neon-yellow); }
.eq i:nth-child(5){ animation-delay: .6s; background: var(--neon-pink); }
.eq.paused i { animation-play-state: paused; height: 4px !important; }
@keyframes eq { 0%,100%{ height: 4px; } 50%{ height: 24px; } }

/* ---------- CHATROOM (demo) ---------- */
.chat-log {
  height: 200px; overflow-y: auto;
  background: #000; border: 2px inset #444;
  padding: 8px; font-family: "Courier New", monospace; font-size: 13px;
}
.chat-log .msg { margin: 2px 0; }
.chat-log .who { font-weight: bold; }
.chat-form { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chat-form input[type=text] {
  flex: 1; min-width: 120px;
  background: #1a0033; color: var(--text);
  border: 2px inset var(--neon-pink); padding: 6px; font-family: inherit;
}
.chat-form input.name { flex: 0 0 90px; min-width: 0; }
.chat-form button {
  background: linear-gradient(180deg, var(--neon-lime), #7ec000);
  border: 3px outset var(--neon-lime);
  font-weight: bold; padding: 6px 12px; color: #0a1a00;
}
.chat-note {
  font-size: 11px; color: var(--neon-yellow);
  margin-top: 6px; border-top: 1px dashed var(--neon-pink); padding-top: 6px;
}

/* ---------- GJESTEBOK / EMBED-PLASSHOLDER ---------- */
.embed-slot {
  border: 3px dashed var(--neon-cyan);
  background: rgba(28,240,255,.08);
  padding: 16px; text-align: center;
  font-family: "Courier New", monospace; font-size: 13px;
}

/* ---------- WEBRING ---------- */
.webring { text-align: center; font-family: "Courier New", monospace; font-size: 13px; }
.webring .ring-nav { display: flex; justify-content: space-between; margin-top: 6px; }

/* ---------- SPARKLE / CURSOR TRAIL (settes av JS) ---------- */
.sparkle {
  position: fixed; pointer-events: none;
  width: 12px; height: 12px; z-index: 9999;
  font-size: 12px; user-select: none;
}

/* ---------- FOOTER ---------- */
.site-footer { text-align: center; margin: 18px 0 30px; font-size: 13px; color: var(--neon-cyan); }
.site-footer .clock { color: var(--neon-yellow); font-family: "Courier New", monospace; }

/* ---------- BLOGG-INNLEGG ---------- */
.post { border-bottom: 2px dashed var(--neon-pink); padding-bottom: 12px; margin-bottom: 12px; }
.post .date { font-family: "Courier New", monospace; color: var(--neon-lime); font-size: 12px; }
.post h3 { background: none; border: 0; color: var(--neon-yellow); padding: 0; margin: 4px 0; }
.mood { font-size: 12px; color: var(--neon-cyan); }

/* ---------- DIVERSE HJELPEKLASSER ---------- */
.center { text-align: center; }
.tiny { font-size: 11px; }
.pixelimg { image-rendering: pixelated; }
ul.cute { list-style: "*  "; padding-left: 22px; }
ul.cute li::marker { color: var(--neon-pink); }
