/* GitDeck - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0e1a;
  --bg-2: #0f1525;
  --surface: rgba(20, 28, 48, 0.65);
  --surface-2: rgba(30, 40, 65, 0.5);
  --border: rgba(80, 110, 170, 0.2);
  --border-hover: rgba(100, 140, 210, 0.4);
  --text: #e8edf5;
  --text-2: #9aa8c0;
  --text-3: #5a6a85;
  --primary: #3b82f6;
  --primary-2: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --ddos: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(20px);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-gradient {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(6, 182, 212, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(245, 158, 11, 0.04), transparent),
    var(--bg);
}

.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(80, 110, 170, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 110, 170, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.orb {
  position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -50px; right: -50px; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 40px); }
}

.glass {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-3d {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.card-3d:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 30px rgba(59, 130, 246, 0.1);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(40, 55, 85, 0.6); }

.btn-github {
  background: linear-gradient(135deg, #24292e, #1a1e22);
  color: white; border: 1px solid rgba(255,255,255,0.1);
}
.btn-github:hover { background: linear-gradient(135deg, #2f3439, #24292e); transform: translateY(-2px); }

.btn-danger { background: linear-gradient(135deg, var(--error), #b91c1c); color: white; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3); }

.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 14px; transition: all 0.25s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input::placeholder { color: var(--text-3); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-ddos { background: rgba(220, 38, 38, 0.15); color: var(--ddos); border: 1px solid rgba(220, 38, 38, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--primary); border: 1px solid rgba(59, 130, 246, 0.3); }

.progress-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.progress-overlay.active { display: flex; opacity: 1; }

.progress-card {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 56px;
  box-shadow: var(--shadow-lg);
  text-align: center; min-width: 320px;
}

.progress-ring {
  width: 80px; height: 80px; margin: 0 auto 24px; position: relative;
}
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.progress-ring .bg { stroke: var(--border); }
.progress-ring .fg { stroke: url(#progGrad); transition: stroke-dashoffset 0.3s; }
.progress-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--text);
}

.progress-label { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.progress-sub { font-size: 13px; color: var(--text-2); }

.toast-container {
  position: fixed; top: 80px; right: 24px; z-index: 9998;
  display: flex; flex-direction: column; gap: 12px; max-width: 380px;
}
.toast {
  background: var(--surface); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.removing { animation: slideOut 0.3s forwards; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--primary); }

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

.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, rgba(50,65,95,0.4) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.scrollbar::-webkit-scrollbar { width: 6px; }
.scrollbar::-webkit-scrollbar-track { background: transparent; }
.scrollbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.scrollbar::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

@media (max-width: 768px) {
  .progress-card { padding: 32px 24px; min-width: 260px; }
  .toast-container { right: 12px; left: 12px; max-width: none; }
}
