/* DiskWala Resolver — shared styles (DiskWala brand: white + green) */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800;900&display=swap');

body { font-family: 'Public Sans', system-ui, sans-serif; }

/* --- DiskWala top glow (green radial on white, unke dark-glow ka light version) --- */
.dw-topglow {
  background:
    radial-gradient(52% 42% at 50% 0%, rgba(69,194,90,.14) 0%, rgba(125,217,87,.07) 38%, transparent 72%);
}

/* --- header: edge-to-edge bar -> scroll pe floating pill tab (always on top) --- */
.dw-nav { position: sticky; top: 0; z-index: 40; width: 100%;
  background: rgba(255,255,255,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(187,240,200,.55);
  transition: background .3s ease, border-color .3s ease; }
.dw-nav-inner { transition: margin .3s ease, border-radius .3s ease, background .3s ease,
  box-shadow .3s ease, border-color .3s ease; border: 1px solid transparent; }
.dw-nav-row { height: 4rem; transition: height .3s ease; }

/* scrolled: bar gayab, pill tab float karta hai */
.dw-nav.scrolled { background: transparent; border-bottom-color: transparent; }
.dw-nav.scrolled .dw-nav-inner {
  margin: .6rem .9rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.94);
  border-color: rgba(187,240,200,.8);
  box-shadow: 0 12px 32px -12px rgba(17,24,39,.2), 0 2px 8px -4px rgba(46,158,79,.15);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dw-nav.scrolled .dw-nav-row { height: 3.35rem; }

/* --- animations --- */
.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }

.float-y { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.spinner { border: 3px solid #e5e7eb; border-top-color: #2E9E4F; border-radius: 50%; width: 22px; height: 22px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg);} }

.pulse-dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: .35;} }

/* --- DiskWala green pill buttons (frizzy: gradient + glow + shine sweep) --- */
.btn-frizzy {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2E9E4F 0%, #45C25A 60%, #7ED957 130%);
  color: #fff; border: none; border-radius: 9999px;
  box-shadow: 0 8px 24px -6px rgba(46,158,79,.55), 0 2px 8px -2px rgba(69,194,90,.45), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-frizzy:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 14px 34px -8px rgba(46,158,79,.65), 0 4px 14px -2px rgba(69,194,90,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-frizzy:active:not(:disabled) { transform: translateY(0) scale(.99); }
.btn-frizzy::after {  /* shine sweep */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.38) 50%, transparent 60%);
  transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%);} 80%, 100% { transform: translateX(120%);} }

.btn-ghost {
  background: rgba(255,255,255,.75); color: #374151; border: 1px solid #e5e7eb; border-radius: 9999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
  transition: all .18s ease;
}
.btn-ghost:hover { border-color: #86efac; color: #2E9E4F; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(46,158,79,.3); }

/* --- surfaces --- */
.card {
  background: rgba(255,255,255,.85); border: 1px solid #e9edf3; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 12px 32px -16px rgba(17,24,39,.12);
  backdrop-filter: blur(8px);
}
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: #bbf0c8; box-shadow: 0 18px 44px -18px rgba(46,158,79,.3); }

.chip { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 9999px; }

/* --- code blocks (dark island — DiskWala-style contrast) --- */
pre.code {
  background: #0d130f; border: 1px solid #1d2b21; border-radius: .9rem;
  padding: 1rem 1.15rem; overflow-x: auto; font-size: 12.5px; line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d1e5d6; box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
pre.code .k { color: #7ED957; }
pre.code .s { color: #9be7c4; }
pre.code .c { color: #5b6b5e; }

/* --- input --- */
.input-soft {
  background: #fff; border: 1px solid #e5e7eb; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input-soft:focus { border-color: #86efac; box-shadow: 0 0 0 4px rgba(69,194,90,.15); }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #cfd8d1; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
