/* ==========================================================================
   NRO FORUM - MODERN HIGH-END GAMING THEME (DRAGON BALL THEME)
   ========================================================================== */

:root {
  --bg-page: #0a0c10;
  --bg-page-gradient: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(10, 12, 16, 0.98) 55%, #07080b 100%);
  --bg-header: rgba(14, 17, 24, 0.88);
  --bg-card: rgba(20, 24, 34, 0.85);
  --bg-card-hover: rgba(26, 31, 45, 0.95);
  --bg-card-subtle: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(15, 18, 26, 0.9);
  
  --border-subtle: rgba(245, 158, 11, 0.18);
  --border-hover: rgba(245, 158, 11, 0.5);
  --border-light: rgba(255, 255, 255, 0.08);
  
  --text-main: #f8fafc;
  --text-title: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-orange: #f97316;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-red: #ef4444;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  
  --glow-orange: 0 0 25px rgba(249, 115, 22, 0.25);
  --glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  --glow-subtle: 0 8px 30px rgba(0, 0, 0, 0.5);
  
  --radius-card: 16px;
  --radius-btn: 10px;
}

/* Warm Classic Mode for nostalgic players */
[data-theme="warm"] {
  --bg-page: #f9f5f0;
  --bg-page-gradient: linear-gradient(180deg, #fceadb 0%, #f7ede2 20%, #f4eae0 100%);
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #fffdf9;
  --bg-card-subtle: #f8ede0;
  --bg-input: #ffffff;
  
  --border-subtle: rgba(234, 88, 12, 0.25);
  --border-hover: rgba(234, 88, 12, 0.6);
  --border-light: rgba(217, 119, 6, 0.15);
  
  --text-main: #2b1f14;
  --text-title: #1a1209;
  --text-muted: #785a3c;
  --text-dim: #9c8065;
  
  --glow-orange: 0 4px 20px rgba(234, 88, 12, 0.15);
  --glow-gold: 0 4px 20px rgba(217, 119, 6, 0.15);
  --glow-subtle: 0 4px 16px rgba(120, 90, 60, 0.08);
}

/* Base resets & typography */
body.nro-forum-body {
  background-color: var(--bg-page);
  background-image: var(--bg-page-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* Animations */
@keyframes kiPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35), 0 0 30px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6), 0 0 45px rgba(239, 68, 68, 0.4);
  }
}

@keyframes kiSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.anim-heartbeat {
  animation: heartBeat 0.4s ease-in-out;
}

.ki-aura-ring {
  position: relative;
}
.ki-aura-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444, #f97316);
  opacity: 0.7;
  filter: blur(6px);
  z-index: 0;
  animation: kiPulse 3s infinite ease-in-out;
}

/* Glassmorphism Card Base */
.nro-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--glow-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nro-box:hover {
  border-color: var(--border-hover);
}

/* Interactive Post Card */
.nro-post-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nro-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.12), var(--glow-subtle);
}

/* Active Category Pill */
.nro-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nro-cat-pill:hover {
  color: var(--text-title);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}
.nro-cat-pill.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #f97316 !important;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

/* Badges */
.badge-admin {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  border: 1px solid #f87171;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-tag-announcement {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.badge-tag-bug {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.badge-tag-report {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.badge-tag-suggestion {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.badge-tag-general {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Sidebar Download Gaming Buttons */
.nro-btn-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
}
.nro-btn-dl:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
.nro-btn-dl.windows {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: rgba(96, 165, 250, 0.4);
}
.nro-btn-dl.android {
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
  border-color: rgba(52, 211, 153, 0.4);
}
.nro-btn-dl.ios {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-color: rgba(148, 163, 184, 0.4);
}
.nro-btn-dl.java {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  border-color: rgba(251, 146, 60, 0.4);
}
.nro-btn-dl.chplay {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  border-color: rgba(129, 140, 248, 0.4);
}

/* Leaderboard Ranking Buttons */
.nro-btn-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.nro-btn-rank:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--text-title);
  transform: translateX(3px);
}
.rank-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.rank-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.rank-silver {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
}
.rank-bronze {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  color: #fff;
}

/* Toast Alert Notification */
.nro-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #181d2a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nro-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
