/* =========================================================
   WINNERS.CSS — InnovateHERs
   Shared by scholarship.html, hall-of-fame.html and judges.html:
   winner polaroids, the scholarship sub-nav, and judge cards.
   ========================================================= */

/* ── Hall of Fame ── */
.winners-section {
  background: linear-gradient(to bottom, #fce4ec, #fef6f8);
  padding: 2.5rem 2rem 4.5rem;
  margin-top: 0;
  position: relative;
}
.winners-section::before {
  content: '';
  position: absolute; top: -20px; left: 0; right: 0; height: 24px;
  background: #fce4ec;
  clip-path: polygon(0 100%, 1.5% 30%, 3% 80%, 5% 10%, 7% 65%, 9% 25%, 11% 70%, 13% 40%, 15% 85%, 17% 20%, 19% 60%, 21% 15%, 23% 55%, 25% 80%, 27% 30%, 29% 70%, 31% 20%, 33% 60%, 35% 85%, 37% 35%, 39% 70%, 41% 10%, 43% 55%, 45% 80%, 47% 30%, 49% 65%, 51% 15%, 53% 55%, 55% 80%, 57% 25%, 59% 60%, 61% 15%, 63% 55%, 65% 80%, 67% 30%, 69% 70%, 71% 20%, 73% 60%, 75% 85%, 77% 30%, 79% 70%, 81% 15%, 83% 55%, 85% 80%, 87% 35%, 89% 70%, 91% 20%, 93% 55%, 95% 85%, 97% 35%, 100% 100%);
}
.winners-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
/* confetti layer: sits over the section but never blocks clicks */
.confetti-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.winners-round-label {
  display: inline-block; margin-top: .2rem;
  font-family: 'Caveat', cursive; font-size: 1.2rem; font-weight: 700;
  background: #e36180; color: #fff;
  padding: .1rem .9rem; border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 1px 2px 5px rgba(227,97,128,0.3);
}
.winners-note {
  margin-top: .7rem; font-family: 'Caveat', cursive; font-size: 1.15rem; color: #888;
}
.winners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; margin-top: 2.4rem; }

/* polaroid: white frame, square photo, handwritten caption underneath */
.winner-card {
  position: relative; text-align: center;
  background: #fff; border-radius: 2px;
  padding: 12px 12px 1.1rem;
  box-shadow: 3px 6px 18px rgba(0,0,0,0.13), 0 1px 3px rgba(0,0,0,0.06);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.winner-card::before {
  content: '';
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-1.5deg);
  width: 64px; height: 20px;
  background: rgba(255,240,120,0.85);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  z-index: 2;
}
.winner-card:nth-child(1) { transform: rotate(-2deg); }
.winner-card:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.winner-card:nth-child(3) { transform: rotate(-1deg); }
.winner-card:hover { transform: rotate(0) translateY(-8px) !important; box-shadow: 4px 18px 40px rgba(0,0,0,0.2); }
.winner-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%;
  display: block; border-radius: 1px;
  outline: 1px solid #f3dfe5; outline-offset: -1px; /* keeps white-background photos from melting into the frame */
}

/* round medal sticker on the photo's corner */
.winner-place {
  position: absolute; top: -18px; right: -18px; z-index: 3;
  width: 70px; height: 70px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-weight: 700; line-height: .9;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18), inset 0 0 0 3px rgba(255,255,255,0.55);
  transform: rotate(10deg);
}
.winner-place b { font-size: 1.5rem; }
.winner-place span { font-family: 'Nunito', sans-serif; font-size: .78rem; font-weight: 900; margin-top: .15rem; }
.winner-place.first  { background: #ffd966; color: #6b4c00; }
.winner-place.second { background: #e3e3e3; color: #3a3a3a; }
.winner-place.third  { background: #f4b88a; color: #5c2d0a; }

.winner-info { padding-top: .9rem; }
.winner-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: #2d2d2d;
}
.winner-members {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem; color: #888; margin-top: .15rem;
}
.winner-link {
  display: block; width: fit-content; margin: .6rem auto 0;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem; font-weight: 700; color: #e36180;
  border-bottom: 2px dashed #f9a8c0; padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.winner-link:hover { color: #c45c78; border-bottom-color: #e36180; }

@media (max-width: 640px) {
  .winners-grid { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* ── Sub-page header (Hall of Fame / Judges) ── */
.subpage-header { text-align: center; padding: 2.2rem 1.5rem 1rem; position: relative; z-index: 10; }
.subpage-header .section-label { margin-bottom: .2rem; }
.subpage-header h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.1; color: #2d2d2d;
}
.subpage-header p {
  margin: .6rem auto 0; max-width: 640px;
  font-family: 'Caveat', cursive; font-size: 1.25rem; color: #888;
}

/* ── "See more" buttons under the latest winners ── */
.winners-more { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 3rem; }
.winners-more a {
  font-family: 'Caveat', cursive; font-size: 1.2rem; font-weight: 700;
  padding: .55rem 1.6rem; border-radius: 999px;
  transition: transform .18s, box-shadow .2s, background .2s;
}
.winners-more a:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 22px rgba(227,97,128,0.25); }
.winners-more .primary { background: #e36180; color: #fff; }
.winners-more .primary:hover { background: #c45c78; }
.winners-more .secondary { background: #fff; color: #c45c78; border: 1.5px solid #f9a8c0; }

/* ── Rounds on the Hall of Fame page ── */
.winners-round + .winners-round { margin-top: 4rem; padding-top: 3rem; border-top: 2px dashed #f9c0d0; }
.finalists-list {
  margin-top: 2.4rem; background: #fff; border-radius: 4px; padding: 1.4rem 1.6rem;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
}
.finalists-list h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: #2d2d2d; margin-bottom: .6rem; }
.finalists-list ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .3rem 1.2rem; }
.finalists-list li { font-size: .95rem; color: #444; }
.finalists-list li::before { content: '\2726'; color: #f9a8c0; margin-right: .5rem; }
.coming-soon {
  text-align: center; margin-top: 1rem;
  font-family: 'Caveat', cursive; font-size: 1.3rem; color: #c45c78;
}

/* ── Judge cards (polaroids, gold tape like the winners) ── */
.judges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.6rem 2rem; max-width: 960px; margin: 2.4rem auto 0;
}
.judge-card {
  position: relative; text-align: center;
  background: #fff; border-radius: 2px; padding: 12px 12px 1.2rem;
  box-shadow: 3px 6px 18px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.judge-card:nth-child(3n+1) { transform: rotate(-1.5deg); }
.judge-card:nth-child(3n+2) { transform: rotate(1deg); }
.judge-card:nth-child(3n)   { transform: rotate(-.6deg); }
.judge-card:hover { transform: rotate(0) translateY(-8px); box-shadow: 4px 18px 40px rgba(0,0,0,0.18); }
.judge-card::before {
  content: ''; position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-1.5deg);
  width: 64px; height: 20px; border-radius: 2px;
  background: rgba(255,240,120,0.85); box-shadow: 0 1px 3px rgba(0,0,0,0.12); z-index: 2;
}
.judge-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; display: block; background: #fce4ec; }
.judge-photo.placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #f9a8c0; }
.judge-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; color: #2d2d2d; margin-top: .9rem; line-height: 1.15; }
.judge-title { font-family: 'Caveat', cursive; font-size: 1.15rem; color: #c45c78; margin-top: .15rem; line-height: 1.2; }
.judge-bio { font-size: .9rem; color: #666; line-height: 1.6; margin-top: .5rem; }
.judge-link {
  display: inline-block; margin-top: .6rem;
  font-family: 'Caveat', cursive; font-size: 1.05rem; font-weight: 700; color: #e36180;
  border-bottom: 2px dashed #f9a8c0;
}

/* ── Judges page: one paper card, polaroid tucked in the corner, text wrapping around it ── */
.judges-story {
  position: relative; max-width: 980px; margin: 1.5rem auto 0;
  padding: 1rem 0 0;            /* sits right on the grid paper, no card */
}
.judges-story::after { content: ''; display: table; clear: both; }
.judges-photo {
  float: right; width: 46%; margin: 0 0 1.4rem 2.6rem;
  position: relative; background: #fff; padding: 12px 12px 0; border-radius: 2px;
  box-shadow: 3px 8px 22px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.06);
  transform: rotate(3deg); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.judges-photo:hover { transform: rotate(0) translateY(-6px); }
.judges-photo::before, .judges-photo::after {
  content: ''; position: absolute; top: -11px; width: 70px; height: 22px; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); z-index: 2;
}
.judges-photo::before { left: 18px;  background: rgba(255,240,120,0.85); transform: rotate(-6deg); }
.judges-photo::after  { right: 18px; background: rgba(168,212,162,0.9); transform: rotate(5deg); }
.judges-photo img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.judges-photo figcaption {
  text-align: center; padding: .5rem 0 .65rem;
  font-family: 'Caveat', cursive; font-size: 1.25rem; color: #c45c78;
}
/* lace between the header and the content */
.judges-lace { max-width: 980px; margin: 1.6rem auto 0; }
.judges-round { margin: 0 0 .9rem; }
.judges-story p { font-size: 1rem; line-height: 1.85; color: #555; margin-bottom: 1rem; }
.ywa-pillars { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1.2rem; }
.ywa-pillars li {
  font-family: 'Caveat', cursive; font-size: 1.15rem; font-weight: 700;
  padding: .1rem .9rem; border-radius: 3px; color: #fff; background: #e36180;
  transform: rotate(-2deg); box-shadow: 1px 2px 5px rgba(227,97,128,0.25);
}
.ywa-pillars li:nth-child(even) { background: #6baa6b; transform: rotate(2deg); box-shadow: 1px 2px 5px rgba(107,170,107,0.25); }
.judges-anon {
  font-family: 'Caveat', cursive; font-size: 1.25rem !important; line-height: 1.45 !important;
  color: #888 !important; padding-left: .8rem; border-left: 3px solid #f9c0d0;
}
.judges-visit {
  display: inline-block; margin-top: .4rem;
  font-family: 'Caveat', cursive; font-size: 1.2rem; font-weight: 700;
  padding: .5rem 1.5rem; border-radius: 999px; background: #e36180; color: #fff;
  transition: transform .18s, box-shadow .2s, background .2s;
}
.judges-visit:hover { background: #c45c78; transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 22px rgba(227,97,128,0.25); }
/* iPad + phone: no room to wrap, so the photo sits inside the card at the top, lined up with the text */
@media (max-width: 960px) {
  .judges-story { padding-top: .5rem; display: flex; flex-direction: column; align-items: flex-start; }
  .judges-story .judges-round { order: -2; margin-bottom: 1.6rem; }   /* round tag first... */
  .judges-story .judges-photo { order: -1; align-self: center; }   /* ...then the photo, then the text */
  .judges-photo { float: none; width: 100%; max-width: 560px; margin: 0 auto 1.8rem; transform: rotate(-1deg); }
}
@media (max-width: 640px) {
  .judges-photo { padding: 9px 9px 0; margin-bottom: 1.5rem; }
}
