/* =============================================
   GyanSetu — Shared Base Styles
   ============================================= */

:root {
  --gs-forest: #0B1F17;
  --gs-green: #168C45;
  --gs-whatsapp: #25D366;
  --gs-lime: #B9F044;
  --gs-sage: #F4FBEA;
  --gs-mint: #EAF8EE;
  --gs-border: #D7EBDD;
  --gs-muted: #5F7168;
}

/* Shared learning canvas: soft sage with a fresh mint highlight. */
body {
  background:
    radial-gradient(900px 500px at -10% 0%, rgba(185,240,68,0.22), transparent 60%),
    radial-gradient(800px 500px at 110% 35%, rgba(37,211,102,0.12), transparent 60%),
    linear-gradient(135deg, #F7FBF2 0%, #EAF8EE 52%, #F4FBEA 100%);
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(37, 211, 102, 0.24);
  color: var(--gs-forest);
}

/* =============================================
   ANIMATIONS
   ============================================= */

/* Floating motion for hero illustration */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-slow { animation: floaty 6s ease-in-out infinite; }

/* Slow rotation for orbit ring / gear */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 28s linear infinite; transform-origin: center; transform-box: fill-box; }

/* Pulsing live indicator dot */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(185,240,68,0.7); }
  100% { box-shadow: 0 0 0 14px rgba(185,240,68,0); }
}
.live-dot { animation: pulseRing 1.6s infinite; }

/* Fade in up — for cards and sections */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp .45s ease both; }

/* =============================================
   INTERACTIVE COMPONENTS
   ============================================= */

/* Arrow circles slide on hover of btn-pill or card-hover parent */
.arrow-circle { transition: transform 0.25s ease; }
.btn-pill:hover .arrow-circle,
.card-hover:hover .arrow-circle { transform: translateX(3px); }

/* Card hover lift effect */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
}

/* =============================================
   PATTERNS & TEXTURES
   ============================================= */

/* Grid texture — used on dark banners */
.grid-tex {
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* =============================================
   FORM ELEMENTS (shared across login + dashboard)
   ============================================= */

input[type="text"],
input[type="email"],
input[type="password"] {
  font-family: inherit;
}

/* Focus ring for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(22, 140, 69, 0.35);
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--gs-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.14);
  outline-offset: 2px;
}

/* =============================================
   SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #B7D7BF; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #7DB58B; }

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .float-slow,
  .spin-slow,
  .live-dot,
  .animate-fade-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* Keep translucent surfaces responsive on lower-powered devices. */
@media (max-width: 900px) {
  .backdrop-blur-sm,
  .backdrop-blur-md,
  .backdrop-blur-xl {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
