/* ============================================================
   LUXERELIA — custom styles on top of Tailwind CSS
   (the compiled utilities live in tailwind.min.css / admin.css; this
   file only contains the few things that are easier in plain CSS).
   The brand colours mirror the `brand` palette in the Tailwind config;
   the dark site layer (dark-site.css) re-skins these components.
   ============================================================ */

/* ---------- Brand palette (kept in sync with the Tailwind config) ---------- */
:root {
  --pk-ink: #17141F;
  --pk-paper: #FAFAF8;
  --pk-brand: #7C3AED;
  --pk-brand-dark: #6D28D9;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Pinterest-style masonry gallery ---------- */
.pk-masonry {
  column-count: 2;
  column-gap: 1.25rem;
}
@media (min-width: 768px)  { .pk-masonry { column-count: 3; } }
@media (min-width: 1280px) { .pk-masonry { column-count: 4; } }
@media (min-width: 1600px) { .pk-masonry { column-count: 5; } }

.pk-masonry > * { break-inside: avoid; }

/* ---------- Horizontal scroll row (category chips etc.) ----------
   A soft fade on the right edge hints that the row can be scrolled. */
.pk-scrollx {
  position: relative;
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
}
.pk-scrollx::-webkit-scrollbar { display: none; }

/* ---------- Cards ---------- */
.pk-card img { display: block; }

/* ---------- Small entrance animation for loaded gallery cards ---------- */
@keyframes pk-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pk-fade-up { animation: pk-fade-up .4s ease both; }

/* ---------- Premium hero (dark section on the homepage) ----------
   1. .pk-dotgrid — a soft dotted grid over the aurora glow,
      faded out towards the edges with a radial mask.
   2. .pk-float   — a gentle up/down drift for the floating
      prompt showcase cards. */
.pk-dotgrid {
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 25%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 25%, black 25%, transparent 72%);
}

@keyframes pk-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.pk-float { animation: pk-float 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .pk-fade-up { animation: none; }
  .pk-float   { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Toast notification (copy prompt etc.) ---------- */
#pk-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 80;
}
#pk-toast.pk-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Native details/summary (FAQ + admin nav) ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Search suggestions dropdown ---------- */
.pk-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 0.5rem);
  z-index: 40;
}

/* ---------- Prompt text panel (detail page) ---------- */
.pk-prompt-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #F3F0F7;
}

/* ---------- Footer link underline animation ---------- */
.pk-link {
  position: relative;
}
.pk-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width .25s ease;
}
.pk-link:hover::after { width: 100%; }

/* ---------- Focus visibility for keyboard users ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pk-brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Admin: sticky sidebar on desktop ---------- */
@media (min-width: 1024px) {
  .pk-admin-shell { display: grid; grid-template-columns: 16rem 1fr; min-height: 100vh; }
}

/* ---------- Ad slots (Admin → Settings → Ads) ----------
   Rendered only when a snippet is pasted and ads are enabled. */
.pk-ad {
  margin: 1.5rem auto;
  max-width: 100%;
  padding: 0 1rem;
  text-align: center;
  overflow: hidden;
}
.pk-ad--preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 1.25rem auto;
  padding: 1rem;
  border: 2px dashed rgb(214 211 209);
  border-radius: 0.75rem;
  background: rgb(250 250 249);
  color: rgb(120 113 108);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* ---------- Content-page prose (About, Contact, Privacy…) ---------
   Tailwind's reset flattens every heading, so pk-prose rebuilds a
   clear hierarchy: accent-bar h3s, a larger lead paragraph and
   comfortable rhythm for walls of text. */
.pk-prose > p:first-child {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #44403C;
  font-weight: 500;
}
.pk-prose h3 {
  position: relative;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #F1EFEB;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #17141F;
}
.pk-prose h3::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 9999px;
  background: #8B5CF6;
}
.pk-prose h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.pk-prose h3:first-child::before { display: none; }
.pk-prose h4 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #17141F;
}
.pk-prose p { margin: 0 0 1rem; }
.pk-prose p:last-child { margin-bottom: 0; }
.pk-prose a {
  color: #7C3AED;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #C4B5FD;
  text-underline-offset: 3px;
}
.pk-prose a:hover { color: #6D28D9; }
.pk-prose ul, .pk-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.pk-prose li { margin: 0.35rem 0; }
.pk-prose ul li::marker { color: #8B5CF6; }
.pk-prose ol li::marker { color: #8B5CF6; font-weight: 700; }
.pk-prose blockquote {
  margin: 1.25rem 0;
  padding: 0.875rem 1.25rem;
  border-left: 4px solid #C4B5FD;
  border-radius: 0 1rem 1rem 0;
  background: #FAF8FF;
  font-style: italic;
  color: #57534E;
}
.pk-prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #F1EFEB;
}

/* ---------- About page: hero band + live stats --------------------- */
.pk-about-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 24rem at 85% -20%, rgba(167, 139, 250, 0.35), transparent 60%),
    radial-gradient(40rem 20rem at -10% 120%, rgba(139, 92, 246, 0.16), transparent 60%),
    linear-gradient(180deg, #FBFAFF 0%, #F5F3FF 55%, #EFEAFE 100%);
  border-bottom: 1px solid #E9E5F7;
}
.pk-about-hero::before,
.pk-about-hero::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.pk-about-hero::before {
  top: -90px; right: -60px;
  width: 260px; height: 260px;
  border: 2px dashed rgba(139, 92, 246, 0.3);
}
.pk-about-hero::after {
  bottom: 40px; left: -80px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
}
.pk-about-hero__inner { position: relative; z-index: 1; }
.pk-about-hero__eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #DDD6FE;
  color: #6D28D9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pk-about-hero__title {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #17141F;
}
.pk-about-hero__sub {
  max-width: 40rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #78716C;
}

/* Stats strip overlapping the hero's bottom edge */
.pk-stats-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: min(56rem, 100% - 2rem);
  margin: -3.25rem auto 0;
}
.pk-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #F1EFEB;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgb(23 20 31 / 0.18);
}
.pk-stat strong {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #17141F;
}
.pk-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A8A29E;
}
@media (min-width: 640px) {
  .pk-stats-row { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Founder cards (About page [founder_photo] markers) ----
   The photos are uploaded in Admin → Settings → General; until then
   a placeholder avatar is shown. */
.pk-founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.pk-founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border: 1px solid #F1EFEB;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(23 20 31 / 0.05);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pk-founder-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgb(23 20 31 / 0.25);
}
.pk-founder-photo {
  width: 108px;
  height: 108px;
  border-radius: 9999px;
  object-fit: cover;
  border: 4px solid #fff;
  outline: 2px solid #C4B5FD;
  outline-offset: 2px;
  background: #F5F3FF;
}
.pk-founder-photo--placeholder {
  outline-style: dashed;
}
.pk-founder-name {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #17141F;
}
.pk-founder-role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7C3AED;
}

/* ---------- About page: closing call-to-action ---------------------- */
.pk-about-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(120deg, #6D28D9 0%, #7C3AED 55%, #8B5CF6 100%);
  box-shadow: 0 24px 50px -20px rgba(124, 58, 237, 0.5);
}
.pk-about-cta::before {
  content: "";
  position: absolute;
  top: -70px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 9999px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.pk-about-cta__inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  text-align: center;
}
.pk-about-cta__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.pk-about-cta__sub {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: #EDE9FE;
}
.pk-about-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  background: #17141F;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.pk-about-cta__btn:hover {
  background: #000;
  transform: translateY(-2px);
}

/* ---------- Print: hide interactive chrome ---------- */
@media print {
  header, footer, .pk-ad, .no-print { display: none !important; }
}
