/* ================================================
   prestasi.css — Halaman Santri Berprestasi
   ================================================ */

/* Section wrapper */
.prestasi-section {
  background: linear-gradient(160deg, var(--cream) 0%, #f0f9ed 100%);
  padding: 80px 0;
  border-top: 1px solid rgba(72,91,74,0.08);
  border-bottom: 1px solid rgba(72,91,74,0.08);
  position: relative; overflow: hidden;
}
.prestasi-section::before {
  content: '★'; position: absolute; font-size: 20rem;
  color: rgba(201,168,76,0.04); top: -40px; right: -40px;
  font-family: serif; pointer-events: none;
}
.prestasi-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Podium Top 3 */
.prestasi-podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 16px; margin: 40px 0 56px; flex-wrap: wrap;
}
.podium-card {
  display: flex; flex-direction: column; align-items: center;
  background: white; border-radius: 20px; padding: 28px 20px 20px;
  border: 2px solid transparent; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; min-width: 220px; flex: 1; max-width: 300px;
}
.podium-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.podium-card.rank-1 { border-color: var(--gold); background: linear-gradient(160deg, #fffdf5, white); order: 2; padding-top: 36px; }
.podium-card.rank-2 { border-color: #b0b8b8; order: 1; }
.podium-card.rank-3 { border-color: #c9845a; order: 3; }

.rank-crown {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; font-family: var(--font-title);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.rank-1 .rank-crown { background: var(--gold); color: white; font-size: 1.2rem; }
.rank-2 .rank-crown { background: #b0b8b8; color: white; }
.rank-3 .rank-crown { background: #c9845a; color: white; }

.podium-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 14px;
}
.rank-1 .podium-avatar { background: var(--gold-light); color: var(--gold); }
.rank-2 .podium-avatar { background: #e8ecec; color: #7a8c8c; }
.rank-3 .podium-avatar { background: #f5e6dc; color: #c9845a; }

.podium-card h4   { font-size: 1rem; color: var(--green-deep); text-align: center; margin-bottom: 4px; }
.podium-kelas     { font-size: 0.78rem; color: var(--text-light); margin-bottom: 12px; text-align: center; }
.podium-badge {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.rank-1 .podium-badge { background: var(--gold-light); color: #8a6a1a; }
.rank-2 .podium-badge { background: #e8ecec; color: #5a6a6a; }
.rank-3 .podium-badge { background: #f5e6dc; color: #8a5a2a; }
.podium-prestasi  { font-size: 0.82rem; color: var(--text-mid); text-align: center; line-height: 1.5; }

/* Grid list prestasi */
.prestasi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.prestasi-card {
  background: white; border-radius: var(--radius);
  padding: 20px 22px; border: 1px solid rgba(72,91,74,0.1);
  display: flex; gap: 16px; align-items: flex-start; transition: all 0.25s;
}
.prestasi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prestasi-card-medal {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.medal-gold   { background: var(--gold-light); }
.medal-silver { background: #e8ecec; }
.medal-bronze { background: #f5e6dc; }
.medal-hijau  { background: var(--green-pale); }

.prestasi-card-info h4  { font-size: 0.92rem; color: var(--green-deep); margin-bottom: 3px; }
.pc-nama { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 4px; }
.pc-event { font-size: 0.75rem; color: var(--text-light); display: flex; gap: 5px; align-items: center; }

/* Admin bar prestasi */
.admin-prestasi-bar {
  display: none; background: #fff9ec; border: 1px solid #e8d080;
  border-radius: 12px; padding: 16px 20px; margin-bottom: 28px;
  flex-wrap: wrap; gap: 12px; align-items: flex-start;
}
.admin-prestasi-bar.show { display: flex; }
.admin-prestasi-bar input,
.admin-prestasi-bar select {
  font-family: var(--font-body); font-size: 0.88rem; padding: 9px 12px;
  border: 1.5px solid #e8d080; border-radius: 8px; outline: none;
  background: white; color: var(--text-dark); min-width: 150px;
}
.admin-prestasi-bar input:focus { border-color: var(--gold); }
