/* ═══════════════════════════════════════════════════════════
   PATHSHALA - Custom Styles
   File: public/css/pathshala.css
   ═══════════════════════════════════════════════════════════ */

/* Hindi-friendly font stack */
body {
  font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, BlinkMacSystemFont, 
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth animations */
* {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

/* HTMX loading indicator */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator {
  opacity: 1;
}
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Form field states */
.field-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
}
.field-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

/* Custom focus rings */
input:focus, textarea:focus, select:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Honeypot - completely hidden */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card hover effect */
.feature-card {
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Mobile-first responsive helpers */
@media (max-width: 640px) {
  .container-mobile {
    padding-left: 16px;
    padding-right: 16px;
  }
}
