/* =====================================================================
   style.css — Tailwind ke upar chhoti custom styling
   ===================================================================== */

html { scroll-behavior: smooth; }

/* ---------- Ad slots: fixed min-height => no layout shift (CLS) ---------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: .75rem;
  color: #94a3b8;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ad-slot[data-ad-slot="top"]     { min-height: 100px; }
.ad-slot[data-ad-slot="sidebar"] { min-height: 250px; }
.ad-slot[data-ad-slot="below"]   { min-height: 250px; }
@media (min-width: 768px) {
  .ad-slot[data-ad-slot="top"]   { min-height: 90px; }
}
.ad-slot.ad-live { background: transparent; border-color: transparent; }

/* ---------- Dropzone ---------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .25rem;
  padding: 2rem 1rem;
  border: 2px dashed #a5b4fc;
  border-radius: 1rem;
  background: #eef2ff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.dropzone:hover,
.dropzone.drag,
.dropzone:focus-within {
  background: #e0e7ff;
  border-color: #4f46e5;
}
.dropzone.drag { transform: scale(1.01); }

/* ---------- Chips / buttons ---------- */
.chip {
  padding: .45rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  transition: all .15s;
}
.chip:hover { border-color: #4f46e5; color: #4f46e5; }
.chip.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: .75rem;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  transition: background .15s, transform .15s, opacity .15s;
}
.btn-primary:hover:not(:disabled) { background: #4338ca; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: .75rem;
  background: #059669;
  color: #fff;
  font-weight: 700;
  transition: background .15s, transform .15s;
}
.btn-success:hover { background: #047857; transform: translateY(-1px); }

/* ---------- Smooth reveal ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .35s ease both; }

/* ---------- FAQ (details/summary) ---------- */
details.faq { border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; }
details.faq + details.faq { margin-top: .6rem; }
details.faq summary {
  cursor: pointer;
  padding: .9rem 1rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: #4f46e5; }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 1rem 1rem; color: #475569; }

/* ---------- Legal / content pages ---------- */
.legal h1 { font-size: 1.875rem; font-weight: 800; margin-bottom: .5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: #475569; line-height: 1.75; }
.legal p { margin-bottom: .9rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: .9rem; }
.legal a { color: #4f46e5; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
