/* ToolForge Modern Design System & Tailwind Utilities */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --tf-primary: #4f46e5;
  --tf-primary-hover: #4338ca;
  --tf-primary-light: #eef2ff;
  --tf-secondary: #06b6d4;
  --tf-accent: #10b981;
  --tf-dark: #0f172a;
  --tf-dark-card: #1e293b;
  --tf-dark-border: #334155;
  --tf-gray-50: #f8fafc;
  --tf-gray-100: #f1f5f9;
  --tf-gray-200: #e2e8f0;
  --tf-gray-300: #cbd5e1;
  --tf-gray-600: #475569;
  --tf-gray-900: #0f172a;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #0b0f19;
  color: #f1f5f9;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.875rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.25);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-badge {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.6);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Inputs & Form Controls */
.tf-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.tf-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Custom Range Sliders */
input[type=range] {
  -webkit-appearance: none;
  background: #1e293b;
  height: 6px;
  border-radius: 3px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
  border: 2px solid #ffffff;
  transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* CLS-safe Reserved Ad Slots */
.ad-slot-header {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 1.5rem auto;
  background: rgba(30, 41, 59, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  contain: strict;
}

.ad-slot-postaction {
  min-height: 90px;
  width: 100%;
  margin: 1.5rem 0;
  background: rgba(30, 41, 59, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  contain: content;
}

.ad-slot-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  contain: strict;
}

/* Responsive code font */
pre, code {
  font-family: var(--font-mono);
}

/* Smooth transitions */
[x-cloak] {
  display: none !important;
}
