/* Shared styles for tirthadasbanerjee.com (loaded after style.css) */
:root {
  --accent: #6d28d9;
  --accent-2: #7c3aed;
  --accent-soft: #f5f3ff;
  --line: #ddd6fe;
  --ink: #1f2937;
  --muted: #4b5563;
  --stage: #15121f;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(109, 40, 217, .10), 0 4px 16px rgba(17, 24, 39, .06);
}
.nav-inner {
  position: relative; max-width: 72rem; margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--accent); white-space: nowrap; }
.brand:hover { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 1.15rem; font-weight: 500; font-size: .93rem; }
.nav-links a { color: #374151; padding: .25rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-2); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: .6rem;
  border: 1px solid var(--line); background: #fff; color: var(--accent); font-weight: 600; font-size: .9rem;
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 1.25rem 1rem; box-shadow: 0 12px 24px rgba(17, 24, 39, .12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem 0; border-bottom: 1px solid #f3f0ff; }
  .nav-links a.active { border-bottom-color: #f3f0ff; font-weight: 700; }
}

/* ---------- Page header ---------- */
.page-head { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; text-align: center; }
.page-title { font-size: 2.4rem; line-height: 1.15; font-weight: 800; color: #111827; letter-spacing: -.01em; }
.page-lead { margin: .9rem auto 0; max-width: 44rem; font-size: 1.1rem; line-height: 1.7; color: var(--muted); }
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

/* ---------- Cards and sections ---------- */
.card {
  background: rgba(255, 255, 255, .93); border-radius: 1rem;
  box-shadow: 0 10px 25px -8px rgba(76, 29, 149, .16), 0 3px 8px -3px rgba(17, 24, 39, .08);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card-hover:hover { box-shadow: 0 18px 36px -10px rgba(76, 29, 149, .26), 0 4px 10px -3px rgba(17, 24, 39, .10); }
@media (prefers-reduced-motion: no-preference) { .card-hover:hover { transform: translateY(-2px); } }
.section-title {
  font-size: 1.55rem; font-weight: 700; color: var(--accent);
  border-bottom: 1px solid #d8b4fe; padding-bottom: .5rem; margin-bottom: 1.5rem;
}
.section-sub { color: var(--muted); margin-top: -.9rem; margin-bottom: 1.5rem; }
.prose-like p { line-height: 1.75; }
.prose-like p + p { margin-top: 1rem; }
.stage { background: var(--stage); color: #e9e3ff; border-radius: 1.25rem; }
.stage h2, .stage h3 { color: #fff; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a78bfa; }

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1rem;
  border-radius: .6rem; font-size: .875rem; font-weight: 600; line-height: 1.25rem;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent-2); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-dark { background: #1f2937; color: #fff; }
.btn-dark:hover { background: #111827; }
.btn-ghost { background: var(--accent-soft); color: #5b21b6; border: 1px solid var(--line); }
.btn-ghost:hover { background: #ede9fe; }
.btn-light { background: #fff; color: #4c1d95; }
.btn-light:hover { background: #ede9fe; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px;
  background: #fff; border: 1px solid #e9d5ff; color: #6b21a8; font-size: .78rem; font-weight: 500;
}
.chip:hover { background: var(--accent-soft); border-color: #c4b5fd; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-role { background: #ede9fe; color: #5b21b6; }
.badge-cover { background: #fef3c7; color: #92400e; }
.badge-pre { background: #e0f2fe; color: #075985; }
.badge-new { background: #dcfce7; color: #166534; }
.badge-bio { background: #dcfce7; color: #166534; }
.badge-robot { background: #dbeafe; color: #1e40af; }
.badge-ai { background: #fef9c3; color: #854d0e; }

/* ---------- Publications ---------- */
.year-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.year-nav a { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #5b21b6; font-size: .85rem; font-weight: 600; }
.year-nav a:hover { background: var(--accent-soft); }
.pub-thumb { width: 100%; max-width: 15rem; border-radius: .6rem; box-shadow: 0 4px 12px rgba(17, 24, 39, .12); object-fit: cover; background: #f3f4f6; }
.pub-title { font-size: 1.15rem; line-height: 1.45; font-weight: 700; color: #111827; }
.pub-authors { font-size: .92rem; color: var(--muted); }
.pub-authors b { color: #111827; }
.pub-venue { font-size: .92rem; color: #374151; }
.news-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin-right: .25rem; }
.year-block { scroll-margin-top: 5rem; }

/* ---------- Students ---------- */
.filter-btn { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #5b21b6; font-size: .85rem; font-weight: 600; }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.avatar { width: 7.5rem; height: 7.5rem; margin: 0 auto; border-radius: 999px; object-fit: cover; box-shadow: 0 4px 12px rgba(17, 24, 39, .15); border: 3px solid #fff; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: #ede9fe; color: #5b21b6; font-size: 2rem; font-weight: 700; }

/* ---------- Media ---------- */
.video-frame { position: relative; border-radius: .9rem; overflow: hidden; background: #000; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); }
.video-frame video { display: block; width: 100%; height: auto; }
.figure img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; line-height: 1.55; }
.step-num {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-2); color: #fff; font-weight: 700; font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: rgba(243, 244, 246, .85); padding: 1.5rem 1rem; text-align: center; font-size: .875rem; color: #4b5563; }
.site-footer a { color: var(--accent); }

a:focus-visible, button:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }

/* ---------- Look and feel upgrade ---------- */
body.site {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f3e8ff 0%, #fdf2f8 45%, #e0f2fe 100%);
  -webkit-font-smoothing: antialiased;
}
body.site h1, body.site h2, body.site h3, .brand, .page-title {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
.bg-blobs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 999px; filter: blur(80px); opacity: .45; }
.bg-blobs span:nth-child(1) { width: 32rem; height: 32rem; background: #c4b5fd; top: -10rem; left: -8rem; }
.bg-blobs span:nth-child(2) { width: 28rem; height: 28rem; background: #fbcfe8; top: 30%; right: -10rem; }
.bg-blobs span:nth-child(3) { width: 30rem; height: 30rem; background: #bae6fd; bottom: -12rem; left: 25%; }
.title-bar { width: 4.5rem; height: .3rem; margin: 1.1rem auto 0; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #ec4899); }
.eyebrow-dark { color: #7c3aed; }
.grad-text { background: linear-gradient(90deg, #6d28d9, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.icon-tile { width: 2.75rem; height: 2.75rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ede9fe, #fce7f3); color: #6d28d9; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 2rem; line-height: 1; color: #6d28d9; }
.stat span { font-size: .82rem; color: var(--muted); }
.hero-ring { padding: .35rem; border-radius: 999px; background: linear-gradient(135deg, #a78bfa, #f472b6, #60a5fa); box-shadow: 0 20px 40px -12px rgba(109, 40, 217, .45); }
.hero-ring img { display: block; border: 4px solid #fff; }
.feature-dark { background: radial-gradient(circle at 20% 0%, #2e1f52 0%, #15121f 55%); color: #e9e3ff; border-radius: 1.25rem; }
.feature-dark h2, .feature-dark h3 { color: #fff; }
.feature-dark p { color: #cfc7ea; }
.link-arrow { font-weight: 600; color: #6d28d9; }
.link-arrow:hover { color: #db2777; }
.img-zoom { overflow: hidden; border-radius: .75rem; }
.img-zoom img { transition: transform .4s ease; }
@media (prefers-reduced-motion: no-preference) { .card-hover:hover .img-zoom img { transform: scale(1.04); } }

/* App logos: show the whole logo, never crop */
.logo-frame { height: 13rem; display: flex; align-items: center; justify-content: center; padding: .75rem; border: 1px solid rgba(0, 0, 0, .05); }
.logo-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) { .card-hover:hover .logo-frame img { transform: scale(1.03); } }
