/* Component classes ported from the original index.css (Tailwind @apply rules
   expanded to plain CSS since the Tailwind CDN build can't compile @apply
   inside a linked stylesheet). Utility classes like bg-primary/text-accent
   keep working as-is via the Tailwind CDN script in includes/head.php. */

/* Material Symbols baseline (Google's recommended reset), used via the icon() helper */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.bg-primary {
  transition: all 0.3s ease;
}
.bg-primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(139, 58, 98, 0.25);
}
.bg-primary:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(0) scale(0.98);
}

/* Donation preset buttons */
.donation-preset-btn {
  transition: all 0.2s ease;
  border-width: 2px;
  font-weight: 700;
  border-radius: 0.75rem;
}
.donation-preset-btn[data-state="active"] {
  background-color: hsl(var(--donation-accent));
  color: hsl(var(--donation-accent-foreground));
  border-color: hsl(var(--donation-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(139, 58, 98, 0.3);
}
.donation-preset-btn[data-state="inactive"] {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.donation-preset-btn[data-state="inactive"]:hover {
  border-color: hsl(var(--donation-accent));
  color: hsl(var(--donation-accent));
}

/* Inclusivity classes */
.inclusivity-section {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  border: 1px solid hsl(var(--accent) / 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
@media (min-width: 768px) { .inclusivity-section { padding: 3rem; } }
.inclusivity-section:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border-color: hsl(var(--accent) / 0.4);
}

.inclusivity-statement {
  color: hsl(var(--accent-foreground));
  background-color: hsl(var(--accent));
  transition: background-color 0.2s ease;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--accent-foreground) / 0.1);
}
.inclusivity-statement:hover { background-color: hsl(var(--accent) / 0.9); }
@media (min-width: 768px) { .inclusivity-statement { font-size: 1rem; } }

.inclusivity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  transition: all 0.3s ease;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid hsl(var(--accent) / 0.2);
}
.inclusivity-badge:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Checkbox styling */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: hsl(var(--muted) / 0.5);
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.2s ease;
}
.checkbox-wrapper:hover { background-color: hsl(var(--muted) / 0.7); border-color: hsl(var(--border)); }
.checkbox-wrapper:focus-within { box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--primary) / 0.5); }

.checkbox-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: color 0.2s ease;
}

.checkbox-input { width: 1.25rem; height: 1.25rem; transition: all 0.2s ease; }

.checkbox-error-wrapper {
  border-color: hsl(var(--destructive) / 0.5);
  background-color: hsl(var(--destructive) / 0.1);
  box-shadow: 0 0 0 1px hsl(var(--destructive) / 0.3);
}
.checkbox-error-wrapper:hover { border-color: hsl(var(--destructive) / 0.7); background-color: hsl(var(--destructive) / 0.15); }

.checkbox-error-text {
  font-size: 0.875rem;
  color: hsl(var(--destructive));
  font-weight: 500;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Full-width newsletter styling */
.newsletter-fw-container {
  width: 100%;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .newsletter-fw-container { padding: 6rem 1.5rem; } }
.newsletter-fw-content { width: 100%; max-width: 56rem; margin: 0 auto; position: relative; z-index: 10; }
.newsletter-fw-header { margin-bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; }
.newsletter-fw-form-wrapper { width: 100%; background-color: transparent; }
.newsletter-fw-input-row { display: flex; flex-direction: column; gap: 1rem; width: 100%; align-items: stretch; }
@media (min-width: 768px) { .newsletter-fw-input-row { flex-direction: row; align-items: flex-start; } }
.newsletter-fw-input { flex-grow: 1; width: 100%; }
.newsletter-fw-button { width: 100%; flex-shrink: 0; }
@media (min-width: 768px) { .newsletter-fw-button { width: auto; } }
.newsletter-fw-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}
@media (min-width: 640px) { .newsletter-fw-options { flex-direction: row; align-items: center; gap: 2rem; } }

.checkbox-wrapper-fw {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.checkbox-wrapper-fw:hover { background-color: hsl(var(--background) / 0.1); }
.checkbox-wrapper-fw:focus-within { box-shadow: 0 0 0 2px transparent, 0 0 0 4px hsl(var(--primary) / 0.5); }

/* Age gate */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  /* The site-wide gate applies pointer-events:none to <body> to lock the
     page underneath; since this overlay is appended as a child of body,
     it would otherwise inherit that and become unclickable itself. */
  pointer-events: auto;
}
.age-gate-container {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  max-width: 28rem;
  width: 100%;
  text-align: center;
  border: 1px solid hsl(var(--border) / 0.5);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .age-gate-container { padding: 3rem; } }
.age-gate-title {
  font-size: 1.875rem;
  font-family: "Abril Fatface", "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 1rem;
  text-wrap: balance;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .age-gate-title { font-size: 2.25rem; } }
.age-gate-message { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; text-wrap: balance; }
.age-gate-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .age-gate-actions { flex-direction: row; } }

.age-gate-btn-yes {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  background-color: #A8C686;
}
@media (min-width: 640px) { .age-gate-btn-yes { width: auto; } }
.age-gate-btn-yes:hover { background-color: #8fae6d; transform: translateY(-2px); box-shadow: 0 10px 20px -3px rgba(168, 198, 134, 0.3); }
.age-gate-btn-yes:active { transform: translateY(0) scale(0.98); }

.age-gate-btn-no {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  color: hsl(var(--accent-foreground));
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  background-color: hsl(var(--accent));
}
@media (min-width: 640px) { .age-gate-btn-no { width: auto; } }
.age-gate-btn-no:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 10px 20px -3px rgba(139, 58, 98, 0.3); }
.age-gate-btn-no:active { transform: translateY(0) scale(0.98); }

/* Footer responsiveness */
.footer-bottom-bar {
  border-top: 1px solid hsl(var(--background) / 0.2);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .footer-bottom-bar { flex-direction: row; } }

.footer-made-with {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.6);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.625;
}
@media (min-width: 640px) { .footer-made-with { flex-direction: row; } }
@media (min-width: 768px) { .footer-made-with { justify-content: flex-start; text-align: left; } }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
}
@media (min-width: 640px) { .footer-legal-links { gap: 1.5rem; } }
@media (min-width: 768px) { .footer-legal-links { width: auto; } }

.footer-link {
  color: hsl(var(--background) / 0.6);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
}
.footer-link:hover { color: hsl(var(--primary)); }
@media (min-width: 768px) { .footer-link { min-height: 0; padding: 0; } }

.text-balance { text-wrap: balance; }

/* Simple fade/slide-in used for toasts and error text (replaces tailwindcss-animate utilities we relied on) */
@keyframes fade-in-slide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fade-in-slide 0.2s ease-out; }

/* Toast notifications (replaces the shadcn/sonner toaster) */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
  width: calc(100% - 2rem);
}
.toast {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  animation: fade-in-slide 0.2s ease-out;
}
.toast.toast-destructive { border-color: hsl(var(--destructive) / 0.5); background-color: hsl(var(--destructive) / 0.08); }
.toast-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.125rem; }
.toast-description { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
