/* ============================================================
   TOYP 2026 — Ten Outstanding Young Persons of Bangladesh
   Palette: stage black / molten gold / champagne
   Type: Plus Jakarta Sans (only family, weight-driven scale)
   ============================================================ */

:root {
  --ink: #070409;
  --stage: #0d0912;
  --panel: #14101b;
  --line: rgba(240, 199, 94, 0.22);
  --gold: #f0c75e;
  --gold-deep: #b8862b;
  --gold-hot: #ffe9a8;
  --champagne: #fbebc2;
  --cream: #fff7e8;
  --muted: #a99a7c;
  --danger: #ff8b7a;
  --radius: 14px;
  --shadow-gold: 0 0 40px rgba(240, 199, 94, 0.12), 0 0 120px rgba(184, 134, 43, 0.08);
  --grad-gold: linear-gradient(112deg, #8a5f1c 0%, #d9ab45 22%, #ffe9a8 48%, #d9ab45 72%, #8a5f1c 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(184, 134, 43, 0.16), transparent 60%),
    radial-gradient(900px 500px at 85% 40%, rgba(184, 134, 43, 0.07), transparent 60%),
    var(--ink);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

/* ---- glitter canvas ---- */
#glitter {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.page { position: relative; z-index: 2; }

/* ---- gold text ---- */
.gold-text {
  background: var(--grad-gold);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldsweep 6s ease-in-out infinite;
}
@keyframes goldsweep {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: linear-gradient(rgba(7, 4, 9, 0.92), rgba(7, 4, 9, 0.65) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 199, 94, 0.1);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 0.92rem; font-weight: 600; }
.nav-links a { color: var(--champagne); opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-links .btn { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  font-family: inherit;
}
.btn-gold {
  background: var(--grad-gold);
  background-size: 200% auto;
  color: #241703;
  box-shadow: 0 8px 30px rgba(240, 199, 94, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 44px rgba(240, 199, 94, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
}
.btn-ghost:hover { background: rgba(240, 199, 94, 0.08); border-color: var(--gold); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 5vw 80px;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(7, 4, 9, 0.66) 0%, rgba(7, 4, 9, 0.78) 55%, rgba(7, 4, 9, 0.88) 100%),
    linear-gradient(rgba(7, 4, 9, 0.4), rgba(7, 4, 9, 0.25) 40%, var(--ink) 98%);
}
.hero-inner { max-width: 900px; animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-kicker {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  filter: drop-shadow(0 6px 40px rgba(240, 199, 94, 0.35));
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--gold-hot);
  margin-top: 14px;
  text-shadow: 0 2px 24px rgba(240, 199, 94, 0.4);
}
.hero-line {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--champagne);
  opacity: 0.88;
  font-weight: 300;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
}
.hero-cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-date {
  margin-top: 44px;
  display: inline-flex; gap: 14px; align-items: center;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 9, 18, 0.55);
  backdrop-filter: blur(6px);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 92vw;
}
.hero-date .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---- sections ---- */
.section { padding: 96px 5vw; max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section-title::after {
  content: '';
  display: block;
  width: 72px; height: 3px;
  margin-top: 18px;
  background: var(--grad-gold);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(240, 199, 94, 0.6);
}
.section-head.center { text-align: center; }
.section-head.center .section-title::after { margin-left: auto; margin-right: auto; }
.section-intro { max-width: 640px; margin-top: 16px; color: var(--muted); font-weight: 300; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.about-copy p { margin-bottom: 18px; color: var(--champagne); opacity: 0.9; font-weight: 300; }
.about-copy p:first-of-type { font-size: 1.12rem; font-weight: 400; opacity: 1; }
.about-visual { position: relative; }
.about-visual img { filter: drop-shadow(0 20px 60px rgba(240, 199, 94, 0.25)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- glance strip ---- */
.glance {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.glance-cell {
  padding: 34px 26px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.glance-cell:first-child { border-left: none; }
.glance-cell .g-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.glance-cell .g-value { font-size: 1.25rem; font-weight: 800; color: var(--gold-hot); margin-top: 8px; line-height: 1.3; }

/* ---- stats ---- */
.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 10px; }
.stat b { display: block; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.stat span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ---- categories ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(240, 199, 94, 0.05), rgba(20, 16, 27, 0.6));
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cat-item:hover { border-color: var(--gold-deep); box-shadow: var(--shadow-gold); }
.cat-item .spark { flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: var(--grad-gold); box-shadow: 0 0 12px rgba(240, 199, 94, 0.7); }

/* ---- gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--panel);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 18px 14px;
  background: linear-gradient(transparent, rgba(7, 4, 9, 0.9));
  font-size: 0.88rem; font-weight: 600; color: var(--champagne);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.more-link { text-align: center; margin-top: 36px; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 4, 9, 0.94);
  display: none;
  place-items: center;
  padding: 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 0 80px rgba(240, 199, 94, 0.25); object-fit: contain; }
.lightbox .lb-cap { margin-top: 16px; text-align: center; color: var(--champagne); font-weight: 600; }

/* ---- hall of fame ---- */
.year-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.year-tab {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--champagne);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
}
.year-tab:hover { border-color: var(--gold-deep); color: var(--gold); }
.year-tab.active {
  background: var(--grad-gold);
  color: #241703;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(240, 199, 94, 0.3);
}
.winners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.winner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 199, 94, 0.06), var(--panel) 55%);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.winner-card:hover { transform: translateY(-5px); border-color: var(--gold-deep); box-shadow: var(--shadow-gold); }
.winner-photo { aspect-ratio: 1/1.05; background: radial-gradient(circle at 50% 35%, rgba(240, 199, 94, 0.18), var(--panel) 70%); position: relative; }
.winner-photo img { width: 100%; height: 100%; object-fit: cover; }
.winner-photo .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 800; color: rgba(240, 199, 94, 0.5);
}
.winner-meta { padding: 16px 16px 20px; text-align: center; }
.winner-meta b { display: block; font-size: 1rem; line-height: 1.35; color: var(--gold-hot); }
.winner-meta span { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 500; line-height: 1.45; }

/* ---- nomination ---- */
.rules-list { counter-reset: rule; display: grid; gap: 14px; max-width: 760px; }
.rule {
  counter-increment: rule;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 16, 27, 0.55);
  font-weight: 400; font-size: 0.95rem; color: var(--champagne);
}
.rule::before {
  content: counter(rule);
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #241703;
  font-weight: 800; font-size: 0.95rem;
}
.deadline-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-weight: 700;
  background: rgba(240, 199, 94, 0.06);
}

.nom-form {
  margin-top: 60px;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(240, 199, 94, 0.06), rgba(13, 9, 18, 0.85) 40%);
  box-shadow: var(--shadow-gold);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--champagne); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(7, 4, 9, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 199, 94, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-msg { font-weight: 600; font-size: 0.95rem; }
.form-msg.ok { color: var(--gold-hot); }
.form-msg.err { color: var(--danger); }

/* ---- footer ---- */
.footer {
  margin-top: 60px;
  padding: 56px 5vw 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer img { height: 60px; margin: 0 auto 18px; }
.footer .pres { margin-top: 14px; color: var(--champagne); font-weight: 600; }
.footer .pres span { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.footer .admin-link { display: inline-block; margin-top: 22px; opacity: 0.4; font-size: 0.8rem; }
.footer .admin-link:hover { opacity: 0.9; color: var(--gold); }

/* ---- page hero (inner pages) ---- */
.page-hero {
  padding: 170px 5vw 60px;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(184, 134, 43, 0.22), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-weight: 300; }

/* ---- admin ---- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 120px 5vw 80px; }
.admin-login { max-width: 400px; margin: 22vh auto; text-align: center; }
.admin-login input { width: 100%; margin: 18px 0; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px;
  background: rgba(20, 16, 27, 0.6);
}
.admin-card h3 { margin-bottom: 16px; color: var(--gold-hot); font-size: 1.05rem; }
.admin-field { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; margin-bottom: 12px; }
.admin-field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding-top: 12px; }
.admin-field input, .admin-field textarea, .admin-field select,
.admin-inline input, .admin-inline select {
  width: 100%;
  font-family: inherit; font-size: 0.92rem;
  color: var(--cream);
  background: rgba(7, 4, 9, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
}
.admin-field textarea { min-height: 90px; resize: vertical; }
.admin-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.admin-inline > * { flex: 1; min-width: 140px; }
.admin-inline .btn { flex: none; }
.admin-list-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
  background: rgba(7, 4, 9, 0.4);
}
.admin-list-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.admin-list-item .grow { flex: 1; min-width: 0; }
.admin-list-item .grow input { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-danger { background: transparent; border: 1px solid rgba(255, 139, 122, 0.5); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 139, 122, 0.1); }
.save-bar {
  position: sticky; bottom: 18px; z-index: 20;
  display: flex; gap: 14px; align-items: center; justify-content: flex-end;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(13, 9, 18, 0.92); backdrop-filter: blur(8px);
  margin-top: 26px;
}
.nom-entry { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; background: rgba(7,4,9,0.4); font-size: 0.9rem; }
.nom-entry b { color: var(--gold-hot); }
.nom-entry dl { display: grid; grid-template-columns: 220px 1fr; gap: 4px 16px; margin-top: 10px; }
.nom-entry dt { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.nom-entry dd { color: var(--champagne); }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .glance { grid-template-columns: 1fr 1fr; }
  .glance-cell:nth-child(3) { border-left: none; }
  .glance-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .admin-field { grid-template-columns: 1fr; gap: 6px; }
  .admin-field label { padding-top: 0; }
  .nom-entry dl { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 4, 9, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 5vw 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid rgba(240, 199, 94, 0.08); }
  .nav-links .btn { margin-top: 14px; text-align: center; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 5vw; }
}

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