/* Central CSS for Articles - Izin Satset
   Extracted from inline styles across all article files
*/

/* Typography and Base Styles */
* {
  font-family: "Inter", sans-serif;
}

body {
  background: #f8fafc;
}

/* Card Hover Effects */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* FAQ Card Hover */
.faq-card:hover {
  border-color: #2563eb;
  background: #f0f7ff;
}

/* Section Divider */
.section-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* List Checkmarks */
.list-check li::before {
  content: "✓";
  color: #2563eb;
  font-weight: 700;
  margin-right: 10px;
  display: inline-block;
}

.list-check li {
  list-style: none;
  margin-bottom: 6px;
}

.list-check {
  padding-left: 0;
}

/* Icon Circle Small */
.icon-circle-sm {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

/* Step Number */
.step-number {
  min-width: 44px;
  height: 44px;
}

/* Share Modal */
#shareModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

#shareModal.hidden {
  display: none;
}

#shareModal > div {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 20rem;
  margin: 0 auto;
}

#shareModal h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: center;
}

#shareModal .gap-3 {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

#shareModal button {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#shareModal .text-lg {
  font-size: 1.125rem;
}

#shareModal .fab, #shareModal .fas {
  font-size: 1.125rem;
}

/* Specific button styles for share modal */
#shareModal button[title="Instagram"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

#shareModal button[title="Instagram"]:hover {
  opacity: 0.9;
}

#shareModal button[title="Facebook"] {
  background-color: #2563eb;
  color: white;
}

#shareModal button[title="Facebook"]:hover {
  background-color: #1d4ed8;
}

#shareModal button[title="WhatsApp"] {
  background-color: #10b981;
  color: white;
}

#shareModal button[title="WhatsApp"]:hover {
  background-color: #059669;
}

#shareModal button[title="Salin Tautan"] {
  background-color: #e2e8f0;
  color: #334155;
}

#shareModal button[title="Salin Tautan"]:hover {
  background-color: #cbd5e1;
}

/* Modal animation */
#shareModal {
  backdrop-filter: blur(2px);
}

/* Hide modal when active to prevent scroll */
body.modal-open {
  overflow: hidden;
}

#shareModal.hidden > div {
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#shareModal:not(.hidden) > div {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
