/* ── landing.css — Landing Page Specific Styles ── */

/* Header */
.site-header {
  background: linear-gradient(160deg, var(--green-700) 0%, var(--green-500) 60%, var(--green-400) 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.header-ornament {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
}
.top-ornament {
  top: 0;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0, var(--gold-400) 10px, transparent 10px, transparent 20px);
  opacity: .8;
}
.bottom-ornament {
  bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0, rgba(255,255,255,.18) 10px, transparent 10px, transparent 20px);
}

/* animated background circles */
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.site-header::before { width: 400px; height: 400px; top: -120px; right: -80px; }
.site-header::after  { width: 250px; height: 250px; bottom: -60px; left: 5%; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  flex-wrap: wrap;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-circle {
  width: 68px; height: 68px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-arabic  { font-family: var(--font-arabic); font-size: 1.15rem; color: var(--gold-400); line-height: 1.2; }
.logo-name    { font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.logo-sub     { font-size: 0.73rem; color: rgba(255,255,255,.75); }

/* Title */
.header-title-block { text-align: right; }
.header-label {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid rgba(230,185,74,.4);
}
.header-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
}
.header-title span { color: var(--gold-400); }
.header-desc { font-size: 0.88rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* Wave */
.hero-wave { margin-top: -2px; line-height: 0; }
.hero-wave svg { width: 100%; height: 44px; display: block; }

/* Main */
.main-content { padding: 0 0 60px; }

/* Info Ribbon */
.info-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--green-50), #e8f8f0);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--green-700);
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 24px;
}
.info-ribbon svg { flex-shrink: 0; color: var(--green-500); }

/* Search Section */
.search-section { margin-bottom: 40px; }
.search-card {
  border-top: 4px solid var(--green-500);
  text-align: center;
}
.search-card__icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--green-200);
}
.search-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-700);
  margin-bottom: 6px;
}
.search-card__sub {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* Search form */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-input-field {
  padding-left: 44px;
  height: 52px;
  font-size: 0.97rem;
  border-width: 2px;
}
.search-btn { height: 52px; flex-shrink: 0; }

/* Result area */
.result-area {
  margin-top: 28px;
  border-top: 1px solid var(--gray-100);
  padding-top: 24px;
}
.result-loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--gray-500); font-size: 0.95rem; padding: 20px 0;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-notfound {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 0;
}
.nf-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-500); }
.nf-sub   { font-size: 0.87rem; color: var(--gray-400); max-width: 340px; }

/* Result Card */
.result-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp .35s ease;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card__header {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  padding: 18px 24px;
  color: white;
}
.result-header-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.result-logo { opacity: .9; }
.result-school { font-weight: 700; font-size: 0.95rem; }
.result-label-kecil { font-size: 0.75rem; opacity: .8; }
.result-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 10px;
}

.result-card__body { padding: 20px 24px; }

/* Siswa info */
.siswa-info {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.info-row {
  display: grid;
  grid-template-columns: 140px 14px 1fr;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.info-row:last-child { margin-bottom: 0; }
.info-label { color: var(--gray-500); font-weight: 500; }
.info-colon { color: var(--gray-400); }
.info-value { font-weight: 600; color: var(--gray-900); word-break: break-word; }

/* Status box */
.status-box {
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 18px;
  transition: background .3s;
}
.status-box.lulus { background: linear-gradient(135deg, var(--green-500), var(--green-600)); }
.status-box.tidak { background: linear-gradient(135deg, #ef4444, #dc2626); }
.status-icon { font-size: 2.2rem; margin-bottom: 6px; }
.status-label {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
}
.status-sublabel { font-size: 0.9rem; color: rgba(255,255,255,.88); }

/* Keterangan */
.keterangan-area {
  background: var(--gray-50);
  border-left: 3px solid var(--gray-300);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.ket-label { font-size: 0.78rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ket-value { font-size: 0.9rem; color: var(--gray-700); }

/* Result actions */
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* How-to */
.howto-section { margin-top: 8px; }
.howto-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 20px;
  position: relative;
}
.howto-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--green-400);
  border-radius: 2px;
  margin: 8px auto 0;
}
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.howto-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.howto-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  margin: 0 auto 10px;
  box-shadow: 0 4px 10px rgba(29,154,88,.3);
}
.howto-text { font-size: 0.87rem; color: var(--gray-600, #4b5563); line-height: 1.5; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: rgba(255,255,255,.8);
  padding: 28px 0;
}
.footer-inner { text-align: center; }
.footer-name  { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 6px; }
.footer-info  {
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.footer-info a { color: var(--gold-400); text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.footer-copy  { font-size: 0.78rem; color: rgba(255,255,255,.45); }

/* ── Print styles ── */
@media print {
  .site-header, .howto-section, .site-footer, .search-form, .info-ribbon,
  .result-actions, .search-card__icon, .search-card__title, .search-card__sub { display: none !important; }
  .result-area { display: block !important; }
  .result-card { box-shadow: none; border: 2px solid #ccc; }
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .header-inner { flex-direction: column; text-align: center; }
  .header-title-block { text-align: center; }
  .logo-wrap { justify-content: center; }
  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }
  .howto-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }
}
