/* Custom SaaS Styling for Rutificador Chile */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #0056D2; /* Chilean blue / Modern SaaS indigo */
  --primary-light: #2563EB;
  --primary-dark: #1E40AF;
  --accent: #E11D48; /* Chilean flag red accent */
  --bg-gradient-start: #0B0F19;
  --bg-gradient-end: #111827;
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-border: rgba(226, 232, 240, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Background grid pattern */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
}

/* Glassmorphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.02);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

/* Glowing background blobs */
.glow-blob-blue {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.glow-blob-red {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, rgba(225, 29, 72, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Modern Pill Button */
.btn-primary {
  background: linear-gradient(135deg, #0056D2 0%, #1D4ED8 100%);
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(0, 86, 210, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0047B3 0%, #1E40AF 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(0, 86, 210, 0.45);
}

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

/* Quick Answer Card for AEO / GEO */
.quick-answer-card {
  border-left: 4px solid #0056D2;
  background: #F0F7FF;
  border-radius: 0 0.75rem 0.75rem 0;
}

/* Tool Tab Transitions */
.tab-btn {
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #0056D2;
  font-weight: 700;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #0056D2;
  border-radius: 2px;
}

/* Accordion transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.accordion-item.open .accordion-content {
  max-height: 400px;
  opacity: 1;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

/* Result card animations */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-result {
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chile Badge */
.badge-chile {
  background: linear-gradient(90deg, rgba(0, 86, 210, 0.08) 0%, rgba(225, 29, 72, 0.08) 100%);
  border: 1px solid rgba(0, 86, 210, 0.2);
}

/* Shortcut Pills across Hero Tools */
.shortcut-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
}

.shortcut-pill:hover {
  background: #0056D2;
  color: #ffffff;
  border-color: #0056D2;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 86, 210, 0.25);
}

.shortcut-pill.active {
  background: #0056D2;
  color: #ffffff;
  border-color: #0056D2;
}

/* Toast Notification */
#rut-toast, .rut-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#rut-toast.show, .rut-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* RUT Item in Generator List */
.rut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: #0f172a;
  transition: all 0.15s ease;
}

.rut-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.rut-item .copy-btn {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
}

.rut-item .copy-btn:hover {
  background: #0056D2;
  color: #ffffff;
}

