/* ============================================================
   PENGUMUMAN KELULUSAN 2026 — Mobile-First Design System
   Palette: Midnight Blue + Emerald + Gold
   Font: Plus Jakarta Sans (Google Fonts)
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  --bg-deep:       #0a0f1e;
  --bg-card:       rgba(255,255,255,0.07);
  --bg-card-hover: rgba(255,255,255,0.11);
  --border-glass:  rgba(255,255,255,0.13);

  --primary:       #10b981;   /* emerald */
  --primary-dark:  #059669;
  --primary-glow:  rgba(16,185,129,0.35);

  --gold:          #f59e0b;
  --gold-light:    #fcd34d;
  --gold-glow:     rgba(245,158,11,0.30);

  --accent:        #6366f1;   /* indigo accent */
  --danger:        #ef4444;
  --danger-soft:   rgba(239,68,68,0.15);
  --warning-soft:  rgba(245,158,11,0.15);
  --success-soft:  rgba(16,185,129,0.15);

  --text-main:     #f0f6ff;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;

  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --shadow-glow-green: 0 0 30px rgba(16,185,129,0.25), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow-gold:  0 0 30px rgba(245,158,11,0.25), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-card:       0 4px 24px rgba(0,0,0,0.35);

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(16,185,129,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(99,102,241,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(10,15,30,1) 0%, #0a0f1e 100%);
  z-index: -1;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav a:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

.navbar-nav a.active {
  color: var(--primary);
}

/* === MAIN WRAPPER === */
.main-wrapper {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === HERO SECTION === */
.hero-section {
  width: 100%;
  text-align: center;
  padding: 32px 20px 24px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-soft);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(16,185,129,0.3));
  animation: fadeInDown 0.6s ease 0.1s both;
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f0f6ff 0%, var(--gold-light) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.6s ease 0.2s both;
}

.hero-school {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  animation: fadeInDown 0.6s ease 0.3s both;
}

.hero-year {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--warning-soft);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 4px 14px;
  border-radius: 999px;
  margin-top: 4px;
  animation: fadeInDown 0.6s ease 0.4s both;
}

/* === CARD CONTAINER === */
.content-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 0 16px;
  animation: fadeInUp 0.5s ease 0.5s both;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

/* === COUNTDOWN SECTION === */
.countdown-wrapper {
  text-align: center;
  padding: 20px 0 10px;
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.countdown-date-text {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.countdown-unit {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
}

.countdown-number {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

/* === FORM SECTION === */
.form-section {
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}

.form-label span {
  color: var(--primary);
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.nisn-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 18px;
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
  -webkit-appearance: none;
}

.nisn-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: normal;
}

.nisn-input:focus {
  border-color: var(--primary);
  background: rgba(16,185,129,0.08);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-cek {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--primary-glow);
  -webkit-tap-highlight-color: transparent;
}

.btn-cek:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-cek:active {
  transform: translateY(0);
}

.form-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* === RESULT CARDS === */

/* LULUS */
.result-lulus {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-lulus::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.result-badge-lulus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px var(--primary-glow);
  animation: badge-pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.result-badge-lulus .icon { font-size: 1.3rem; }

.result-gif {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  animation: fadeInUp 0.5s ease;
}

.result-message {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.result-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
  padding: 0 8px;
}

/* === MOTIVASI BOX === */
.result-motivasi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg,
    rgba(245,158,11,0.10) 0%,
    rgba(16,185,129,0.08) 100%);
  border: 1px solid rgba(245,158,11,0.30);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 14px 0 22px;
  text-align: left;
  animation: fadeInUp 0.6s ease 0.3s both;
  position: relative;
  overflow: hidden;
}

.result-motivasi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.motivasi-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
  filter: drop-shadow(0 0 6px rgba(245,158,11,0.6));
  animation: float 3s ease-in-out infinite;
}

.motivasi-text {
  font-size: 0.92rem;
  color: var(--text-main);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* TIDAK LULUS */
.result-tidak-lulus {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-tidak-lulus::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.result-badge-gagal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
  animation: badge-pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.result-encourage {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* NOT FOUND */
.result-notfound {
  text-align: center;
}

.result-notfound-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.result-notfound-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.result-notfound-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.result-gif-notfound {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  opacity: 0.8;
}

/* === DATA TABLE === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-muted);
  vertical-align: middle;
}

.data-table td:first-child {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: 38%;
}

.data-table td:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* === BUTTONS === */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--border-glass);
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-back:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--primary);
  color: var(--primary);
}

/* === CONFETTI CANVAS === */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* === FOOTER === */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* === PAGE SECTIONS (About/Contact) === */
.page-header {
  text-align: center;
  padding: 20px 20px 10px;
  animation: fadeInDown 0.5s ease;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.page-header .page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
}

.info-row:last-child { border-bottom: none; }

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.5;
}

/* === DIVIDER === */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px;
  background: var(--border-glass);
}

/* === ANIMATIONS === */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

@keyframes badge-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .hero-logo { width: 75px; height: 75px; }

  .glass-card { padding: 22px 18px; }

  .countdown-grid { gap: 8px; }

  .countdown-unit { padding: 12px 6px; }

  .nisn-input { font-size: 1.1rem; padding: 14px 14px; }

  .btn-cek { padding: 14px 16px; font-size: 0.88rem; }

  .navbar-brand { font-size: 0.78rem; }

  .result-gif { width: 140px; height: 140px; }
}

@media (max-width: 360px) {
  .input-group { flex-direction: column; }
  .btn-cek { width: 100%; justify-content: center; border-radius: var(--radius-md); }
}