/* ======================================================
   AuroraNetwork – Main Stylesheet
   Blue Glassmorphism Dark Theme
   ====================================================== */

/* Google Fonts & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --blue-900:  #0a0f2e;
  --blue-800:  #0d1640;
  --blue-700:  #0e1f5b;
  --blue-600:  #1a3a8f;
  --blue-500:  #2563eb;
  --blue-400:  #3b82f6;
  --blue-300:  #60a5fa;
  --blue-200:  #93c5fd;
  --blue-100:  #bfdbfe;

  --accent:    #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);

  --bg-base:   #060c1e;
  --bg-card:   rgba(13, 22, 64, 0.6);
  --bg-card-hover: rgba(17, 30, 82, 0.8);
  --border:    rgba(59, 130, 246, 0.2);
  --border-hover: rgba(96, 165, 250, 0.4);

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --glass-blur: blur(20px);
  --radius:   12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-blue: 0 8px 32px rgba(37, 99, 235, 0.25);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Particles ── */
#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }
a { color: var(--blue-300); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.main-content { position: relative; z-index: 1; min-height: 80vh; }

/* ── Glassmorphism Card ── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 12, 30, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 12, 30, 0.95);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: #fff; text-decoration: none;
}
.logo-icon { font-size: 1.6rem; filter: drop-shadow(0 0 10px var(--accent)); }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; color: var(--text-secondary);
  font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-300); background: rgba(59, 130, 246, 0.12);
}
.nav-admin { color: #f97316 !important; }
.nav-admin:hover { background: rgba(249, 115, 22, 0.12) !important; }

.nav-auth { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn-nav-login {
  padding: 8px 18px; border-radius: 8px; color: var(--blue-200);
  border: 1px solid var(--border); font-weight: 600; transition: var(--transition);
}
.btn-nav-login:hover { border-color: var(--blue-400); background: rgba(59, 130, 246, 0.1); }
.btn-nav-register {
  padding: 8px 18px; border-radius: 8px; font-weight: 600;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff; transition: var(--transition);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}
.btn-nav-register:hover { box-shadow: 0 0 30px rgba(37, 99, 235, 0.6); transform: translateY(-1px); }

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(59, 130, 246, 0.1); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 12px;
  color: var(--text-primary); cursor: pointer; font-family: inherit; font-size: 0.9rem;
  transition: var(--transition);
}
.nav-user-btn:hover { border-color: var(--blue-400); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue-500); }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(10, 15, 46, 0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 200px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: var(--transition); z-index: 100;
  box-shadow: var(--shadow-blue);
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--text-secondary); font-size: 0.9rem;
  transition: var(--transition);
}
.user-dropdown a:hover { background: rgba(59, 130, 246, 0.12); color: var(--blue-200); }
.dropdown-danger { color: #f87171 !important; }
.dropdown-danger:hover { background: rgba(239, 68, 68, 0.1) !important; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.nav-hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.3rem; cursor: pointer; }

/* ── Rank Badges ── */
.rank-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid currentColor;
}
.badge-root   { color: #ff4444; background: rgba(255,68,68,0.15); }
.badge-admin  { color: #f97316; background: rgba(249,115,22,0.15); }
.badge-mod    { color: #a78bfa; background: rgba(167,139,250,0.15); }
.badge-testmod{ color: #34d399; background: rgba(52,211,153,0.15); }
.badge-vip    { color: #facc15; background: rgba(250,204,21,0.15); }
.badge-friend { color: #60a5fa; background: rgba(96,165,250,0.15); }
.badge-user   { color: #94a3b8; background: rgba(148,163,184,0.15); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  font-family: inherit; font-size: 0.95rem; cursor: pointer;
  border: none; transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff; box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.65);
  transform: translateY(-2px); color: #fff;
}
.btn-secondary {
  background: rgba(59, 130, 246, 0.1); color: var(--blue-200);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue-400); background: rgba(59, 130, 246, 0.2); }
.btn-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.3); }
.btn-success { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.btn-success:hover { background: rgba(34, 197, 94, 0.3); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; border-radius: 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 7px;
  color: var(--blue-200); font-weight: 600; font-size: 0.9rem;
}
.form-input {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(255,255,255,0.07);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 0.82rem; color: #fca5a5; margin-top: 5px; }

/* Input with icon */
.input-group { position: relative; }
.input-group .form-input { padding-left: 44px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem; pointer-events: none;
}
.input-group .input-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  font-size: 0.95rem; transition: var(--transition);
}
.input-group .input-toggle:hover { color: var(--blue-300); }

/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-strength-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 99px; transition: var(--transition); }
.pw-strength-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.strength-weak   { width: 25%; background: #ef4444; }
.strength-fair   { width: 50%; background: #f97316; }
.strength-good   { width: 75%; background: #facc15; }
.strength-strong { width: 100%; background: #22c55e; }

/* ── Toast / Flash ── */
.flash-container {
  position: fixed; top: 86px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.toast {
  padding: 14px 20px; border-radius: 10px; font-weight: 500;
  font-size: 0.9rem; backdrop-filter: blur(12px);
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 4s forwards;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.toast-success { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.toast-error   { background: rgba(239,68,68,0.2);  border: 1px solid rgba(239,68,68,0.4);  color: #fca5a5; }
.toast-warning { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.4); color: #fcd34d; }
.toast-info    { background: rgba(59,130,246,0.2);  border: 1px solid rgba(59,130,246,0.4);  color: #93c5fd; }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; text-align: left; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--blue-300); border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.data-table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem; color: var(--text-secondary);
}
.data-table tr:hover td { background: rgba(59,130,246,0.05); }
.data-table .user-cell { display: flex; align-items: center; gap: 10px; }
.data-table .user-cell img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ── Status Badges ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
}
.status-open      { background: rgba(34,197,94,0.15); color: #86efac; }
.status-in_review { background: rgba(245,158,11,0.15); color: #fcd34d; }
.status-closed    { background: rgba(148,163,184,0.15); color: #94a3b8; }
.status-active    { background: rgba(239,68,68,0.15); color: #fca5a5; }
.status-perm      { background: rgba(239,68,68,0.25); color: #f87171; font-weight: 700; }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px;
  border-radius: 99px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(37,99,235,0.15); color: var(--blue-300);
  border: 1px solid rgba(37,99,235,0.3);
}
.section-title { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.section-title .highlight {
  background: linear-gradient(135deg, var(--blue-300), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 0.9rem;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue-500); border-color: var(--blue-500); color: #fff;
}

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(6,12,30,0.8); backdrop-filter: blur(20px);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .logo-text { font-size: 1.3rem; font-weight: 800; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; }
.footer-links h4, .footer-social h4 { color: var(--text-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-links a:hover { color: var(--blue-300); }
.social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  margin-bottom: 10px; transition: var(--transition);
  border: 1px solid var(--border);
}
.social-btn.discord { color: #7289da; }
.social-btn.discord:hover { background: rgba(114,137,218,0.15); border-color: #7289da; }
.social-btn.steam { color: #b2b2b2; }
.social-btn.steam:hover { background: rgba(178,178,178,0.1); border-color: #b2b2b2; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.server-ip { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.copy-ip-btn {
  background: rgba(59,130,246,0.15); border: 1px solid var(--border);
  color: var(--blue-300); border-radius: 6px; padding: 4px 8px; cursor: pointer;
  transition: var(--transition);
}
.copy-ip-btn:hover { background: rgba(59,130,246,0.3); }

/* ── Animations ── */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; } to { opacity: 0; pointer-events: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 20px rgba(37,99,235,0.3); }
  50%     { box-shadow: 0 0 40px rgba(37,99,235,0.6); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(37,99,235,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-glow  { animation: glow 2s ease-in-out infinite; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: rgba(10,15,46,0.97); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; max-width: 500px; width: 90%;
  transform: scale(0.9); transition: var(--transition);
  box-shadow: var(--shadow-glow);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
}
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.modal-body { color: var(--text-secondary); line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(6,12,30,0.98); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; margin-left: auto; }
  .nav-auth .btn-nav-login { display: none; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-title { font-size: 1.8rem; }
}
