/* =========================================================
   Y2KAero — Global Styles (shared across all pages)
   ========================================================= */
@font-face {
  font-family: "Cordata";
  src: url('fonts/Px437_Cordata_PPC-400.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* font-family: "Cordata", monospace; */
  font-family: monospace;
  color: #08243f;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .6), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(180, 255, 120, .5), transparent 45%),
    linear-gradient(180deg, #36c1f0 0%, #6fd6ff 35%, #bff0a8 75%, #7ec850 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.4;
}

a {
  text-decoration: underline;
}

/* More prominent bubbles overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, .7) 5px, transparent 6px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .6) 8px, transparent 9px),
    radial-gradient(circle at 40% 75%, rgba(255, 255, 255, .55) 6px, transparent 7px),
    radial-gradient(circle at 88% 60%, rgba(255, 255, 255, .6) 4px, transparent 5px),
    radial-gradient(circle at 55% 40%, rgba(255, 255, 255, .5) 7px, transparent 8px);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 950px;
  margin: 0 auto;
  padding: 8px;
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  text-align: center;
  margin: 6px 0;
  padding: 10px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(200, 235, 255, .6));
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(8, 36, 63, .4), inset 0 2px 6px #fff;
  overflow: hidden;
}

.header-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  pointer-events: none;
}

.logo {
  position: relative;
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #00d0ff, #0072ff 50%, #8a5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 3px rgba(255, 255, 255, .8);
}

.sparkle {
  -webkit-text-fill-color: initial;
  color: #ffd84d;
}

.tagline {
  position: relative;
  margin: 3px 0 0;
  color: #0a4d8c;
  font-size: 11px;
}

/* ---------- Layout (3-column) ---------- */
.layout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sidebar-left {
  flex: 0 0 140px;
}

.content {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-right {
  flex: 0 0 140px;
}

/* ---------- Window ---------- */
.window {
  margin-bottom: 8px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 14px rgba(8, 36, 63, .25), inset 0 2px 6px rgba(255, 255, 255, .8);
  overflow: hidden;
}

.window-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 250, 255, .88));
}

.window-title {
  position: relative;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, #0088cc, #0066cc 50%, #004499);
  border-bottom: 2px solid rgba(255, 255, 255, .4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  overflow: hidden;
}

.window-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  pointer-events: none;
}

.window-body {
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
}

.window-body.center {
  text-align: center;
}

.window-body p {
  margin: 0 0 6px;
  color: #08243f;
}

.window-body-transparent {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

/* ---------- Sidebar navigation ---------- */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: bold;
  font-size: 11px;
  color: #08243f;
  padding: 5px 8px;
  border-radius: 5px;
  border: 2px outset #99ccff;
  background: linear-gradient(180deg, #e8f4ff, #d8e8f8);
  transition: all .15s ease;
}

.sidebar-nav a:hover {
  background: linear-gradient(180deg, #0066cc, #004499);
  color: #fff;
  border-style: inset;
}

/* ---------- Small text ---------- */
.small {
  font-size: 11px;
  color: #0a4d8c;
}

/* ---------- Counter (Y2K LED style) ---------- */
.counter {
  display: inline-block;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  color: #00ff00;
  background: linear-gradient(180deg, #001a00, #000a00);
  padding: 3px 8px;
  border: 2px inset #003300;
  border-radius: 3px;
  box-shadow: 0 0 6px #00ff00, inset 0 0 3px rgba(0, 255, 0, .3);
}

/* ---------- Equalizer ---------- */
.eq {
  display: flex;
  gap: 3px;
  height: 16px;
  align-items: flex-end;
  margin-top: 4px;
}

.eq span {
  width: 5px;
  background: linear-gradient(180deg, #ff6600, #ffcc00);
  border: 1px solid #cc6600;
  border-radius: 2px;
  animation: bounce 1s infinite ease-in-out;
}

.eq span:nth-child(2) { animation-delay: .2s }
.eq span:nth-child(3) { animation-delay: .4s }
.eq span:nth-child(4) { animation-delay: .6s }
.eq span:nth-child(5) { animation-delay: .8s }

@keyframes bounce {
  0%, 100% { height: 4px }
  50% { height: 18px }
}

/* ---------- Archive ---------- */
.archive {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.archive a {
  color: #0066cc;
  text-decoration: underline;
}

.archive a:hover {
  text-decoration: underline;
  color: #ff6600;
}

/* ---------- Badges (Y2K style) ---------- */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  padding: 2px 6px;
  margin: 2px;
  background: linear-gradient(180deg, #ffd84d, #ff9d2f);
  border: 2px outset #ffe680;
  border-radius: 3px;
}

.badge.alt {
  background: linear-gradient(180deg, #ff6b9d, #c44569);
  border-color: #ff9dbf;
}

/* ---------- Post meta ---------- */
.meta {
  font-size: 10px;
  color: #666;
  border-bottom: 1px dashed #99ccff;
  padding-bottom: 3px;
  margin-top: 0;
}

/* ---------- Aero button (Y2K style) ---------- */
.aero-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #0066cc, #004499);
  border: 2px outset #99ccff;
  border-radius: 3px;
  cursor: pointer;
}

.aero-btn:hover {
  background: linear-gradient(180deg, #0077dd, #0055aa);
}

/* ---------- About ---------- */
.about {
  display: flex;
  gap: 8px;
  align-items: center;
}

.avatar {
  width: 128px;
  height: 128px;
  background: linear-gradient(145deg, #d4e8f5 0%, #a8c8e0 30%, #7ba8c8 70%, #5a8aaa 100%);
  border-radius: 50%;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .2),
    inset 0 2px 10px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(90, 138, 170, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.avatar::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 15%;
  width: 70%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

/* ---------- Links ---------- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li {
  margin-bottom: 4px;
}

.links a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
}

.links a:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* ---------- Form ---------- */
form label {
  display: block;
  font-size: 11px;
  color: #0a4d8c;
  margin-bottom: 4px;
}

form input,
form textarea {
  width: 100%;
  padding: 5px;
  margin-top: 2px;
  border: 2px inset #999;
  background: #fff;
  color: #000;
  font-size: 12px;
}

/* ---------- Guestbook ---------- */
.guestbook {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 12px;
}

.guestbook li {
  padding: 5px 8px;
  margin-bottom: 5px;
  background: linear-gradient(180deg, #e8f4ff, #d8e8f8);
  border-radius: 4px;
  border: 1px solid #99ccff;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  margin-top: 8px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(200, 235, 255, .6));
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(8, 36, 63, .3);
}

.footer-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd84d, transparent);
  margin-bottom: 6px;
}

.footer p {
  margin: 3px 0;
  color: #0a4d8c;
  font-size: 11px;
}

.footer a {
  color: #0066cc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---------- Effects ---------- */
.blink {
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

/* ---------- Responsive ---------- */
@media (max-width: 850px) {
  .layout {
    flex-direction: column;
  }

  .sidebar-left,
  .sidebar-right {
    width: 100%;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .page {
    padding: 6px;
  }

  .logo {
    font-size: 28px;
  }
}
