/* ================================================
   WOKETOWN.CSS — retro 2000s/2010s MySpace vibes
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Courier+Prime&display=swap');

:root {
  --hot-pink: #ff69b4;
  --electric-purple: #bf00ff;
  --cyber-blue: #00cfff;
  --lime-green: #39ff14;
  --sunset-orange: #ff6b35;
  --golden-yellow: #ffd700;
  --rainbow-1: #ff0000;
  --rainbow-2: #ff7700;
  --rainbow-3: #ffff00;
  --rainbow-4: #00cc00;
  --rainbow-5: #0000ff;
  --rainbow-6: #8b00ff;
  --bg-dark: #0a0010;
  --bg-mid: #120020;
  --panel-bg: rgba(20, 0, 40, 0.92);
  --panel-border: #bf00ff;
  --text-main: #f0e0ff;
  --text-dim: #a080c0;
  --glow-pink: 0 0 10px #ff69b4, 0 0 20px #ff69b4;
  --glow-purple: 0 0 10px #bf00ff, 0 0 20px #bf00ff;
  --glow-blue: 0 0 10px #00cfff, 0 0 20px #00cfff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(191,0,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,207,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255,105,180,0.06) 0%, transparent 60%);
  color: var(--text-main);
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0010; }
::-webkit-scrollbar-thumb { background: var(--electric-purple); border-radius: 4px; }

/* ── Rainbow text utility ──────────────────────── */
.rainbow-text {
  background: linear-gradient(90deg,
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3),
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 4s linear infinite;
  background-size: 200% auto;
}

@keyframes rainbow-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Navbar ────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 0, 20, 0.96);
  border-bottom: 2px solid var(--electric-purple);
  box-shadow: 0 2px 20px rgba(191, 0, 255, 0.5);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
}

#navbar .logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

#navbar .nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

#navbar .nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

#navbar .nav-links a:hover,
#navbar .nav-links a.active {
  color: var(--hot-pink);
  border-color: var(--hot-pink);
  background: rgba(255,105,180,0.1);
  text-shadow: var(--glow-pink);
}

#navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Layout ────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Panel / Card ──────────────────────────────── */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(191,0,255,0.2);
}

.panel-title {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--hot-pink);
  text-shadow: var(--glow-pink);
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(191,0,255,0.3);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric-purple), var(--hot-pink));
  color: white;
  box-shadow: 0 0 10px rgba(191,0,255,0.4);
}
.btn-primary:hover {
  box-shadow: var(--glow-purple);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--cyber-blue);
  border: 1px solid var(--cyber-blue);
}
.btn-secondary:hover {
  background: rgba(0,207,255,0.1);
  box-shadow: var(--glow-blue);
}

.btn-danger {
  background: transparent;
  color: #ff4444;
  border: 1px solid #ff4444;
}
.btn-danger:hover { background: rgba(255,68,68,0.1); }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; }

/* ── Forms ─────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(191,0,255,0.4);
  border-radius: 4px;
  color: var(--text-main);
  padding: 8px 12px;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 8px rgba(255,105,180,0.3);
}

.form-group textarea { min-height: 80px; }

.char-count {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 2px;
}

.char-count.warning { color: var(--sunset-orange); }
.char-count.danger { color: #ff4444; }

/* ── Post card ─────────────────────────────────── */
.post-card {
  background: rgba(20, 0, 40, 0.7);
  border: 1px solid rgba(191,0,255,0.3);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: rgba(191,0,255,0.6);
  box-shadow: 0 0 12px rgba(191,0,255,0.15);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.2);
}

.avatar-lg {
  width: 60px;
  height: 60px;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  color: white;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
}

.post-meta a {
  color: var(--hot-pink);
  text-decoration: none;
  font-weight: bold;
}
.post-meta a:hover { text-decoration: underline; }

.post-meta .username { color: var(--text-dim); font-size: 12px; }
.post-meta .time { color: var(--text-dim); font-size: 11px; }

.post-content {
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}

.post-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 12px;
  font-family: 'Courier Prime', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.action-btn:hover { color: var(--hot-pink); background: rgba(255,105,180,0.1); }
.action-btn.liked { color: var(--hot-pink); }
.action-btn.liked:hover { color: var(--text-dim); }

/* ── Compose box ───────────────────────────────── */
#compose-box {
  margin-bottom: 20px;
}

/* ── Alert / Toast ─────────────────────────────── */
.alert {
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
  border: 1px solid;
}
.alert-error { background: rgba(255,0,0,0.1); border-color: #ff4444; color: #ff8888; }
.alert-success { background: rgba(57,255,20,0.1); border-color: var(--lime-green); color: var(--lime-green); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--electric-purple);
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: var(--glow-purple);
  z-index: 9999;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── User profile panel ────────────────────────── */
.profile-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin: 12px 0;
}

.stat { text-align: center; }
.stat-num {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: var(--hot-pink);
  display: block;
}
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }

/* ── Hero / Landing ────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 5vw, 42px);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero p {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ── Marquee ───────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: rgba(191,0,255,0.1);
  border-top: 1px solid rgba(191,0,255,0.3);
  border-bottom: 1px solid rgba(191,0,255,0.3);
  padding: 4px 0;
  margin-bottom: 20px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--lime-green);
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── Divider ───────────────────────────────────── */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--electric-purple), var(--hot-pink), var(--cyber-blue), transparent);
  border: none;
  margin: 20px 0;
}

/* ── Loading ───────────────────────────────────── */
.loading {
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
  font-family: 'VT323', monospace;
  font-size: 20px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ── Hidden ────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Glitch title effect ───────────────────────── */
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--hot-pink), -2px 0 var(--cyber-blue); }
  25% { text-shadow: -2px 0 var(--hot-pink), 2px 0 var(--cyber-blue); }
  50% { text-shadow: 2px 2px var(--electric-purple), -2px -2px var(--lime-green); }
  75% { text-shadow: -2px 2px var(--hot-pink), 2px -2px var(--cyber-blue); }
  100% { text-shadow: 2px 0 var(--hot-pink), -2px 0 var(--cyber-blue); }
}

.glitch {
  animation: glitch 3s ease-in-out infinite;
}

/* ── Pride flag bar ────────────────────────────── */
.pride-bar {
  height: 6px;
  background: linear-gradient(90deg,
    #ff0000 0%, #ff0000 16.6%,
    #ff7700 16.6%, #ff7700 33.2%,
    #ffff00 33.2%, #ffff00 49.8%,
    #00cc00 49.8%, #00cc00 66.4%,
    #0000ff 66.4%, #0000ff 83%,
    #8b00ff 83%, #8b00ff 100%
  );
}

/* ── Tabs ──────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(191,0,255,0.3);
  margin-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  padding: 8px 16px;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--hot-pink);
  border-bottom-color: var(--hot-pink);
}

.tab-btn:hover { color: var(--hot-pink); }

/* ── Trending / sidebar items ──────────────────── */
.sidebar-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(191,0,255,0.15);
  font-size: 13px;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item a {
  color: var(--cyber-blue);
  text-decoration: none;
}
.sidebar-item a:hover { color: var(--hot-pink); text-decoration: underline; }

/* ── Reply indent ──────────────────────────────── */
.reply-indent {
  border-left: 2px solid rgba(191,0,255,0.4);
  padding-left: 12px;
  margin-left: 8px;
}

/* ── Cursor blink ──────────────────────────────── */
.cursor::after {
  content: '█';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── Stars background ──────────────────────────── */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--opacity); }
}

/* ── Content above stars ───────────────────────── */
#navbar, .container, .hero { position: relative; z-index: 1; }

/* ── Page transition ───────────────────────────── */
.page { animation: fade-in 0.25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
