/* Web3 Forum Futuristic / Cyberpunk Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-primary: #080B10;
  --bg-secondary: #0F141E;
  --bg-tertiary: #161D2B;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.25);
  --border-cyan: rgba(6, 182, 212, 0.35);

  --accent-cyan: #06B6D4;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.glass-panel-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.1);
}

.glass-input {
  background: rgba(15, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  transition: all 0.2s ease;
}

.glass-input:focus {
  background: rgba(18, 24, 38, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  outline: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #080B10;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glow effects */
.glow-cyan {
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.glow-purple {
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.box-glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.box-glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

/* Badge Styling */
.badge-admin {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(225, 29, 72, 0.1));
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FB7185;
}

.badge-mod {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.badge-dev {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.badge-whale {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C084FC;
}

.badge-verified {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38BDF8;
}

/* Markdown prose */
.prose-web3 {
  color: #CBD5E1;
  line-height: 1.7;
}

.prose-web3 h1, .prose-web3 h2, .prose-web3 h3 {
  color: #F8FAFC;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-web3 p {
  margin-bottom: 0.75rem;
}

.prose-web3 pre {
  background: #0B0F17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}

.prose-web3 code {
  color: #38BDF8;
  font-size: 0.9em;
}

.prose-web3 pre code {
  color: #E2E8F0;
}

.prose-web3 a {
  color: #38BDF8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-web3 a:hover {
  color: #67E8F9;
}

.prose-web3 ul, .prose-web3 ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.prose-web3 blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: #94A3B8;
  font-style: italic;
}

/* Voting arrow animations */
.vote-btn {
  transition: transform 0.15s ease, color 0.15s ease;
}

.vote-btn:active {
  transform: scale(1.25);
}

.vote-btn.active-up {
  color: #10B981;
}

.vote-btn.active-down {
  color: #F43F5E;
}

/* Modal animation */
.modal-overlay {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content {
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Live Pulse Indicator */
.pulse-dot {
  position: relative;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.75;
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  75%, 100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}
