
:root{
  --bg:#020617;
  --bg-soft:#0b1120;
  --bg-card:#020617;
  --accent:#38bdf8;
  --accent-soft:rgba(56,189,248,0.14);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(148,163,184,0.35);
  --radius-lg:18px;
  --radius-md:12px;
  --shadow-lg:0 24px 60px rgba(15,23,42,0.9);
  --shadow-soft:0 18px 40px rgba(15,23,42,0.75);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:radial-gradient(circle at top,#1d283a 0,#020617 52%,#000 100%);
  color:var(--text);
}

a{
  color:inherit;
  text-decoration:none;
}

.page-wrap{
  max-width:1100px;
  margin:32px auto 40px;
  padding:0 16px 32px;
}

.card{
  background:linear-gradient(145deg,#020617,rgba(15,23,42,0.96));
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-lg);
  padding:20px 22px 22px;
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at top right,rgba(56,189,248,0.22),transparent 62%);
  opacity:0.45;
  pointer-events:none;
}

.card-inner{
  position:relative;
  z-index:1;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid rgba(148,163,184,0.4);
  background:rgba(15,23,42,0.9);
}

.badge-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 5px rgba(56,189,248,0.22);
}

.hero{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:flex-start;
  justify-content:space-between;
  margin-top:12px;
}

.hero-main{
  flex:1 1 260px;
}

.hero-title{
  font-size:26px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  margin:0 0 10px;
}

.hero-title span{
  color:var(--accent);
}

.hero-sub{
  margin:0 0 10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:11px;
  color:var(--muted);
}

.hero-meta span{
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.4);
  background:rgba(15,23,42,0.92);
}

.hero-side{
  flex:0 0 230px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hero-note{
  font-size:12px;
  color:var(--muted);
  padding:10px 12px;
  border-radius:var(--radius-md);
  border:1px dashed rgba(148,163,184,0.5);
  background:rgba(15,23,42,0.85);
}

.btn-main{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:9px 13px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  background:linear-gradient(135deg,#0ea5e9,#38bdf8);
  color:#0b1120;
  box-shadow:0 14px 32px rgba(56,189,248,0.5);
}

.btn-main span.icon{
  font-size:15px;
}

.btn-ghost{
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.6);
  padding:8px 13px;
  font-size:12px;
  background:rgba(15,23,42,0.85);
  color:var(--muted);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Grid */

.grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}

.card-scientist{
  position:relative;
  background:radial-gradient(circle at top,rgba(15,23,42,1),rgba(15,23,42,0.96));
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,0.6);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(18px);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.card-scientist:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 50px rgba(15,23,42,0.9);
  border-color:rgba(56,189,248,0.85);
  background:radial-gradient(circle at top,rgba(30,64,175,0.9),rgba(15,23,42,0.98));
}

.card-scientist-img-wrap{
  height:170px;
  overflow:hidden;
  position:relative;
}

.card-scientist-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.card-scientist-body{
  padding:10px 11px 11px;
}

.card-scientist-name{
  font-size:15px;
  font-weight:600;
  margin:0 0 4px;
}

.card-scientist-tag{
  font-size:11px;
  color:var(--muted);
  margin:0;
}

/* Detail page */

.page-detail{
  margin-top:24px;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:22px;
}

@media(max-width:800px){
  .page-detail{
    grid-template-columns:minmax(0,1fr);
  }
}

.detail-main-title{
  font-size:23px;
  margin:0 0 8px;
}

.detail-meta{
  font-size:12px;
  color:var(--muted);
  margin-bottom:10px;
}

.detail-meta span{
  margin-right:10px;
}

.detail-content p{
  font-size:14px;
  line-height:1.7;
  color:#e5e7eb;
  margin:0 0 10px;
}

.detail-aside{
  background:radial-gradient(circle at top,rgba(15,23,42,1),rgba(15,23,42,0.95));
  border-radius:var(--radius-md);
  border:1px solid rgba(148,163,184,0.6);
  box-shadow:var(--shadow-soft);
  padding:10px;
}

.detail-aside img{
  width:100%;
  border-radius:12px;
  display:block;
  object-fit:cover;
  max-height:260px;
}

.detail-aside-caption{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

.top-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.nav-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.6);
  background:rgba(15,23,42,0.9);
  color:var(--muted);
}

.nav-back span.icon{
  font-size:14px;
}

.footer{
  margin-top:20px;
  font-size:11px;
  color:var(--muted);
  text-align:right;
}
