/* OFURE RADIO FORUM - Custom Styles */
:root {
  --purple-deep: #1a0533;
  --purple-dark: #2d1b69;
  --purple-mid: #4c1d95;
  --purple-bright: #7c3aed;
  --purple-light: #a78bfa;
  --orange-bright: #f97316;
  --orange-dark: #ea580c;
  --orange-glow: #fb923c;
  --bg-dark: #0a0118;
  --bg-card: #12022a;
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: rgba(124,58,237,0.25);
}

[data-theme="light"] {
  --bg-dark: #f5f3ff;
  --bg-card: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-color: rgba(124,58,237,0.2);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a0533; }
::-webkit-scrollbar-thumb { background: #7c3aed; border-radius: 3px; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
#navbar {
  background: linear-gradient(90deg, #12022a 0%, #1e1040 50%, #12022a 100%);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(124,58,237,0.2);
}

.nav-brand {
  background: linear-gradient(135deg, #7c3aed, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #f97316);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.4);
}

.btn-secondary {
  background: rgba(124,58,237,0.1);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: rgba(124,58,237,0.2);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
}

.card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 4px 20px rgba(124,58,237,0.15);
}

.card-header {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(249,115,22,0.08));
  border-bottom: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Forum Category */
.category-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.category-title {
  background: linear-gradient(135deg, #7c3aed22, #f9731611);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.board-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(124,58,237,0.08);
  gap: 14px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.board-row:hover { background: rgba(124,58,237,0.06); }
.board-row:last-child { border-bottom: none; }

.board-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(249,115,22,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.board-stats {
  margin-left: auto;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 80px;
}

/* Thread rows */
.thread-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(124,58,237,0.08);
  gap: 14px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.thread-row:hover { background: rgba(124,58,237,0.06); }
.thread-row:last-child { border-bottom: none; }

.thread-pin-badge {
  background: linear-gradient(135deg, #7c3aed, #f97316);
  color: white;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.thread-lock-badge {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* Post cards */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.post-author {
  background: rgba(124,58,237,0.06);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.post-content {
  padding: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-quote {
  background: rgba(124,58,237,0.08);
  border-left: 3px solid #7c3aed;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-actions {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Avatar */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,58,237,0.3);
}

.avatar-placeholder {
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.role-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.role-admin { background: linear-gradient(135deg,#7c3aed,#f97316); color: white; }
.role-moderator { background: rgba(59,130,246,0.2); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.role-member { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }

/* Forms */
.form-input {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-textarea {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  transition: all 0.2s;
  outline: none;
  line-height: 1.6;
  font-family: inherit;
}

.form-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Reactions */
.reaction-btn {
  background: rgba(124,58,237,0.08);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  color: var(--text-muted);
}

.reaction-btn:hover {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.3);
}

.reaction-btn.active {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.5);
  color: #a78bfa;
}

/* Stats bar */
.stats-bar {
  background: linear-gradient(135deg, #12022a, #1e1040);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Online indicator */
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a0118 0%, #1e1040 50%, #0a0118 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 70px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: #7c3aed; text-decoration: none; }
.breadcrumb a:hover { color: #a78bfa; }

/* Notification badge */
.notif-badge {
  background: #f97316;
  color: white;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  position: absolute;
  top: -4px; right: -4px;
}

/* Admin Panel */
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
}

/* Radio wave decoration */
.radio-wave {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.radio-wave::before, .radio-wave::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.15);
  animation: wave 3s ease-out infinite;
}

.radio-wave::before { width: 80px; height: 80px; }
.radio-wave::after { width: 100px; height: 100px; animation-delay: 1s; }

@keyframes wave {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #1e1040;
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 16px;
  padding: 28px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(124,58,237,0.3);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  max-width: 350px;
}

.toast-success { background: #065f46; border: 1px solid #10b981; color: #6ee7b7; }
.toast-error { background: #7f1d1d; border: 1px solid #ef4444; color: #fca5a5; }
.toast-info { background: #1e1b4b; border: 1px solid #7c3aed; color: #a78bfa; }

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

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.page-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(124,58,237,0.3);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.page-btn:hover, .page-btn.active {
  background: rgba(124,58,237,0.2);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.5);
}

/* Loading spinner */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(124,58,237,0.2);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile responsive */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .mobile-full { width: 100%; }
  .stats-bar { gap: 12px; }
  .hero { padding: 28px 16px; }
  .nav-link { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Trending tags */
.tag {
  background: rgba(124,58,237,0.12);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(124,58,237,0.22);
}

/* Search */
.search-input {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 30px;
  padding: 10px 20px;
  color: white;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}

.search-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

/* Rich text toolbar */
.rich-toolbar {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px 10px 0 0;
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: none;
}

.toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.3);
}

/* User profile card */
.profile-header {
  background: linear-gradient(135deg, #12022a, #1e1040);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

/* ============ NAVBAR LOGO ============ */
.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.4);
  box-shadow: 0 0 14px rgba(124,58,237,0.35), 0 0 28px rgba(249,115,22,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.nav-logo-img:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 20px rgba(124,58,237,0.55), 0 0 40px rgba(249,115,22,0.25);
}

/* ============ FOOTER ============ */
#site-footer {
  background: linear-gradient(180deg, #0a0118 0%, #12022a 60%, #0a0118 100%);
  border-top: 1px solid rgba(124,58,237,0.2);
  padding: 48px 24px 28px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
#site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed 30%, #f97316 70%, transparent);
}
.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.footer-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.4);
  box-shadow: 0 0 18px rgba(124,58,237,0.3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 36px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #f97316;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-link:hover { color: #a78bfa; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(124,58,237,0.15);
  max-width: 1280px;
  margin: 0 auto 20px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-copyright {
  font-size: 0.82rem;
  color: #6b7280;
}
.footer-copyright span {
  background: linear-gradient(135deg, #a78bfa, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.85rem;
}
.footer-social a:hover {
  background: rgba(124,58,237,0.25);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.5);
  transform: translateY(-2px);
}
.footer-badge {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(249,115,22,0.1));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.74rem;
  color: #a78bfa;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============ HERO LOGO ============ */
.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(124,58,237,0.5);
  box-shadow:
    0 0 0 6px rgba(124,58,237,0.1),
    0 0 40px rgba(124,58,237,0.4),
    0 0 80px rgba(249,115,22,0.2);
  animation: heroLogoPulse 3s ease-in-out infinite;
}
@keyframes heroLogoPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(124,58,237,0.1), 0 0 40px rgba(124,58,237,0.4), 0 0 80px rgba(249,115,22,0.2); }
  50% { box-shadow: 0 0 0 10px rgba(124,58,237,0.05), 0 0 60px rgba(124,58,237,0.6), 0 0 100px rgba(249,115,22,0.3); }
}

/* ============ LIGHT MODE OVERRIDES ============ */
[data-theme="light"] body { background-color: #f5f3ff; color: #1f2937; }
[data-theme="light"] #navbar { background: linear-gradient(90deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%); }
[data-theme="light"] .card, [data-theme="light"] .category-block, [data-theme="light"] .post-card { background: white; }
[data-theme="light"] .category-title { background: linear-gradient(135deg, #ede9fe, #fff7ed); }
[data-theme="light"] .form-input, [data-theme="light"] .form-textarea { background: #f5f3ff; color: #1f2937; }
[data-theme="light"] .hero { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%); }
[data-theme="light"] .nav-link { color: #4b5563; }
[data-theme="light"] .stats-bar { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
[data-theme="light"] #site-footer { background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 100%); }
[data-theme="light"] .footer-link { color: #6b7280; }
[data-theme="light"] .footer-copyright { color: #9ca3af; }
[data-theme="light"] .footer-social a { background: rgba(124,58,237,0.06); }
[data-theme="light"] .modal-box { background: #ffffff; border-color: rgba(124,58,237,0.3); }
[data-theme="light"] select { background: #f5f3ff; color: #1f2937; }
