/* ============================================================
   AlumniKita — app.css
   Custom styles di atas Bootstrap 5
   ============================================================ */

/* ---- Font ---- */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: .925rem;
  color: #1a1a2e;
  background-color: #f5f7fa;
}

/* ---- Navbar ---- */
.ak-navbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  height: 56px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.ak-navbar .navbar-brand { letter-spacing: -.01em; font-size: 1rem; }
.ak-navbar .nav-link      { font-size: .85rem; opacity: .8; transition: opacity .15s; }
.ak-navbar .nav-link:hover { opacity: 1; }

/* ---- Layout utama ---- */
.ak-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* ---- Sidebar ---- */
.ak-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #eee;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.ak-main {
  flex: 1;
  min-width: 0;
  background: #f5f7fa;
}

/* ---- Sidebar nav links ---- */
.ak-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: #555 !important;
  padding: .5rem .75rem;
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.ak-nav-link i { font-size: 1rem; min-width: 20px; }
.ak-nav-link:hover,
.ak-nav-link.active {
  background: #eef2ff;
  color: #4361ee !important;
}
.ak-nav-link.active { font-weight: 600; }

.ak-sidebar-footer { background: #fafafa; }

/* ---- Stat cards ---- */
.ak-stat-card {
  transition: transform .2s, box-shadow .2s;
  background: #fff !important;
}
.ak-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.07) !important;
}
.ak-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ---- Quick links ---- */
.ak-quick-card {
  transition: transform .2s, box-shadow .2s;
  background: #fff !important;
}
.ak-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.07) !important;
}

/* ---- Alumni cards (direktori) ---- */
.ak-kartu-alumni {
  transition: transform .2s, box-shadow .2s;
  background: #fff !important;
}
.ak-kartu-alumni:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.09) !important;
}

.ak-alumni-card {
  transition: background .15s;
}
.ak-alumni-card:hover { background: #f0f4ff; }

/* ---- Avatar sizes ---- */
.ak-avatar-sm  { width: 32px;  height: 32px; }
.ak-avatar-md  { width: 48px;  height: 48px; }
.ak-avatar-lg  { width: 64px;  height: 64px; }
.ak-avatar-xl  { width: 100px; height: 100px; }

.ak-avatar-initials {
  background: linear-gradient(135deg, #4361ee, #7b2ff7);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.ak-avatar-sm.ak-avatar-initials  { font-size: .65rem; }
.ak-avatar-xl.ak-avatar-initials  { font-size: 1.5rem; }

/* ---- Logo icon (halaman publik) ---- */
.ak-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #4361ee, #7b2ff7);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ---- Cards generik ---- */
.card { box-shadow: 0 1px 4px rgba(0,0,0,.05); }

/* ---- Form controls ---- */
.form-control, .form-select {
  border-radius: 10px;
  border-color: #e2e8f0;
  font-size: .875rem;
  padding: .5rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67,97,238,.12);
}
.input-group .form-control { border-radius: 0; }
.input-group .form-control:first-child  { border-radius: 10px 0 0 10px; }
.input-group .form-control:last-child   { border-radius: 0 10px 10px 0; }
.input-group-text {
  border-color: #e2e8f0;
  background: #f8fafc;
  font-size: .875rem;
}

/* ---- Buttons ---- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { background: #4361ee; border-color: #4361ee; }
.btn-primary:hover { background: #3451d1; border-color: #3451d1; }

/* ---- Badge angkatan ---- */
.badge { font-weight: 500; letter-spacing: .01em; }

/* ---- Alert bar (belum verifikasi) ---- */
.ak-alert-top {
  position: sticky;
  top: 56px;
  z-index: 1000;
}

/* ---- Pagination ---- */
.page-link {
  font-size: .8rem;
  padding: .35rem .65rem;
  color: #4361ee;
  border-color: #e2e8f0;
}
.page-item.active .page-link {
  background-color: #4361ee;
  border-color: #4361ee;
}

/* ---- Opacity utility (saat loading AJAX) ---- */
.opacity-50 { opacity: .5; transition: opacity .2s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
  .ak-sidebar { display: none !important; }
  .ak-main    { width: 100%; }
}

/* ============================================================
   Forum — Fase 2
   ============================================================ */

/* Highlight animasi komentar baru */
@keyframes ak-highlight-fade {
  0%   { background: #fffbcc; }
  100% { background: transparent; }
}
.ak-komentar-highlight {
  animation: ak-highlight-fade 2s ease-out forwards;
  border-radius: 8px;
}

/* Badge warna subtle untuk Bootstrap 5 */
.bg-secondary-subtle { background-color: #f1f3f5 !important; }
.bg-primary-subtle   { background-color: #eef2ff !important; }
.bg-success-subtle   { background-color: #ecfdf5 !important; }
.bg-info-subtle      { background-color: #eff8ff !important; }
.bg-warning-subtle   { background-color: #fffbeb !important; }
.bg-danger-subtle    { background-color: #fff1f2 !important; }
.text-secondary { color: #6c757d !important; }
.text-primary   { color: #4361ee !important; }
.text-success   { color: #059669 !important; }
.text-info      { color: #0284c7 !important; }
.text-warning   { color: #d97706 !important; }
.text-danger    { color: #dc2626 !important; }

/* min-w-0 untuk flex truncation */
.min-w-0 { min-width: 0; }

/* ============================================================
   Galeri — Fase 3
   ============================================================ */

/* Album card hover */
.ak-album-card {
  transition: box-shadow .2s, transform .15s;
  background: #fff !important;
}
.ak-album-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.09) !important;
  transform: translateY(-2px);
}

/* Lightbox modal backdrop lebih gelap */
#lightboxModal .modal-dialog {
  max-width: 92vw;
}
#lightboxModal .modal-content {
  box-shadow: none;
}

/* Foto grid aspect-ratio fallback (IE tidak support, tapi OK) */
.ak-foto-thumb {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   Donasi — Fase 4
   ============================================================ */
.ak-campaign-card { transition: box-shadow .2s, transform .15s; background:#fff !important; }
.ak-campaign-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09) !important; transform:translateY(-2px); }
.ak-campaign-poster { height: 180px; transition: transform .3s; }
.ak-campaign-card:hover .ak-campaign-poster { transform: scale(1.04); }
.ak-campaign-poster-empty { height: 180px; }
.ak-campaign-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ak-nominal-btn.active { font-weight: 600; }
.fw-mono { font-family: 'Courier New', monospace; letter-spacing: .05em; }
