/* ================================================
   components.css — Komponen Reusable
   (Buttons, Cards, Modal, Notifikasi, Admin Badge,
    Form, Success Msg, Footer, Timeline, dll)
   ================================================ */

/* === BUTTONS === */
.btn-primary {
  background: var(--green-light); color: var(--green-deep);
  padding: 13px 28px; border-radius: 50px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; transition: all 0.25s;
  border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.6); padding: 13px 28px;
  border-radius: 50px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: all 0.25s; cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }

.btn-submit {
  width: 100%; background: var(--green-dark); color: white;
  border: none; padding: 13px; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold); color: white; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-gold:hover { background: #a8882e; transform: translateY(-1px); }

/* === FORM === */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e0ebe1; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-dark); background: #fafcfa;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-dark); background: white; }
.form-group textarea { resize: vertical; min-height: 90px; }

/* === SUCCESS MESSAGE === */
.success-msg {
  display: none; background: var(--green-light);
  border: 1.5px solid var(--green-dark); color: var(--green-dark);
  padding: 14px 18px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 16px; align-items: center; gap: 8px;
}
.success-msg.show { display: flex; }

/* === MODAL LOGIN === */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: white; border-radius: 20px; padding: 40px;
  width: 380px; max-width: 90vw; position: relative;
}
.modal-box h2 { font-size: 1.5rem; color: var(--green-deep); margin-bottom: 6px; }
.modal-box > p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.3rem; color: var(--text-light); cursor: pointer; }
.modal-err { display: none; color: #c0392b; font-size: 0.83rem; margin-top: 8px; }
.modal-err.show { display: block; }

/* === ADMIN BADGE (floating) === */
.admin-badge {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 500;
  background: var(--green-dark); color: white;
  padding: 10px 18px; border-radius: 50px;
  font-size: 0.83rem; font-weight: 600;
  box-shadow: var(--shadow); align-items: center; gap: 8px;
}
.admin-badge.show { display: flex; }
.admin-badge button { background: none; border: none; color: var(--green-light); cursor: pointer; font-size: 0.78rem; margin-left: 4px; }

/* === NOTIFIKASI === */
.notif {
  position: fixed; top: 80px; right: 20px; z-index: 9998;
  background: var(--green-dark); color: white;
  padding: 12px 20px; border-radius: 10px;
  font-size: 0.88rem; box-shadow: var(--shadow);
  transform: translateX(120%); transition: transform 0.4s ease;
}
.notif.show { transform: translateX(0); }

/* === TIMELINE (dipakai di Tentang) === */
.timeline { margin-top: 24px; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 24px; }
.timeline-dot {
  width: 12px; height: 12px; background: var(--green-dark);
  border-radius: 50%; margin-top: 4px; flex-shrink: 0; position: relative;
}
.timeline-dot::after {
  content: ''; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%); width: 2px; height: 100%; background: var(--green-light);
}
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-text h4 { font-size: 0.9rem; color: var(--green-dark); margin-bottom: 4px; }
.timeline-text p  { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }

/* === PENDIRI CARD (dipakai di Tentang) === */
.pendiri-card {
  background: var(--green-pale); border-radius: var(--radius);
  padding: 24px; border: 1px solid rgba(72,91,74,0.1);
  margin-top: 24px; display: flex; gap: 16px; align-items: center;
}
.pendiri-avatar {
  width: 60px; height: 60px; background: var(--green-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light); font-size: 1.5rem; flex-shrink: 0;
}
.pendiri-info h4 { font-family: var(--font-title); color: var(--green-deep); margin-bottom: 4px; }
.pendiri-info p  { font-size: 0.82rem; color: var(--text-mid); }

/* === FOOTER === */
footer {
  background: var(--green-deep); color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4  { color: white; margin-bottom: 14px; font-size: 0.95rem; }
footer p   { font-size: 0.83rem; line-height: 1.7; }
footer a   { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.83rem; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 0.78rem; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon {
  width: 40px; height: 40px; background: var(--green-dark); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light); font-weight: 700; font-family: var(--font-title);
}

/* === FILTER BAR (Prestasi) === */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; margin-top: 36px; }
.filter-btn {
  padding: 8px 18px; border-radius: 50px;
  border: 1.5px solid var(--green-light);
  background: white; color: var(--text-mid);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--green-dark); color: white; border-color: var(--green-dark); }
