/*
 * VG Burger — Custom CSS
 * TailwindCSS loaded via CDN in head.html
 * This file: layout helpers, prose overrides, animations, accessibility
 */

/* ============================================================
   BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TRANSITIONS
   ============================================================ */
a,
button {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* ============================================================
   FOCUS VISIBLE (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   PROSE OVERRIDES
   Augment Tailwind Typography plugin defaults
   ============================================================ */
.prose {
  max-width: 68ch;
  color: #374151;
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0fdf4;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.prose ul,
.prose ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
  color: #374151;
  line-height: 1.75;
}

.prose blockquote {
  border-left: 3px solid #059669;
  background: #f0fdf4;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: normal;
  color: #374151;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose a {
  color: #059669;
  font-weight: 600;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  font-weight: 700;
  color: #111827;
}

.prose img {
  border-radius: 0.75rem;
  margin: 1.75rem 0;
}

/* ============================================================
   PROSE TABLES
   ============================================================ */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.875rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose thead {
  border-bottom: 2px solid #d1fae5;
  background: #f0fdf4;
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0fdf4;
  color: #374151;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:hover {
  background: #f9fafb;
}

@media (max-width: 640px) {
  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================================
   LINE CLAMP
   ============================================================ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PAGINATION (Hugo internal template)
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #f0fdf4;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.pagination a {
  color: #4b5563;
  background: #f9fafb;
  border-color: #e5e7eb;
}

.pagination a:hover {
  background: #f0fdf4;
  border-color: #059669;
  color: #059669;
}

.pagination .active {
  color: white;
  background: #059669;
  border-color: #059669;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   HERO ANIMATION (fade-in from below on load)
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeSlideUp 0.6s ease-out both;
}

.hero-content-delay {
  animation: fadeSlideUp 0.6s 0.15s ease-out both;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  header,
  footer,
  nav,
  aside {
    display: none !important;
  }

  .prose {
    max-width: 100%;
  }
}
