/* ============================================================
   encryptsec — globals.css
   ============================================================ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #030712;
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ── Particle Canvas ── */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Floating Shapes ── */
.floating-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}
.floating-shape-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.floating-shape-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -3s;
}
.floating-shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

/* ── Navbar ── */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.05);
}
.nav-link.active {
  color: #60a5fa;
  background-color: rgba(59,130,246,0.1);
}

/* ── Cyber Card ── */
.cyber-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(55, 65, 81, 0.6);
  border-radius: 0.75rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cyber-card:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 20px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}

/* ── Cyber Button ── */
.cyber-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.cyber-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}
.cyber-button:active { transform: translateY(0); }

/* ── Cyber Input ── */
.cyber-input {
  width: 100%;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(55,65,81,0.8);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #f3f4f6;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cyber-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.cyber-input::placeholder { color: #4b5563; }

/* ── Stat Card ── */
.stat-card {
  background: rgba(17,24,39,0.8);
  border: 1px solid rgba(55,65,81,0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient 4s linear infinite;
}

/* ── Announcement Card ── */
.announcement-card {
  background: rgba(17,24,39,0.7);
  border: 1px solid rgba(55,65,81,0.5);
  border-radius: 0.625rem;
  padding: 1rem;
  transition: border-color 0.2s;
}
.announcement-card:hover { border-color: rgba(59,130,246,0.3); }

/* ── Extension Card ── */
.extension-card {
  background: rgba(17,24,39,0.8);
  border: 1px solid rgba(55,65,81,0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.extension-card:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 25px rgba(139,92,246,0.1);
  transform: translateY(-3px);
}

/* ── Topic Card ── */
.topic-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s, box-shadow 0.3s;
}
.topic-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.topic-card:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 20px rgba(59,130,246,0.08);
}

/* ── Scroll Animate ── */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Icon Container ── */
.icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3);  }
.badge-purple  { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge-orange  { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }

/* ── Stagger delays ── */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }

/* ── Keyframes ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes gradient {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes matrix {
  0%   { opacity: 0; transform: translateY(-20px); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

/* ── Utility Animation Classes ── */
.animate-fade-in-up  { animation: fadeInUp  0.6s ease-out forwards; }
.animate-fade-in     { animation: fadeIn    0.6s ease-out forwards; }
.animate-slide-in    { animation: slideIn   0.6s ease-out forwards; }
.animate-scale-in    { animation: scaleIn   0.4s ease-out forwards; }
.animate-float       { animation: float     6s ease-in-out infinite; }
.animate-pulse-glow  { animation: pulse     2s ease-in-out infinite; }
.animate-gradient    { animation: gradient  4s linear infinite; }
.animate-bounce-slow { animation: bounce    3s ease-in-out infinite; }
.animate-rotate      { animation: rotate    10s linear infinite; }

/* ── Glass morphism ── */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Tab styles ── */
.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.tab-btn:hover  { color: #d1d5db; background: rgba(255,255,255,0.04); }
.tab-btn.active { color: #60a5fa; background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }

/* ── Status badges for dir scan ── */
.status-200 { background: rgba(16,185,129,0.15); color: #34d399; }
.status-301, .status-302, .status-307, .status-308 { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-401 { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-403 { background: rgba(239,68,68,0.15);  color: #f87171; }

/* ── Admin form ── */
.admin-input {
  width: 100%;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(71,85,105,0.7);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ── Matrix effect ── */
.matrix-char {
  position: absolute;
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: 700;
  animation: matrix 1.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── Tooltip ── */
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tooltip:hover::after { opacity: 1; }
