/* ============================================
   Buddhapadma Mockup — Custom Styles
   Styles beyond Tailwind CDN defaults
   ============================================ */

/* ----- Prose styling for blog post content ----- */
.prose h2 {
  font-family: 'Noto Serif Thai', serif;
  color: #6B1D2A;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.prose h3 {
  font-family: 'Noto Serif Thai', serif;
  color: #6B1D2A;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.prose blockquote {
  border-left: 4px solid #D4A843;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.prose img {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose strong {
  font-weight: 600;
}

/* ----- Skeleton shimmer animation ----- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ----- Mobile menu transition ----- */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
}

#mobile-menu .mobile-menu-overlay {
  transition: opacity 0.3s ease-in-out;
}

/* ----- Admin sidebar transition ----- */
#admin-sidebar {
  transition: transform 0.3s ease-in-out;
}

/* ----- Status badge colors ----- */
.badge-paid {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-pending {
  background-color: #fef9c3;
  color: #854d0e;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-shipped {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-delivered {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-failed {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-draft {
  background-color: #f3f4f6;
  color: #4b5563;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-published {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ----- Form input focus states with gold ring ----- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #D4A843;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.3);
}

/* ----- Lesson sidebar scrollbar styling ----- */
.lesson-sidebar::-webkit-scrollbar {
  width: 4px;
}

.lesson-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.lesson-sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.lesson-sidebar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Firefox scrollbar styling */
.lesson-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f1f1f1;
}
