/* ========================================
   Estilista IA — Self-contained CSS
   Replaces Tailwind CDN with production-ready styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-blush: #e91e8c;
  --color-blush-light: #f472b6;
  --color-blush-dark: #be185d;
  --color-charcoal: #1a1a2e;
  --color-cream: #fdf2f8;
  --color-purple-600: #9333ea;
  --color-purple-900: #581c87;
  --color-pink-50: #fdf2f8;
  --color-pink-100: #fce7f3;
  --color-white: #ffffff;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  color: var(--color-gray-800);
  background-color: var(--color-white);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { color: var(--color-charcoal); font-weight: 700; }
a { color: var(--color-blush); transition: color 0.15s ease; text-decoration: none; }
a:hover { color: var(--color-blush-dark); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: transparent; font: inherit; color: inherit; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* --- Layout --- */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.capitalize { text-transform: capitalize; }

/* --- Spacing --- */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-8 { padding-top: 2rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* --- Sizing --- */
.h-16 { height: 4rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.min-h-\[44px\] { min-height: 44px; }
.min-w-\[44px\] { min-width: 44px; }
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-none { max-width: none; }

/* --- Typography --- */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.leading-relaxed { line-height: 1.625; }
.italic { font-style: italic; }
.no-underline { text-decoration: none; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

/* --- Text Colors --- */
.text-white { color: var(--color-white); }
.text-charcoal { color: var(--color-charcoal); }
.text-blush { color: var(--color-blush); }
.text-blush-light { color: var(--color-blush-light); }
.text-blush-dark { color: var(--color-blush-dark); }
.text-pink-50 { color: var(--color-pink-50); }
.text-pink-100 { color: var(--color-pink-100); }
.text-gray-300 { color: var(--color-gray-300); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-500 { color: var(--color-gray-500); }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-700 { color: var(--color-gray-700); }
.text-gray-800 { color: var(--color-gray-800); }

/* --- Background Colors --- */
.bg-white { background-color: var(--color-white); }
.bg-charcoal { background-color: var(--color-charcoal); }
.bg-cream { background-color: var(--color-cream); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

/* --- Gradients --- */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-charcoal { --tw-gradient-from: var(--color-charcoal); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-purple-900 { --tw-gradient-stops: var(--tw-gradient-from), var(--color-purple-900), var(--tw-gradient-to, transparent); }
.to-charcoal { --tw-gradient-to: var(--color-charcoal); }
.from-blush { --tw-gradient-from: var(--color-blush); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-purple-600 { --tw-gradient-to: var(--color-purple-600); }

/* --- Borders --- */
.border { border-width: 1px; border-style: solid; border-color: var(--color-gray-200); }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-pink-100 { border-color: var(--color-pink-100); }
.border-gray-200 { border-color: var(--color-gray-200); }
.border-gray-700 { border-color: var(--color-gray-700); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* --- Shadows --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

/* --- Transitions --- */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; transition-timing-function: ease; }
.transition-shadow { transition-property: box-shadow; transition-duration: 0.15s; transition-timing-function: ease; }
.transition-all { transition-property: all; transition-duration: 0.15s; transition-timing-function: ease; }

/* --- Hover States --- */
.hover\:text-blush:hover { color: var(--color-blush); }
.hover\:text-blush-light:hover { color: var(--color-blush-light); }
.hover\:text-blush-dark:hover { color: var(--color-blush-dark); }
.hover\:bg-gray-700:hover { background-color: var(--color-gray-700); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-pink-50:hover { background-color: var(--color-pink-50); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.group:hover .group-hover\:text-blush { color: var(--color-blush); }

/* --- Interaction --- */
.cursor-pointer { cursor: pointer; }

/* --- Component: btn-primary --- */
.btn-primary {
  background-color: var(--color-blush);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}
.btn-primary:hover { background-color: var(--color-blush-dark); color: var(--color-white); }

/* --- Component: card --- */
.card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease;
  padding: 1.5rem;
  border: 1px solid var(--color-pink-100);
}
.card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

/* --- Component: prose --- */
.prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--color-charcoal); margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: var(--color-charcoal); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1rem; color: var(--color-gray-700); line-height: 1.625; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul > li + li { margin-top: 0.5rem; }
.prose ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol > li + li { margin-top: 0.5rem; }
.prose blockquote { border-left: 4px solid var(--color-blush); padding-left: 1rem; font-style: italic; color: var(--color-gray-600); margin: 1rem 0; }
.prose a { color: var(--color-blush); text-decoration: underline; }
.prose a:hover { color: var(--color-blush-dark); }
.prose li { color: var(--color-gray-700); }

/* --- Component: content-grid --- */
.content-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Responsive: sm (640px) --- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* --- Responsive: md (768px) --- */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
}

/* --- Responsive: lg (1024px) --- */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Hugo pagination --- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; padding: 1rem 0; }
.pagination .page-item { display: inline-block; }
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-gray-600);
  text-decoration: none;
  transition: all 0.15s ease;
}
.pagination .page-link:hover { background-color: var(--color-pink-50); color: var(--color-blush); }
.pagination .page-item.active .page-link { background-color: var(--color-blush); color: var(--color-white); }
.pagination .page-item.disabled .page-link { opacity: 0.5; pointer-events: none; }
