/* === The Cyber Sanctuary – Vaporwave GeoCities CSS === */

/* ===== GLOBAL BODY ===== */

body {
  margin: 0;
  padding: 0;
  color: #fefbff;
  font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  background-color: #050013;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255, 0, 200, 0.15), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(0, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #050013 0%, #120020 40%, #050013 100%);
  background-attachment: fixed;
}

.guestbook-body {
  background-image:
    radial-gradient(circle at 0% 100%, rgba(255, 153, 0, 0.2), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(0, 204, 255, 0.25), transparent 55%),
    linear-gradient(135deg, #03000a 0%, #1a0030 45%, #03000a 100%);
}

/* Scanline Overlay */

.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  z-index: -1;
}

/* Main Wrapper Frame */

.wrapper {
  max-width: 960px;
  margin: 24px auto 40px;
  padding: 12px 16px 24px;
  background: rgba(10, 0, 30, 0.92);
  border: 3px solid #ff00ff;
  box-shadow: 0 0 24px rgba(255, 0, 180, 0.8), 0 0 60px rgba(0, 255, 255, 0.6);
}

/* ===== HEADER ===== */

header {
  text-align: center;
  margin-bottom: 16px;
}

.site-title {
  padding: 8px 8px 4px;
  border-bottom: 2px ridge #ff66ff;
}

.title-glow {
  font-size: 32px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffe6ff;
  text-shadow:
    0 0 4px #fff,
    0 0 14px #ff00ff,
    0 0 28px #00ffff;
}

.subtitle {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ffb3ff;
  text-transform: lowercase;
}

/* ===== NAV ===== */

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.nav-bar a {
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #8000ff, #ff00aa);
  border: 2px outset #ffd6ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-bar a:hover {
  filter: brightness(1.2);
}

/* ===== PANELS ===== */

.panel {
  margin: 16px 0;
  padding: 12px 14px 16px;
  border: 2px ridge #ff99ff;
  background: linear-gradient(135deg, rgba(20, 0, 50, 0.98), rgba(50, 0, 80, 0.85));
}

.panel h2 {
  margin-top: 0;
  text-align: center;
  font-size: 20px;
  color: #ffddff;
  text-shadow: 0 0 6px #ff66ff;
}

.panel h3 {
  margin-top: 0;
  font-size: 16px;
  color: #ffd6ff;
}

.highlight {
  color: #ff99ff;
  text-shadow: 0 0 4px #ff66ff;
}

.highlight-link {
  color: #ff88ff;
  font-weight: bold;
}

.highlight-link:hover {
  color: #ffffff;
}

/* ===== BLINK ===== */

.blink {
  animation: blink 0.9s steps(1, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== ROOM LAYOUT ===== */

.room-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.room-column {
  flex: 1 1 260px;
  min-width: 0;
}

/* ===== GIF WALL ===== */

.gif-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  gap: 8px;
}

.gif-img {
  width: 100%;
  display: block;
  border: 2px solid #ff99ff;
  background: #000000;
  animation: glitchIn 1.1s ease-out both;
}

@keyframes glitchIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(1.05);
    filter: hue-rotate(40deg) saturate(2);
    clip-path: inset(0 0 90% 0);
  }
  20% {
    opacity: 0.4;
    transform: translate(-2px, 4px) skewX(-4deg);
    clip-path: inset(10% 0 60% 0);
  }
  40% {
    opacity: 0.7;
    transform: translate(3px, -2px) skewX(3deg);
    clip-path: inset(40% 0 20% 0);
  }
  60% {
    opacity: 0.9;
    transform: translate(-1px, 1px);
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: none;
  }
}

.gif-img:hover {
  box-shadow: 0 0 12px #ff66ff, 0 0 24px #00ffff;
  transform: translateY(-2px);
}

.hint {
  font-size: 11px;
  color: #ffbfff;
  margin-top: 6px;
}

/* ===== 88x31 BUTTONS ===== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}

.button88 {
  width: 88px;
  height: 31px;
  border: 1px solid #fff;
  font-size: 9px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #330066, #ff00aa);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-transform: uppercase;
}

.button88:hover {
  filter: brightness(1.2);
}

/* ===== LINKS LIST ===== */

.link-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 13px;
}

.link-list li {
  margin: 3px 0;
}

.link-list a {
  color: #a8ffff;
}

.link-list a:hover {
  color: #ffffff;
}

.bullet {
  color: #ff99ff;
  margin-right: 4px;
}

/* ============================================================
   VAPORWAVE GUESTBOOK (CommentBox.io version)
   ============================================================ */

.vapor-guestbook {
  position: relative;
  margin-top: 10px;
  padding: 14px 12px 16px;
  background: radial-gradient(circle at 0% 0%, rgba(255,0,200,0.3), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(0,255,255,0.3), transparent 55%),
              linear-gradient(135deg, #140031, #380054);
  border: 3px ridge #ff99ff;
  box-shadow:
    0 0 16px rgba(255,0,180,0.8),
    0 0 36px rgba(0,255,255,0.6);
  overflow: hidden;
}

.vapor-guestbook::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 2px;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.guestbook-header {
  text-align: center;
  margin-bottom: 8px;
}

.guestbook-title {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffe6ff;
  text-shadow:
    0 0 4px #fff,
    0 0 8px #ff00ff,
    0 0 18px #00ffff;
}

.guestbook-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: #ffbfff;
}

.guestbook-frame {
  position: relative;
  padding: 10px;
  border: 2px solid #ffccff;
  background: #fefbff;           /* light CRT-style screen */
  box-shadow:
    inset 0 0 8px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(255, 0, 200, 0.4);
  color: #000;                   /* default text color on the light area */
}

/* ===== COMMENTBOX.IO – FULL THEME ===== */

.commentbox {
  background: transparent !important;
  color: #ffe6ff !important;
  font-size: 13px !important;
}

.commentbox, 
.commentbox * {
  color: #ffe6ff !important;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif !important;
}

/* Inputs */
.commentbox textarea,
.commentbox input[type="text"],
.commentbox input[type="email"],
.commentbox input[type="url"] {
  background: rgba(10, 0, 40, 0.95) !important;
  border: 1px solid #ff99ff !important;
  color: #ffe6ff !important;
  padding: 6px !important;
}

.commentbox textarea:focus,
.commentbox input[type="text"]:focus,
.commentbox input[type="email"]:focus,
.commentbox input[type="url"]:focus {
  outline: none !important;
  box-shadow: 0 0 10px #ff66ff !important;
}

/* Comments */
.commentbox .comment,
.commentbox .cb-comment {
  background: rgba(20, 0, 50, 0.85) !important;
  border-left: 3px solid #ff66ff !important;
  margin: 8px 0 !important;
  padding: 8px 10px !important;
  color: #ffe6ff !important;
}

/* Names */
.commentbox .name,
.commentbox .cb-name {
  color: #a8ffff !important;
  font-weight: bold !important;
}

/* Dates */
.commentbox .date,
.commentbox .cb-date {
  color: #ffbfff !important;
  font-size: 11px !important;
}

/* Buttons */
.commentbox button {
  background: #ff66ff !important;
  color: #000 !important;
  border: none !important;
  padding: 6px 12px !important;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.commentbox button:hover {
  background: #00ffff !important;
  color: #000 !important;
  transform: translateY(-2px);
}

.guestbook-note {
  margin-top: 10px;
  font-size: 11px;
  color: #ffbfff;
  text-align: center;
}

/* ===== FRIEND SHRINE LAYOUT (individual shrine pages) ===== */

.shrine-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.shrine-left {
  flex: 0 0 220px;
  max-width: 260px;
}

.shrine-right {
  flex: 1 1 240px;
}

.shrine-img {
  width: 100%;
  border: 3px solid #ff99ff;
  box-shadow: 0 0 16px rgba(255, 0, 200, 0.7);
  display: block;
}

.shrine-tagline {
  font-style: italic;
  color: #ffbfff;
}

.shrine-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shrine-links a {
  padding: 4px 8px;
  font-size: 11px;
  text-decoration: none;
  color: #000;
  background: linear-gradient(135deg, #ff66ff, #00ffff);
  border: 2px groove #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shrine-links a:hover {
  filter: brightness(1.2);
}

.shrine-extra h3 {
  margin-top: 6px;
}

.shrine-list {
  list-style: none;
  padding-left: 0;
  font-size: 13px;
}

.shrine-list li {
  margin: 3px 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.badge {
  height: 31px;
  border: 1px solid #ffffff;
}

/* ===== FRIEND SHRINE GRID (hub page) ===== */

.shrine-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.friend-card {
  background: rgba(15,0,40,0.85);
  padding: 10px;
  border: 2px solid #ff99ff;
  box-shadow: 0 0 10px #ff00dd;
  text-align: center;
}

.friend-img {
  width: 100%;
  border: 2px solid #ff66ff;
  margin-bottom: 6px;
}

.friend-name {
  font-weight: bold;
  color: #ffe6ff;
  text-shadow: 0 0 4px #ff00ff;
  margin-bottom: 4px;
}

.friend-desc {
  font-size: 12px;
  color: #ffbfff;
  margin-bottom: 6px;
}

.friend-links a {
  color: #a8ffff;
  text-decoration: none;
}

.friend-links a:hover {
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
  .wrapper {
    margin: 12px 8px 24px;
    padding: 10px;
  }

  .title-glow {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .panel {
    padding: 10px 10px 12px;
  }

  .shrine-hero {
    flex-direction: column;
  }
}
