/* ============================================ */
/* css/modal.css - STYLE UNTUK SEMUA MODAL      */
/* ============================================ */

/* Base Overlay untuk semua modal */
.modal-overlay-base,
.modal-eksplor-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: fadeInOverlay 0.3s ease;
}

.modal-overlay-base.active,
.modal-eksplor-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Konten Modal (Base) */
.modal-eksplor-content,
.modal-daftar-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-daftar-content {
  max-width: 500px;
}

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

/* Tombol Tutup (X) */
.modal-eksplor-close,
.modal-daftar-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-eksplor-close:hover,
.modal-daftar-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

/* === MODAL EKSPLOR === */
.modal-eksplor-header {
  padding: 32px 32px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
}

.modal-eksplor-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: inline-block;
  animation: bounceIcon 2s ease-in-out infinite;
}

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

.modal-eksplor-header h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-eksplor-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

.modal-eksplor-body {
  padding: 24px 32px;
}

.modal-section-title {
  color: #1e3c72;
  font-size: 1.1rem;
  margin-bottom: 16px;
  margin-top: 8px;
  font-weight: bold;
  border-left: 4px solid #FFD700;
  padding-left: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #2a5298;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-icon-wrap.portal { background: #dbeafe; }
.feature-icon-wrap.arsip { background: #fef3c7; }
.feature-icon-wrap.statistik { background: #d1fae5; }
.feature-icon-wrap.admin { background: #fce7f3; }
.feature-icon-wrap.kolab { background: #e0e7ff; }
.feature-icon-wrap.monitor { background: #fee2e2; }

.feature-text strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
  font-size: 14px;
}

.feature-text p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.how-it-works {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #2a5298;
}

.how-list {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
}

.how-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.5;
}

.step-number {
  background: #2a5298;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.keunggulan-box {
  background: #fffbeb;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #FFD700;
}

.keunggulan-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.keunggulan-list li {
  padding: 6px 0;
  color: #78350f;
  font-size: 14px;
  line-height: 1.5;
}

.modal-eksplor-footer {
  padding: 20px 32px 28px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.modal-eksplor-footer p {
  color: #6b7280;
  margin-bottom: 16px;
  font-size: 14px;
}

.btn-modal-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-modal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* === MODAL DAFTAR === */
.modal-daftar-header {
  padding: 28px 24px 16px;
  text-align: center;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
}

.modal-daftar-icon {
  font-size: 40px;
  margin-bottom: 8px;
  display: inline-block;
}

.modal-daftar-header h2 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 6px 0;
}

.modal-daftar-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.modal-daftar-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.choice-card:hover {
  border-color: #2a5298;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 82, 152, 0.15);
}

.choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.choice-icon.member { background: #dbeafe; }
.choice-icon.ppdb { background: #fef3c7; }

.choice-text { flex: 1; }

.choice-text h3 {
  font-size: 15px;
  font-weight: bold;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.choice-text p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.choice-arrow {
  font-size: 20px;
  color: #94a3b8;
  transition: transform 0.2s;
}

.choice-card:hover .choice-arrow {
  transform: translateX(4px);
  color: #2a5298;
}

.modal-daftar-footer {
  padding: 0 20px 24px;
  text-align: center;
}

.btn-modal-secondary {
  background: #f3f4f6;
  color: #4b5563;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-modal-secondary:hover {
  background: #e5e7eb;
  color: #1f2937;
}

/* Responsif Mobile */
@media (max-width: 480px) {
  .modal-overlay-base,
  .modal-eksplor-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-eksplor-content,
  .modal-daftar-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    animation: slideUpMobile 0.3s ease-out;
  }
  
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  
  .modal-eksplor-header,
  .modal-daftar-header {
    padding: 24px 20px 16px;
    border-radius: 20px 20px 0 0;
  }
  
  .modal-eksplor-body,
  .modal-daftar-body {
    padding: 20px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-eksplor-footer {
    padding: 16px 20px 20px;
  }
  
  .btn-modal-primary,
  .btn-modal-secondary {
    width: 100%;
    padding: 14px;
  }
}
