/* ====== Purple Jungle Retro Theme (MySpace-ish) ====== */

:root {
  --purple-dark: #140028;
  --purple-mid: #2a0750;
  --purple-light: #5a20b8;

  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  --radius: 14px;

  --neon-pink: #ff2fd1;
  --neon-cyan: #00e5ff;

  --maxw: 1040px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  color: #111;
  min-height: 100vh;
}

body {
  background: linear-gradient(to bottom, var(--purple-dark), var(--purple-mid), var(--purple-light));
  overflow-x: hidden;
  position: relative;
}

/* ====== Monkey Pattern Overlay (VISIBLE) ====== */
/* Uses a repeating SVG pattern (better than emoji tiling) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* Monkey face pattern, repeated */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3E%3Cg%20opacity='1'%3E%3C!--%20ears%20--%3E%3Cellipse%20cx='38'%20cy='70'%20rx='18'%20ry='22'%20fill='white'%20fill-opacity='0.18'/%3E%3Cellipse%20cx='122'%20cy='70'%20rx='18'%20ry='22'%20fill='white'%20fill-opacity='0.18'/%3E%3C!--%20head%20--%3E%3Ccircle%20cx='80'%20cy='80'%20r='34'%20fill='white'%20fill-opacity='0.18'/%3E%3C!--%20snout%20--%3E%3Cellipse%20cx='80'%20cy='94'%20rx='22'%20ry='16'%20fill='white'%20fill-opacity='0.12'/%3E%3C!--%20eyes%20--%3E%3Ccircle%20cx='68'%20cy='78'%20r='4'%20fill='white'%20fill-opacity='0.22'/%3E%3Ccircle%20cx='92'%20cy='78'%20r='4'%20fill='white'%20fill-opacity='0.22'/%3E%3C!--%20mouth%20--%3E%3Cpath%20d='M70%20102%20Q80%20110%2090%20102'%20stroke='white'%20stroke-opacity='0.22'%20stroke-width='3'%20fill='none'%20stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;

  /* medium visibility */
  opacity: 0.22;
}

/* ====== Floating Jungle Particles ====== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.18) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.18) 2px, transparent 3px),
    radial-gradient(circle at 40% 30%, rgba(255,255,255,0.16) 2px, transparent 3px),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.16) 2px, transparent 3px),
    radial-gradient(circle at 15% 25%, rgba(0,229,255,0.12) 2px, transparent 4px),
    radial-gradient(circle at 55% 85%, rgba(255,47,209,0.10) 2px, transparent 4px);

  animation: floatParticles 18s linear infinite;
  opacity: 0.9;
}

@keyframes floatParticles {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-220px); }
}

/* ====== Neon Gradient Border Frame (STATIC) ====== */
.glitter-frame {
  position: relative;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 1; /* above background overlays */
}

.glitter-frame::before {
  content: "";
  position: absolute;
  inset: -5px;                 /* medium thickness */
  border-radius: calc(var(--radius) + 5px);
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
  z-index: -1;
}

/* ====== HEADER WIDTH FIX ====== */
/* Make marquee + hero + footer match the same width as the main sections */
.marquee-wrap,
.hero,
.footer {
  width: min(100%, var(--maxw));
  margin-left: auto;
  margin-right: auto;
}

/* ====== Marquee bar ====== */
.marquee-wrap {
  margin-top: 18px;
  padding: 10px 14px;
}

marquee {
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #0b120c;
  text-transform: uppercase;
}

/* ====== Hero ====== */
.hero {
  margin-top: 14px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 0;
}

.hero-inner {
  padding: 26px 22px;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 6px, transparent 6px, transparent 12px);
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 4vw, 48px);
  color: #0b120c;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.7);
}

.tagline {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 18px;
  color: #2a0750;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glossy-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #08140b;
  background: linear-gradient(180deg, #ffffff, #ffe6fb 45%, #b7f7ff);
  border: 2px solid rgba(0,0,0,0.18);
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
  transform: translateY(0);
}

.glossy-btn:hover { filter: saturate(1.15) contrast(1.05); }
.glossy-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,0.18); }

/* ====== Layout ====== */
.page {
  padding: 0 16px 40px;
  position: relative;
  z-index: 1;
}

.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 16px 16px 18px;
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel p { line-height: 1.5; margin: 10px 0; }
.subtext { margin-top: 0; opacity: 0.85; }

/* ====== Bulletin Board News ====== */
.bulletin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,47,209,0.08), rgba(0,229,255,0.06));
  border: 2px solid rgba(0,0,0,0.12);
}

.note {
  padding: 12px 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.18);
  box-shadow: 0 8px 0 rgba(0,0,0,0.12);
  position: relative;
}

.note::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.note-1 { transform: rotate(-1deg);  background: #fff7b8; }
.note-2 { transform: rotate( 1deg);  background: #c9fff0; }
.note-3 { transform: rotate(-0.7deg); background: #e4d6ff; }
.note-4 { transform: rotate( 0.8deg); background: #d7ffbf; }

.note-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 12px;
  background: #111;
  color: #fff;
}

.date {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.75;
}

.note h3 {
  margin: 0 0 6px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.note p { margin: 0; }

/* ====== Videos ====== */
.video-stack { display: grid; gap: 14px; }

.video-card h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 14px;
}

.video-embed {
  overflow: hidden;
  border-radius: 12px;
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ====== Footer ====== */
.footer { margin-top: 6px; }

.footer-inner {
  padding: 14px 16px;
  text-align: center;
}

.footer p { margin: 6px 0; }
.tiny { font-size: 12px; opacity: 0.8; }

/* ====== Responsive ====== */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .bulletin { grid-template-columns: 1fr; }
}
