/* ==========================================================================
   Taleen's Peaceful Pond — Pure Option B (As-Is)
   ========================================================================== */

:root {
  --ink: oklch(0.18 0.025 200);
  --white: oklch(0.995 0.003 185);
  --coral: oklch(0.735 0.12 22);
  --coral-2: oklch(0.76 0.11 28);
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  block-size: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: oklch(0.75 0.095 190);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  user-select: none;
  -webkit-user-select: none;
}

.note-card,
.pond-dialog,
input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.pond-bg-gl {
  position: fixed;
  inset: 0;
  inline-size: 100vw;
  block-size: 100dvh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.pond-fx {
  position: fixed;
  inset: 0;
  inline-size: 100vw;
  block-size: 100dvh;
  z-index: 5;
  pointer-events: none;
  display: block;
}

/* Single Exact Option-B Full-Viewport Pond Stage */
.pond-stage {
  position: relative;
  z-index: 10;
  min-block-size: 100dvh;
  display: grid;
  place-items: center;
  padding-inline: clamp(1.25rem, 6vw, 4rem);
  padding-block: clamp(2rem, 6vh, 4rem);
  background-image: url("assets/optionb/pond-water-base.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.has-gl-water .pond-stage {
  background-image: none;
}

.hero-stack {
  position: relative;
  z-index: 10;
  inline-size: min(820px, 100%);
  text-align: center;
  /* Matches Option B's vertical balance above the lower fish & lotus */
  transform: translateY(-4vh);
}

.hero-title {
  margin-block: 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.7vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 2px 16px oklch(0.32 0.08 194 / 0.28);
}

.hero-subtitle {
  margin-block: 0 clamp(1.75rem, 4vh, 2.75rem);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: oklch(0.99 0.008 185 / 0.94);
  text-shadow: 0 1px 10px oklch(0.32 0.08 194 / 0.24);
}

/* Exact Option-B 3-Card Row */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  text-align: left;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.35rem;
  border-radius: 1.1rem;
  background: linear-gradient(
    180deg,
    oklch(0.98 0.02 188 / 0.68) 0%,
    oklch(0.93 0.045 190 / 0.52) 100%
  );
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  border: 1.25px solid oklch(0.995 0.004 none / 0.72);
  box-shadow: 0 12px 30px -14px oklch(0.26 0.08 194 / 0.24);
  cursor: pointer;
  transition: background-color 180ms var(--ease-calm), box-shadow 180ms var(--ease-calm);
}

@media (prefers-reduced-motion: no-preference) {
  .note-card {
    transition:
      background-color 180ms var(--ease-calm),
      box-shadow 180ms var(--ease-calm),
      transform 180ms var(--ease-calm);
  }
}

@media (hover: hover) and (pointer: fine) {
  .note-card:hover {
    background: linear-gradient(
      180deg,
      oklch(0.99 0.015 188 / 0.8) 0%,
      oklch(0.955 0.032 190 / 0.68) 100%
    );
    box-shadow: 0 16px 34px -12px oklch(0.24 0.08 194 / 0.28);
  }
  @media (prefers-reduced-motion: no-preference) {
    .note-card:hover {
      transform: translateY(-2px);
    }
  }
}

.coral-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  padding-block: 0.36rem;
  padding-inline: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--coral-2));
  color: var(--white);
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coral-pill--auto {
  inline-size: auto;
}

.note-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--ink);
}

/* Simple Read/Edit Dialog */
.pond-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  inline-size: min(460px, calc(100vw - 2rem));
}

.pond-dialog::backdrop {
  background: oklch(0.22 0.06 196 / 0.38);
  backdrop-filter: blur(6px);
}

.dialog-sheet {
  border-radius: 1.15rem;
  background: oklch(0.985 0.015 188 / 0.96);
  border: 1.25px solid oklch(0.995 0.004 none / 0.85);
  box-shadow: 0 24px 56px -16px oklch(0.2 0.07 196 / 0.4);
  overflow: clip;
}

.dialog-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  border-block-end: 1px solid oklch(0.9 0.025 188);
}

.icon-close {
  inline-size: 1.85rem;
  block-size: 1.85rem;
  border-radius: 999px;
  border: 0;
  background: oklch(0.92 0.025 188);
  color: var(--ink);
  cursor: pointer;
}

.dialog-sheet__body {
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field > span {
  font-size: 0.8rem;
  font-weight: 500;
  color: oklch(0.38 0.03 196);
}

.field input,
.field textarea {
  inline-size: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid oklch(0.84 0.035 190);
  background: var(--white);
  font-size: 0.92rem;
}

.dialog-sheet__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.8rem 1.2rem;
  border-block-start: 1px solid oklch(0.9 0.025 188);
}

.quiet-btn {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: oklch(0.4 0.03 196);
  cursor: pointer;
}

.save-btn {
  border: 0;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--coral-2));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 760px) {
  .hero-stack {
    transform: none;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    max-inline-size: 380px;
    margin-inline: auto;
  }
}
