/* Strand-startsida för vetroal.se. FÖRHANDSVERSION.
   Bakgrundsfoto: Pexels Free License, foto av Enrique
   (pexels.com/photo/tropical-beach-with-palms-near-waving-blue-sea-4604439).
   Laddas EFTER style.css för att överskugga bakgrunden och komponera fönstren. */

/* ===== STRANDBAKGRUND (ersätter soluppgång-canvasen) ===== */
body.strand {
  background: #2b6b8f url(/bg/strand.jpg) center center / cover no-repeat;
  min-height: 100vh;
}

/* Ingen regn på en solig strand. Behållaren finns kvar så app7.js ej kraschar. */
.rain-container { display: none !important; }

/* Gamla fasta länk-lappar göms (länkarna finns nu i webbläsarfönstret) */
.fb-note.fb-fixed { display: none !important; }

/* Lösa dekorationer från soluppgångsversionen göms (Jesus flyttas in i fönster) */
.jesus-wrap,
.ascii-flowers,
.ascii-dove,
.ascii-cross,
.ascii-fish { display: none !important; }

/* ===== CENTRALT WEBBLÄSARFÖNSTER (old school) ===== */
.browser-win { box-shadow: 4px 6px 20px rgba(0,0,0,.45); }

.nav-menubar {
  display: flex;
  gap: 2px;
  background: var(--win95-bg);
  border-bottom: 1px solid var(--win95-dark);
  padding: 2px 4px;
  font-size: 11px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.nav-menubar span { padding: 1px 6px; cursor: default; }
.nav-menubar span:hover { background: var(--win95-blue); color: #fff; }

.nav-toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--win95-bg);
  border-bottom: 1px solid var(--win95-dark);
  padding: 4px;
}
.nav-tbtn {
  background: var(--win95-bg);
  border: 2px outset var(--win95-light);
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.nav-tbtn:active { border: 2px inset var(--win95-dark); }

.nav-address {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--win95-bg);
  border-bottom: 1px solid var(--win95-dark);
  padding: 4px 6px;
}
.nav-address label {
  font-size: 11px;
  color: #333;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.nav-url {
  flex: 1;
  background: #fff;
  border: 2px inset var(--win95-dark);
  padding: 2px 6px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.nav-lock { color: #0a7a2a; font-weight: bold; font-size: 10px; }
.nav-go {
  background: var(--win95-bg);
  border: 2px outset var(--win95-light);
  font-size: 11px;
  padding: 2px 10px;
  cursor: pointer;
}
.nav-go:active { border: 2px inset var(--win95-dark); }

.browser-win .window-content { padding: 0; max-height: none; }
.nav-page { background: #fff; }
.nav-page-inner {
  padding: 18px 22px;
  color: #111;
  font-family: "Times New Roman", Times, Georgia, serif;
}
.np-name {
  font-size: 30px;
  margin: 0 0 2px;
  color: #000080;
  font-family: "Times New Roman", Times, Georgia, serif;
  letter-spacing: .5px;
}
.np-tag {
  font-family: "Courier New", monospace;
  color: #0a7a2a;
  font-size: 13px;
  margin-bottom: 14px;
}
.np-intro { font-size: 14px; line-height: 1.55; margin: 0 0 16px; color: #222; }
.np-links-head {
  font-family: "Courier New", monospace;
  color: #a80f26;
  font-weight: bold;
  font-size: 13px;
  margin: 0 0 6px;
}
.np-links { margin: 0 0 16px; padding: 0; }
.np-links li { padding: 3px 0; font-size: 13px; }
.np-links a { color: #0b3a8a; text-decoration: underline; font-weight: bold; }
.np-links a:visited { color: #551a8b; }
.np-links a:hover { color: #a80f26; background: #ffffcc; }
.np-links .np-desc { color: #555; font-weight: normal; }
.np-foot {
  border-top: 1px solid #ccc;
  padding-top: 8px;
  font-size: 10px;
  color: #777;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.np-aktuellt {
  clear: both;
  border: 2px inset #808080;
  background: #fffbea;
  padding: 8px 10px;
  margin: 0 0 16px;
}
.np-akt-head {
  font-family: "Courier New", monospace;
  color: #a80f26;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
}
.np-aktuellt ul { margin: 0; padding: 0; }
.np-aktuellt li { font-size: 12px; padding: 2px 0; }
.np-aktuellt a { color: #0b3a8a; text-decoration: underline; font-weight: bold; }
.np-aktuellt a:visited { color: #551a8b; }
.np-aktuellt a:hover { color: #a80f26; background: #ffffcc; }
.nav-status {
  display: flex;
  justify-content: space-between;
  background: var(--win95-bg);
  border-top: 1px solid var(--win95-light);
  padding: 3px 6px;
  font-size: 10px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #333;
}
.nav-status span {
  border: 1px inset var(--win95-dark);
  padding: 1px 8px;
  background: var(--win95-bg);
}

/* ===== JESUS-FÖNSTER (jesus.exe) ===== */
.jesus-win .window-content {
  background: linear-gradient(#0b2a3a, #063a2c);
  padding: 12px 8px 8px;
  overflow: hidden;
  text-align: center;
}
.jesus-stage {
  position: relative;
  display: block;
  width: 100%;
}
.jesus-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}
.jesus-img.dancing {
  animation: jesusDance .5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.jesus-win .ascii-jesus {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 16px;
  line-height: 1;
  color: rgba(255,255,255,.92);
  white-space: pre;
  display: inline-block;
  transform-origin: top left;
}
.jesus-win .gifigan-tv {
  position: absolute;
  top: 38%;
  left: 52.5%;
  transform: translateX(-50%);
  width: 42px;
  height: 30px;
  z-index: 5;
}
.jesus-win .gifigan-belly video { opacity: .85; }
.jesus-heart {
  position: absolute;
  top: 31%;
  left: 52.5%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  z-index: 6;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(255,205,90,.85));
  pointer-events: none;
}
.jesus-ut-btn {
  display: inline-block;
  background: var(--win95-bg);
  border: 2px outset var(--win95-light);
  padding: 3px 14px;
  color: #000080;
  font-weight: bold;
  font-size: 11px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.jesus-ut-btn:active { border: 2px inset var(--win95-dark); }

/* ===== JESUS VÄDERKNAPPAR ===== */
.jesus-weather {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  border-radius: 2px;
}
.jesus-win .ascii-jesus { z-index: 2; }
.jesus-weather.sol {
  background: radial-gradient(circle at 72% 16%, rgba(255,225,150,.30), transparent 62%);
}
.jw-sun {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c4, #ffcf4d);
  box-shadow: 0 0 22px 8px rgba(255,210,80,.55);
}
.jw-drop {
  position: absolute;
  top: -10%;
  left: 0;
  width: 2px;
  height: 11px;
  background: linear-gradient(transparent, rgba(205,228,255,.95));
  animation: jwFall linear infinite;
}
.jw-flake {
  position: absolute;
  top: -10%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 3px rgba(255,255,255,.6);
  animation: jwFall linear infinite;
}
@keyframes jwFall { from { top: -10%; } to { top: 110%; } }
.jw-flash { position: absolute; inset: 0; background: #eaf2ff; opacity: 0; }
.jw-flash.go { animation: jwFlash 5s infinite; }
@keyframes jwFlash {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: .85; }
  92.5% { opacity: .1; }
  94% { opacity: .7; }
  96% { opacity: 0; }
}
.jesus-panel {
  margin-top: 6px;
  padding: 6px 6px 5px;
  background: rgba(4,20,16,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
}
.jesus-weather-btns {
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}
.jesus-actions { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.jw-btn {
  background: var(--win95-bg);
  border: 2px outset var(--win95-light);
  font-size: 10px;
  padding: 2px 7px;
  cursor: pointer;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.jw-btn:active, .jw-btn.active { border: 2px inset var(--win95-dark); background: #b8b8b8; }

/* Moln */
.jesus-weather.moln { background: linear-gradient(rgba(150,160,170,.16), rgba(120,130,140,.10)); }
.jw-cloud {
  position: absolute;
  left: 0;
  width: 38px;
  height: 14px;
  background: rgba(245,248,252,.9);
  border-radius: 12px;
  box-shadow: 13px -6px 0 -2px rgba(245,248,252,.9), -11px -4px 0 -3px rgba(245,248,252,.9), 0 0 10px 2px rgba(255,255,255,.3);
  animation: jwDrift linear infinite;
}
@keyframes jwDrift { from { transform: translateX(-60px); } to { transform: translateX(360px); } }

/* Dimma */
.jesus-weather.dimma { background: linear-gradient(rgba(205,210,214,.34), rgba(185,192,199,.26)); }
.jw-fog {
  position: absolute;
  inset: -12% -22%;
  background:
    radial-gradient(60% 42% at 30% 40%, rgba(232,235,238,.55), transparent 70%),
    radial-gradient(52% 36% at 72% 62%, rgba(222,227,232,.5), transparent 70%);
  animation: jwFogDrift 12s ease-in-out infinite alternate;
}
@keyframes jwFogDrift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }

/* Natt */
.jesus-weather.natt { box-shadow: inset 0 0 52px 18px rgba(8,12,34,.5); }
.jesus-weather.natt .jw-sun { background: radial-gradient(circle, #eef2ff, #aeb8d8); box-shadow: 0 0 16px 5px rgba(170,195,255,.5); }

/* Live-synk rad */
.jw-caption { display: block; text-align: center; margin-top: 5px; font-size: 9px; color: #cfe3ff; font-family: "Courier New", monospace; min-height: 11px; }

/* ===== PROJEKT-TV ===== */
.tv-win .window-content.tv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #0b1a22;
  padding: 10px;
}
.crt {
  display: block;
  background: linear-gradient(#5a5048, #3a332e);
  border-radius: 10px;
  padding: 7px 7px 4px;
  box-shadow: inset 0 0 0 2px #2a2420, 0 2px 4px rgba(0,0,0,.5);
  text-decoration: none;
}
.crt-screen {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  border: 2px inset #777;
}
.crt-screen video, .crt-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.10));
  box-shadow: inset 0 0 14px rgba(0,0,0,.55);
}
.crt-label {
  display: block;
  text-align: center;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #ffd98a;
  font-family: "Courier New", monospace;
  font-weight: bold;
}
.crt:hover .crt-screen { box-shadow: 0 0 8px #33ff99; border-color: #33ff99; }

/* ===== OBLAT (mata Jesus) ===== */
.jesus-feed { margin: 4px 0 2px; }
.jw-oblat {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #e8e2cf);
  border: 1px solid #cbc3a8;
  transform: translateX(-50%);
  z-index: 9;
  animation: jwOblat 1.6s ease-in forwards;
}
@keyframes jwOblat {
  0% { opacity: 0; transform: translate(-50%, -14px) scale(.7); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 7px) scale(.8); }
}

/* ===== WEBBLÄSAR-CHROME, putsat ===== */
.browser-win {
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  box-shadow: 4px 6px 20px rgba(0,0,0,.45), inset 1px 1px 0 #fff;
}
.browser-win .window-titlebar { padding: 3px 5px; }
.nav-titleicon { width: 14px; height: 14px; object-fit: contain; vertical-align: -3px; margin-right: 5px; }
.nav-menubar {
  padding: 3px 6px;
  border-bottom: 1px solid #fff;
  box-shadow: inset 0 -1px 0 #808080;
}
.nav-menubar span { padding: 1px 7px; border-radius: 2px; }
.nav-toolbar {
  gap: 2px;
  padding: 4px 6px;
  border-bottom: 1px solid #fff;
  box-shadow: inset 0 -1px 0 #808080;
  align-items: center;
}
.nav-tbtn {
  border: 2px solid transparent;
  background: transparent;
  padding: 3px 9px;
  border-radius: 2px;
}
.nav-tbtn:hover { border-color: #fff #808080 #808080 #fff; background: var(--win95-bg); }
.nav-tbtn:active { border-color: #808080 #fff #fff #808080; background: #b8b8b8; }
.nav-logo {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 2px inset #808080;
  overflow: hidden;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; animation: navThrob 3s ease-in-out infinite; }
@keyframes navThrob {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.12); filter: brightness(1.25); }
}
.nav-address { padding: 5px 6px; border-bottom: 1px solid #fff; box-shadow: inset 0 -1px 0 #808080; }
.nav-favicon { width: 14px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.nav-status { padding: 3px 6px; }
.nav-status span { padding: 1px 10px; }

/* Porträtt i webbläsaren (flödar, bevarar proportioner) */
.np-photo { float: right; width: 150px; margin: 2px 0 10px 14px; }
.np-photo img { display: block; width: 100%; height: auto; border: 1px solid #888; background: #fff; padding: 4px; box-shadow: 2px 3px 7px rgba(0,0,0,.25); }
.np-photo figcaption { text-align: center; font-size: 10px; color: #777; margin-top: 3px; font-family: "Courier New", monospace; }

/* ===== DJUP OCH CRT-LIV (polish) ===== */
.tv-win, .jesus-win {
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  box-shadow: 4px 6px 18px rgba(0,0,0,.42), inset 1px 1px 0 #fff;
}
.crt { position: relative; }
.crt::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #33ff66;
  box-shadow: 0 0 5px #33ff66;
  z-index: 3;
}
.crt-screen::after {
  background:
    repeating-linear-gradient(rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.12));
}
.nav-logo img { animation: none; }


/* ===== SKALA HELA 1280-SKRIVBORDET TILL SMALA SKÄRMAR (identiskt överallt) ===== */
/* Behållaren #fit är 1280 bred och krymps med transform:scale av strand_init.js */
/* när fönstret är smalare än 1280, så kompositionen ser exakt likadan ut, bara mindre. */
body.strand { overflow: hidden; }
#fit { transform-origin: top left; }
