/* Scriptek - Modern Gray & Orange Theme */
:root {
  --brand: #ff7a00;
  --brand-light: #ff9a33;
  --brand-dark: #e06a00;
  --bg: #0b0b0b;
  --panel: #121212;
  --panel-light: #1a1a1a;
  --muted: #b3b3b3;
  --muted-light: #d9d9d9;
  --border: #1f1f1f;
  --border-light: #333333;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--bg);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Brand Colors */
.brand { color: var(--brand); }
.brand-bg { background-color: var(--brand); }
.brand-border { border-color: var(--brand); }
.brand-gradient { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }

/* Glassmorphism Effects */
.glass {
  background: linear-gradient(180deg, rgba(255,122,0,0.06), rgba(255,122,0,0.02));
  border: 1px solid rgba(255,122,0,0.15);
  backdrop-filter: blur(10px);
}

.panel {
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.panel-light {
  background-color: var(--panel-light);
  border: 1px solid var(--border-light);
}

/* Text Colors */
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); }

/* Card Effects */
.card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:before {
  content: "";
  position: absolute;
  inset: auto -40% 0 -40%;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(255,122,0,0.15), transparent 60%);
  transform: translateY(40%);
  filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover:before {
  transform: translateY(30%);
  opacity: 0.8;
}

/* Buttons */
.btn {
  transition: all 0.12s ease;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255,122,0,.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: black;
  font-weight: 600;
}

.btn-secondary {
  background: var(--panel-light);
  color: var(--muted-light);
  border: 1px solid var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: black;
}

/* Inputs */
.input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255,122,0,.1);
}

.ring-brand {
  box-shadow: 0 0 0 2px rgba(255,122,0,.3) inset;
}

/* Hero Section */
.hero-grad {
  background: 
    radial-gradient(600px 280px at 20% 10%, rgba(255,122,0,0.25), transparent 60%),
    radial-gradient(500px 240px at 80% 0%, rgba(255,122,0,0.12), transparent 70%);
}

/* Grid Layouts */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Spacing */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* Text Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideIn { animation: slideIn 0.3s ease; }
.animate-pulse { animation: pulse 2s infinite; }

/* Navigation */
.nav-link {
  color: var(--muted);
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--brand);
  background: rgba(255,122,0,0.1);
}

.nav-link.active {
  color: var(--brand);
  background: rgba(255,122,0,0.15);
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary { background: rgba(255,122,0,0.2); color: var(--brand); }
.badge-success { background: rgba(16,185,129,0.2); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.2); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.2); color: var(--danger); }

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid-auto {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .text-2xl { font-size: 1.25rem; }
  .text-3xl { font-size: 1.5rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }