/* Nexus Roleplay — Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(18, 18, 26, 0.8);
  --neon-blue: #dc2626;
  --neon-purple: #d4a017;
  --neon-pink: #ec4899;
  --neon-green: #10b981;
  --neon-red: #ef4444;
  --neon-yellow: #f59e0b;
  --accent-red: #dc2626;
  --accent-gold: #d4a017;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-color: rgba(220, 38, 38, 0.2);
  --glass-bg: rgba(15, 15, 25, 0.7);
  --glass-border: rgba(220, 38, 38, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Rajdhani', sans-serif; font-weight: 700; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 4px; }

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.1);
}

/* Neon Glow */
.neon-glow { text-shadow: 0 0 10px rgba(220, 38, 38, 0.5), 0 0 40px rgba(220, 38, 38, 0.2); }
.neon-border { box-shadow: 0 0 15px rgba(220, 38, 38, 0.3), inset 0 0 15px rgba(220, 38, 38, 0.1); }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #b91c1c);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
}

.btn-discord {
  background: #5865F2;
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: rgba(212, 160, 23, 0.1);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; border-radius: 8px; }
.btn-success { background: var(--neon-green); }
.btn-danger { background: var(--neon-red); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(10, 10, 15, 0.95); }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.8) 70%, var(--bg-primary) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero-content { position: relative; z-index: 2; text-align: center; }

/* Particle dots */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-red);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 6s infinite;
}
@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  50% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* Section */
.section { padding: 100px 0; position: relative; }
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(212,160,23,0.2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* Gallery */
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; display: block; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
}

/* Form Styles */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* Progress Steps */
.progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.2);
  transition: all 0.3s ease;
}
.progress-dot.active { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }
.progress-dot.completed { background: var(--neon-green); }

/* Status Badges */
.badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending { background: rgba(245, 158, 11, 0.2); color: var(--neon-yellow); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.2); color: var(--neon-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background: rgba(239, 68, 68, 0.2); color: var(--neon-red); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Dashboard */
.stat-card {
  padding: 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.95rem;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(220, 38, 38, 0.08);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(220, 38, 38, 0.05); }

/* Tab Nav */
.tab-nav { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--glass-border); }
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-red); border-bottom-color: var(--accent-red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Toast */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 9999; }
.toast {
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(20px);
}
.toast-success { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--neon-green); }
.toast-error { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--neon-red); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 24px;
}

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu .nav-link { font-size: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .desktop-nav { display: none !important; }
  .gallery-grid { columns: 1; }
  .hero h1 { font-size: 2.5rem !important; }
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 10px 8px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid { columns: 2; }
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* User avatar */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
}

/* Application detail panel */
.app-detail {
  background: rgba(15, 15, 25, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 12px;
}
.app-answer {
  background: rgba(10, 10, 15, 0.6);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.app-answer-question {
  color: var(--accent-red);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}
