/* ==============================================================
   GAME//LEAKS - Classified Cyberpunk Dark Design System
   High Speed, OLED Black (#06070a), Neon Glow Accents
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #06070a;
  --bg-surface: #0e111a;
  --bg-card: #131722;
  --bg-card-hover: #181d2c;
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 240, 255, 0.35);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.25);
  --neon-green: #00ff88;
  --neon-amber: #ffaa00;
  --neon-red: #ff3366;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 51, 102, 0.04) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}

/* Classified Top Banner */
.classified-banner {
  background: linear-gradient(90deg, #18090d, #2a0813, #18090d);
  border-bottom: 1px solid rgba(255, 51, 102, 0.35);
  color: #ff6b8b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.classified-banner .badge-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--neon-red);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--neon-red);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Navbar */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-glitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00f0ff, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-mono);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.logo-badge {
  font-size: 0.65rem;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Neon buttons */
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f0ff, #00a8ff);
  color: #040914;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.btn-cyber-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
  filter: brightness(1.1);
}

.btn-cyber-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-cyber-outline:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
}

/* Hero Section */
.hero-box {
  max-width: 1360px;
  margin: 28px auto 0 auto;
  padding: 0 20px;
}

.hero-content {
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.85), rgba(19, 23, 34, 0.6));
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 720px;
  line-height: 1.5;
}

/* Quick Stats Bar */
.stats-strip {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-item strong {
  color: var(--neon-cyan);
}

/* Filter Controls Bar */
.filter-section {
  max-width: 1360px;
  margin: 24px auto 0 auto;
  padding: 0 20px;
}

.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 10px 14px 10px 42px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

/* Pills */
.pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.14);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* Tag Strip */
.tag-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tag-strip::-webkit-scrollbar {
  height: 4px;
}

.game-tag-pill {
  background: rgba(19, 23, 34, 0.8);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
}

.game-tag-pill:hover,
.game-tag-pill.active {
  background: #1e2638;
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
}

/* Global Spoiler Toggle */
.global-spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.25);
  color: #ff85a1;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.global-spoiler-toggle:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--neon-red);
}

.global-spoiler-toggle.revealed-all {
  background: rgba(0, 255, 136, 0.12);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

/* Feed Grid */
.feed-container {
  max-width: 1360px;
  margin: 24px auto 60px auto;
  padding: 0 20px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}

/* Leak Card */
.leak-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.leak-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 240, 255, 0.08);
}

.leak-card-header {
  padding: 16px 18px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.leak-game-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Credibility Badges */
.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cred-badge.confirmed {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.cred-badge.rumor {
  background: rgba(255, 170, 0, 0.1);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.cred-badge.insider {
  background: rgba(255, 51, 102, 0.12);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.35);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Media & Spoiler Container */
.media-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  background: #090b10;
  overflow: hidden;
  cursor: pointer;
}

.media-element,
.media-iframe,
.media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Spoiler Blur State */
.media-wrapper.is-spoiler-blurred .media-element,
.media-wrapper.is-spoiler-blurred .media-iframe,
.media-wrapper.is-spoiler-blurred .media-video {
  filter: blur(28px) brightness(0.4) saturate(0.8);
  transform: scale(1.08);
  user-select: none;
  pointer-events: none !important;
}

.media-wrapper:not(.is-spoiler-blurred) .media-iframe,
.media-wrapper:not(.is-spoiler-blurred) .media-video {
  pointer-events: auto;
}

.media-type-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid var(--border-dim);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Spoiler Overlay Curtain */
.spoiler-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(6, 7, 10, 0.5);
  backdrop-filter: blur(8px);
  z-index: 5;
  transition: all 0.3s ease;
}

.media-wrapper.is-spoiler-blurred .spoiler-overlay {
  display: flex;
}

.spoiler-hazard-box {
  background: rgba(20, 8, 12, 0.85);
  border: 1px solid var(--neon-red);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 85%;
  animation: glow-pulse 2.2s infinite;
}

@keyframes glow-pulse {
  0%, 100% { border-color: rgba(255, 51, 102, 0.8); box-shadow: 0 0 16px rgba(255, 51, 102, 0.25); }
  50% { border-color: rgba(255, 51, 102, 0.4); box-shadow: 0 0 8px rgba(255, 51, 102, 0.1); }
}

.spoiler-hazard-tag {
  color: var(--neon-red);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.spoiler-hazard-action {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Quick Re-blur button when revealed */
.reblur-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(6, 7, 10, 0.8);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
  z-index: 4;
}

.media-wrapper:not(.is-spoiler-blurred).has-spoiler .reblur-btn {
  display: inline-flex;
}

.reblur-btn:hover {
  color: var(--neon-red);
  border-color: var(--neon-red);
}

/* Card Body */
.leak-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.leak-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.leak-title:hover {
  color: var(--neon-cyan);
}

.leak-snippet {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.leak-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.leak-time {
  font-family: var(--font-mono);
}

.leak-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-action {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  transition: all 0.15s ease;
}

.btn-icon-action:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn-upvote.voted {
  color: var(--neon-green);
}

/* Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  max-width: 740px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.12);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--neon-red);
  color: #fff;
  border-color: var(--neon-red);
}

.modal-content {
  padding: 24px 28px;
}

.modal-media-wrapper {
  position: relative;
  width: 100%;
  max-height: 480px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
  margin-bottom: 22px;
}

.modal-media-wrapper .media-element,
.modal-media-wrapper .media-iframe,
.modal-media-wrapper .media-video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.modal-media-wrapper.is-spoiler-blurred .media-element,
.modal-media-wrapper.is-spoiler-blurred .media-iframe,
.modal-media-wrapper.is-spoiler-blurred .media-video {
  filter: blur(32px) brightness(0.35) saturate(0.8);
  pointer-events: none !important;
}

.modal-media-wrapper.is-spoiler-blurred .spoiler-overlay {
  display: flex;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.2);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Post Admin Page Styling */
.post-container {
  max-width: 900px;
  margin: 36px auto 80px auto;
  padding: 0 20px;
}

.pin-modal-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  max-width: 460px;
  margin: 60px auto;
}

.pin-input {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  text-align: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  color: var(--neon-cyan);
  outline: none;
  margin: 20px 0;
  transition: all 0.2s ease;
}

.pin-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Quick game tag buttons */
.quick-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.quick-tag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
}

.quick-tag-btn:hover {
  background: var(--neon-cyan);
  color: #040914;
}

/* Spoiler checkbox switch */
.spoiler-toggle-card {
  background: rgba(255, 51, 102, 0.06);
  border: 1px solid rgba(255, 51, 102, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.spoiler-toggle-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--neon-red);
  cursor: pointer;
}
