/* Madeja theme CSS — extras not covered by Tailwind utility classes. */

/* CSS variables (mirror Customizer defaults) */
:root {
  --madeja-color-rosa: #E8C7E1;
  --madeja-color-lavanda: #E7E1E9;
  --madeja-color-arena: #FFCB8E;
  --madeja-color-azul: #5BB8E1;
  --madeja-color-fucsia: #F25F9D;
  --madeja-color-uva: #7F4F6B;
  --madeja-color-light-pink: #FDF5F9;
  --madeja-font-heading: 'Outfit', system-ui, sans-serif;
  --madeja-font-body: 'Quicksand', sans-serif;
}

/* Base font fallbacks — apply immediately, before Tailwind CDN runs */
html, body {
  font-family: var(--madeja-font-body);
  background-color: var(--madeja-color-light-pink);
  color: var(--madeja-color-uva);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--madeja-font-heading);
  font-weight: 700;
}

/* Utilities */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

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

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

/* Prose — replicates Astro global.css for post content */
.prose {
  color: rgba(127, 79, 107, 0.9);
  line-height: 1.65;
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #7F4F6B;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .prose h2 { font-size: 1.875rem; }
}
.prose h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #7F4F6B;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .prose h3 { font-size: 1.5rem; }
}
.prose p { margin-bottom: 1rem; }
.prose img {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
}
.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.25rem; }
.prose a {
  color: #F25F9D;
  text-decoration: underline;
  transition: color 0.2s;
}
.prose a:hover { color: rgba(242, 95, 157, 0.8); }
.prose blockquote {
  border-left: 4px solid rgba(242, 95, 157, 0.3);
  padding-left: 1rem;
  font-style: italic;
  color: rgba(127, 79, 107, 0.7);
  margin: 1.5rem 0;
}
.prose figure { margin: 1.5rem 0; }
.prose figcaption {
  font-size: 0.875rem;
  color: rgba(127, 79, 107, 0.5);
  text-align: center;
  margin-top: 0.5rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.prose th, .prose td {
  border: 1px solid #E7E1E9;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose th {
  background: #E7E1E9;
  font-weight: 600;
}
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* WordPress Gutenberg support */
.prose .wp-block-image { margin: 1.5rem 0; }
.prose .wp-block-image img { margin-left: auto; margin-right: auto; }
.prose .wp-block-quote {
  border-left: 4px solid rgba(242, 95, 157, 0.3);
  padding-left: 1rem;
  font-style: italic;
  color: rgba(127, 79, 107, 0.7);
}
.prose .wp-block-separator {
  border: 0;
  border-top: 1px solid #E7E1E9;
  margin: 2rem auto;
  max-width: 6rem;
}
.prose .aligncenter { text-align: center; }
.prose .alignleft { float: left; margin-right: 1rem; }
.prose .alignright { float: right; margin-left: 1rem; }

/* Editor styles accessed via add_editor_style */
.editor-styles-wrapper .wp-block {
  font-family: 'Quicksand', sans-serif;
}

/* Login page branding (wp-login.php) */
body.login {
  background: #FDF5F9;
}
.login h1 a {
  background-image: none !important;
  color: #F25F9D !important;
  text-indent: 0 !important;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  width: auto !important;
  height: auto !important;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
