/* English.net - custom styles (works with Tailwind Play CDN + raw CSS) */

:root {
  --brand: #2563eb;
  --brand-emerald: #059669;
  /* Premium violet / amber / cyan theme */
  --p1: #7C3AED; /* violet primary */
  --p2: #F59E0B; /* amber secondary */
  --p3: #06B6D4; /* cyan tertiary */
  --grad: linear-gradient(90deg, #7C3AED, #F59E0B);
  --grad-soft: linear-gradient(135deg, #7C3AED, #F59E0B);
  --grad-pro: linear-gradient(160deg, #7C3AED, #5B21B6 55%, #F59E0B 150%);
  --text: #1E1B2E;
  --gray: #6B7280;
}

html { scroll-behavior: smooth; }

body {
  background-color: #f8fafc;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.dark body { background-color: #0B0A14; color: #f1f5f9; }

/* ---------- Components ---------- */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}
.dark .glass {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card {
  border-radius: 1.75rem;
  padding: 1.5rem;
  transition: all .3s ease;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}
.dark .card {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.card:hover { box-shadow: 0 30px 60px rgba(15,23,42,0.15); transform: translateY(-4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; padding: .75rem 1.5rem; font-weight: 600;
  transition: all .3s ease; cursor: pointer; border: none;
}
.btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(124,58,237,.35); }
.btn-primary { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:9999px; padding:.75rem 1.5rem; font-weight:600; border:none; cursor:pointer; transition:all .3s ease; background: var(--grad); color: #fff; box-shadow: 0 10px 25px rgba(124,58,237,.35); }
.btn-primary:hover { background: linear-gradient(90deg, #6D28D9, #D97706); }
.btn-emerald { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:9999px; padding:.75rem 1.5rem; font-weight:600; border:none; cursor:pointer; transition:all .3s ease; background: #059669; color: #fff; box-shadow: 0 10px 25px rgba(5,150,105,.3); }
.btn-emerald:hover { background: #047857; }
.btn-ghost { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:9999px; padding:.75rem 1.5rem; font-weight:600; border:none; cursor:pointer; transition:all .3s ease; background: #f1f5f9; color: #334155; }
.dark .btn-ghost { background: #1e293b; color: #e2e8f0; }
.btn-ghost:hover { background: #e2e8f0; }
.dark .btn-ghost:hover { background: #334155; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  border-radius: 9999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 600;
}

.input {
  width: 100%; border-radius: 1rem; border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.8); padding: .75rem 1rem; outline: none;
  transition: all .2s ease; color: inherit;
}
.dark .input { border-color: #334155; background: rgba(30,41,59,0.8); }
.input:focus { box-shadow: 0 0 0 4px rgba(124,58,237,.3); border-color: var(--p1); }

.label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; color: #475569; }
.dark .label { color: #cbd5e1; }

.gradient-text {
  background: linear-gradient(to right, #7C3AED, #F59E0B, #06B6D4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Animations ---------- */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
@keyframes blob { 0%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-40px) scale(1.1)} 66%{transform:translate(-20px,30px) scale(.95)} 100%{transform:translate(0,0) scale(1)} }
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes popIn { 0%{opacity:0;transform:scale(.85)} 100%{opacity:1;transform:scale(1)} }
@keyframes pulseRing { 0%{transform:scale(.9);opacity:.7} 70%{transform:scale(1.3);opacity:0} 100%{opacity:0} }
@keyframes shimmer { 0%{background-position:-1000px 0} 100%{background-position:1000px 0} }
@keyframes spinSlow { to{transform:rotate(360deg)} }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-blob { animation: blob 14s ease-in-out infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradientShift 8s ease infinite; }
.animate-fade-up { animation: fadeUp .7s ease both; }
.page-enter { animation: fadeUp .5s ease both; }
.premium-cta { position: relative; overflow: hidden; animation: premiumGlow 2.2s ease-in-out infinite; }
.premium-cta::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(124,58,237,.25), transparent); animation: premiumShine 2.6s ease-in-out infinite; }
@keyframes premiumGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.0); transform: translateY(0); }
  50% { box-shadow: 0 8px 26px -6px rgba(245,158,11,.55); transform: translateY(-2px); }
}
@keyframes premiumShine { 0% { left: -120%; } 60%,100% { left: 130%; } }
.page-loader { position: fixed; inset: 0; background: rgba(255,255,255,.7); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .2s; }
.page-loader.show { opacity: 1; }
.page-loader .spinner { width: 46px; height: 46px; border-radius: 9999px; border: 5px solid rgba(124,58,237,.2); border-top-color: #7C3AED; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-pop { animation: popIn .5s ease both; }
.animate-shimmer { background: linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%); background-size:1000px 100%; animation: shimmer 2s infinite linear; }
.animate-spin-slow { animation: spinSlow 18s linear infinite; }

.reveal { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Background animated blobs */
.bg-blobs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-blobs span { position: absolute; border-radius: 9999px; filter: blur(80px); opacity: .35; }
.bg-blobs .b1 { width: 400px; height: 400px; background: #7C3AED; top: -100px; left: -100px; }
.bg-blobs .b2 { width: 350px; height: 350px; background: #F59E0B; bottom: -80px; right: -60px; animation-delay: 3s; }
.bg-blobs .b3 { width: 300px; height: 300px; background: #06B6D4; top: 40%; left: 60%; animation-delay: 6s; }

/* Chat bubbles */
.chat-bubble { max-width: 75%; }
.chat-user { background: var(--grad); color: #fff; border-radius: 1.5rem; border-bottom-right-radius: .5rem; padding: 1rem; margin-left: auto; }
.chat-ai { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; border-bottom-left-radius: .5rem; padding: 1rem; }
.dark .chat-ai { background: #1e293b; border-color: #334155; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 2px #7C3AED; }
