/* ===========================================================
   Find Photographer — server-rendered page styles
   Shares the React islands' token language (warm dark + gold).
   Used by: marketplace/feed shells, photographer detail,
   dashboards, profile. Self-contained, no NovaDark needed.
   =========================================================== */

:root {
  --fp-bg-1: #17140f;
  --fp-bg-2: #1f1b15;
  --fp-bg-3: #2a241c;
  --fp-border: rgba(255, 255, 255, 0.08);
  --fp-border-2: rgba(255, 255, 255, 0.16);
  --fp-text: #ececf1;
  --fp-text-2: #a3a3b2;
  --fp-muted: #6f6f80;
  --fp-accent: #eab308;
  --fp-accent2: #ca8a04;
  --fp-on-accent: #1c1917;
  --fp-star: #f59e0b;
  --fp-grad: linear-gradient(135deg, #eab308, #ca8a04);
  --fp-grad-soft: linear-gradient(135deg, rgba(234, 179, 8, 0.16), rgba(217, 119, 6, 0.16));
  --fp-accent-soft: rgba(234, 179, 8, 0.14);
  --fp-glass: rgba(255, 255, 255, 0.045);
  --fp-glass-2: rgba(255, 255, 255, 0.07);
  --fp-glass-brd: rgba(255, 255, 255, 0.12);
  --fp-aurora-1: rgba(234, 179, 8, 0.3);
  --fp-aurora-2: rgba(217, 119, 6, 0.32);
  --fp-aurora-3: rgba(180, 83, 9, 0.2);
}
[data-theme="light"] {
  --fp-bg-1: #faf9f7;
  --fp-bg-2: #ffffff;
  --fp-bg-3: #f4f1ea;
  --fp-border: rgba(15, 23, 42, 0.1);
  --fp-border-2: rgba(15, 23, 42, 0.18);
  --fp-text: #0f172a;
  --fp-text-2: #475569;
  --fp-muted: #64748b;
  --fp-glass: rgba(255, 255, 255, 0.72);
  --fp-glass-2: rgba(255, 255, 255, 0.85);
  --fp-glass-brd: rgba(15, 23, 42, 0.08);
  --fp-aurora-1: rgba(234, 179, 8, 0.16);
  --fp-aurora-2: rgba(217, 119, 6, 0.16);
  --fp-aurora-3: rgba(180, 83, 9, 0.1);
}

/* ---------- Ambient aurora backdrop (whole app) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -12vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 6% -8%, var(--fp-aurora-1), transparent 60%),
    radial-gradient(44vmax 40vmax at 104% 0%, var(--fp-aurora-2), transparent 58%),
    radial-gradient(40vmax 36vmax at 50% 120%, var(--fp-aurora-3), transparent 62%);
  filter: blur(8px) saturate(118%);
  animation: ap-aurora 28s ease-in-out infinite alternate;
}
@keyframes ap-aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5%, -1.8%, 0) scale(1.07);
  }
  100% {
    transform: translate3d(-1.6%, 1.2%, 0) scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* Film-grain overlay — adds texture so the dark base never reads as flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
[data-theme="light"] body::after {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* ---------- Page shell ---------- */
.ap-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.ap-shell--narrow {
  max-width: 760px;
}
.ap-shell * {
  box-sizing: border-box;
}

/* ---------- Hero heading (marketplace / feed) ---------- */
.ap-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.75rem;
}
.ap-hero::before {
  content: "";
  position: absolute;
  left: -3%;
  top: -8%;
  width: 460px;
  max-width: 72%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.28), transparent 68%);
  filter: blur(36px);
  z-index: -1;
  pointer-events: none;
}
.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fp-accent);
  background: var(--fp-accent-soft);
  border: 1px solid var(--fp-glass-brd);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ap-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fp-accent);
  box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6);
  animation: ap-pulse 2s ease-out infinite;
}
@keyframes ap-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(234, 179, 8, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
  }
}
.ap-title {
  font-size: clamp(2.7rem, 1.6rem + 5.2vw, 4.75rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 1.1rem 0 0.95rem;
  color: var(--fp-text);
}
.ap-title .grad {
  background: var(--fp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 28px rgba(234, 179, 8, 0.35));
}
.ap-lede {
  color: var(--fp-text-2);
  font-size: 1.15rem;
  max-width: 54ch;
  line-height: 1.6;
}

/* hero stat strip — real marketplace numbers */
.ap-statbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--fp-border);
}
.ap-statbar > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ap-statbar b {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  background: var(--fp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ap-statbar span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fp-muted);
}

/* hero popular-genre chips (link into the marketplace filter) */
.ap-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.ap-popular > span {
  font-size: 0.74rem;
  color: var(--fp-muted);
  margin-right: 0.15rem;
}
.ap-popular a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fp-text-2);
  text-decoration: none;
  background: var(--fp-glass);
  border: 1px solid var(--fp-glass-brd);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.ap-popular a:hover {
  color: var(--fp-text);
  border-color: var(--fp-accent);
  transform: translateY(-1px);
}

/* ---------- Generic panel / section ---------- */
.ap-panel {
  background: var(--fp-bg-2);
  border: 1px solid var(--fp-border);
  border-radius: 16px;
  padding: 1.5rem;
}
.ap-h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--fp-text);
}
.ap-section {
  margin-top: 2.5rem;
}

/* ---------- Photographer detail ---------- */
.ap-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.ap-avatar {
  width: 116px;
  height: 116px;
  flex: none;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--fp-on-accent);
  background: var(--fp-grad);
  object-fit: cover;
  overflow: hidden;
}
.ap-detail-head h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}
.ap-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--fp-text-2);
  font-size: 0.9rem;
  margin: 0.6rem 0;
}
.ap-detail-meta b {
  color: var(--fp-text);
}
.ap-price {
  font-size: 1.05rem;
  font-weight: 700;
}
.ap-price span {
  font-size: 0.8rem;
  color: var(--fp-muted);
  font-weight: 500;
}
.ap-detail-aside {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}
.ap-bio {
  margin-top: 1.25rem;
  color: var(--fp-text-2);
  line-height: 1.65;
  max-width: 70ch;
}
.ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.ap-tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--fp-text-2);
  background: var(--fp-bg-3);
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
}

/* photo / portfolio grids */
.ap-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
.ap-photo-grid a,
.ap-photo-grid figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fp-border);
  background: var(--fp-bg-3);
  aspect-ratio: 1;
  display: block;
}
.ap-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.ap-photo-grid a:hover img {
  transform: scale(1.05);
}

/* reviews */
.ap-reviews {
  display: flex;
  flex-direction: column;
}
.ap-review {
  padding: 1.1rem 0;
  border-top: 1px solid var(--fp-border);
}
.ap-review:first-child {
  border-top: none;
}
.ap-review__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}
.ap-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--fp-on-accent);
  background: var(--fp-grad);
  flex: none;
}
.ap-review p {
  margin: 0;
  color: var(--fp-text-2);
  line-height: 1.55;
  font-size: 0.92rem;
}
.ap-review time {
  margin-left: auto;
  color: var(--fp-muted);
  font-size: 0.75rem;
}

/* ---------- Dashboard ---------- */
.ap-dash {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .ap-dash {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }
}
.ap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.ap-stat {
  background: var(--fp-bg-3);
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  padding: 0.9rem 0.5rem;
  text-align: center;
}
.ap-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--fp-text);
}
.ap-stat span {
  font-size: 0.68rem;
  color: var(--fp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* tabs (CSS-only, radio-driven) */
.ap-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ap-tablist {
  display: inline-flex;
  gap: 0.25rem;
  border: 1px solid var(--fp-border);
  border-radius: 999px;
  padding: 0.25rem;
  background: var(--fp-bg-2);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.ap-tablist label {
  cursor: pointer;
  color: var(--fp-text-2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.ap-tablist label:hover {
  color: var(--fp-text);
}
.ap-tabpane {
  display: none;
}
#ap-tab-photos:checked ~ .ap-tablist label[for="ap-tab-photos"],
#ap-tab-profile:checked ~ .ap-tablist label[for="ap-tab-profile"],
#ap-tab-bookings:checked ~ .ap-tablist label[for="ap-tab-bookings"],
#ap-tab-reviews:checked ~ .ap-tablist label[for="ap-tab-reviews"] {
  background: var(--fp-accent);
  color: var(--fp-on-accent);
}
#ap-tab-photos:checked ~ .ap-panes #pane-photos,
#ap-tab-profile:checked ~ .ap-panes #pane-profile,
#ap-tab-bookings:checked ~ .ap-panes #pane-bookings,
#ap-tab-reviews:checked ~ .ap-panes #pane-reviews {
  display: block;
}

/* rows / lists */
.ap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--fp-border);
}
.ap-row:first-child {
  border-top: none;
}
.ap-row__main strong {
  display: block;
  font-size: 0.92rem;
}
.ap-row__main span {
  font-size: 0.8rem;
  color: var(--fp-muted);
}
.ap-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ap-row__actions form {
  margin: 0;
}
.ap-statuspill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ap-statuspill[data-s="pending"] {
  color: var(--fp-star);
  background: rgba(245, 158, 11, 0.12);
}
.ap-statuspill[data-s="confirmed"] {
  color: var(--fp-accent2);
  background: rgba(217, 119, 6, 0.14);
}
.ap-statuspill[data-s="completed"] {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}
.ap-statuspill[data-s="cancelled"] {
  color: var(--fp-muted);
  background: var(--fp-bg-3);
}

/* manage photo grid (dashboard) */
.ap-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
}
.ap-manage-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fp-border);
  aspect-ratio: 1;
}
.ap-manage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-manage-photo button {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.ap-manage-photo button:hover {
  background: #ef4444;
}

/* forms */
.ap-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ap-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ap-field-row > label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fp-text);
}
.ap-field-row input[type="text"],
.ap-field-row input[type="tel"],
.ap-field-row input[type="number"],
.ap-field-row input[type="file"],
.ap-field-row input[type="email"],
.ap-field-row input[type="password"],
.ap-field-row input[type="search"],
.ap-field-row input[type="url"],
.ap-field-row input[type="date"],
.ap-field-row input:not([type]),
.ap-field-row select,
.ap-field-row textarea {
  width: 100%;
  background: var(--fp-bg-3);
  border: 1px solid var(--fp-border);
  color: var(--fp-text);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.ap-field-row input:focus,
.ap-field-row select:focus,
.ap-field-row textarea:focus {
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px var(--fp-accent-soft);
}
.ap-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ap-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--fp-text-2);
  background: var(--fp-bg-3);
  border: 1px solid var(--fp-border);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.ap-help {
  font-size: 0.76rem;
  color: var(--fp-muted);
}
.ap-errors {
  color: #f87171;
  font-size: 0.8rem;
  margin: 0.2rem 0 0;
  padding-left: 1rem;
}

/* messages */
.ap-flash {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fp-accent-soft);
  border: 1px solid var(--fp-border);
  color: var(--fp-text);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.ap-empty-mini {
  color: var(--fp-muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* rating stars (server) */
.ap-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fp-star);
  font-weight: 700;
  font-size: 0.85rem;
}
.ap-stars svg {
  width: 15px;
  height: 15px;
  fill: var(--fp-star);
}
.ap-stars small {
  color: var(--fp-muted);
  font-weight: 500;
}
