/* =========================================================
   /assets/css/pwp.css
   Porn with Plot (PWP) Theme Layer
   Load AFTER: /assets/css/author-base.css
   Accent: #5aa4a3
   ========================================================= */


/* =========================================================
   00) TOKENS + HYGIENE
   Attaches to: :root, body.page--pwp and all descendants
   Purpose: one source of truth for colors/radius/shadows
   ========================================================= */

:root{
  --pwp: #5aa4a3;
  --pwp-ink: #e6f4f3;
  --pwp-muted: rgba(230,244,243,.78);
  --pwp-line: rgba(90,164,163,.22);

  --pwp-bg-card: rgba(0,0,0,.55);
  --pwp-shadow: 0 0 24px rgba(0,0,0,.65);
  --pwp-radius: 14px;
}

.page--pwp,
.page--pwp *,
.page--pwp *::before,
.page--pwp *::after{
  box-sizing: border-box;
}

.page--pwp{
  padding-top: 0;
}


/* =========================================================
   01) NAV BAR (PWP-only)
   Attaches to: /partials/nav-pwp.html
   Selector: nav.author-nav.author-nav--pwp
   Notes: includes sticky + jitter mitigation
   ========================================================= */

.author-nav--pwp{
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(0,0,0,.88);
  border-bottom: 1px solid rgba(255,255,255,.06);

  /* Sticky jitter fix (Chromium + filters) */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateZ(0);
  will-change: transform;
}

.author-nav--pwp .wrap{
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.author-nav--pwp .brand{
  color: var(--pwp-ink) !important;
  text-shadow: 0 0 10px rgba(0,0,0,.7);
}

.author-nav--pwp .brand .accent{
  color: var(--pwp) !important;
  text-shadow: 0 0 10px rgba(90,164,163,.28);
}

.author-nav--pwp .nav a{
  color: var(--pwp-ink) !important;
}

.author-nav--pwp .nav a:hover,
.author-nav--pwp .nav a:focus-visible{
  color: #001213 !important;
  background: var(--pwp) !important;
  box-shadow: 0 0 10px rgba(90,164,163,.35) !important;
  outline: none;
}

/* PWP: hamburger button styling */
.author-nav--pwp .nav-toggle{
  color: var(--pwp-ink) !important;
  border-color: rgba(255,255,255,.10) !important;
}

.author-nav--pwp .nav-toggle:focus-visible{
  box-shadow: 0 0 0 3px rgba(90,164,163,.18) !important;
  border-color: rgba(90,164,163,.55) !important;
}

/* PWP mobile divider line */
@media (max-width: 820px){
  .author-nav--pwp .nav{
    border-top: 1px solid rgba(255,255,255,.08);
  }
}


/* =========================================================
   02) LINKS SYSTEM (PWP pages only)
   Attaches to: all anchors on .page--pwp
   Goal: inline links get underline behavior,
         button-like anchors are excluded so borders never break.
   Excludes: .pwp-btnlink, .pwp-read, .btn
   ========================================================= */

.page--pwp a:not(.pwp-btnlink):not(.pwp-read):not(.btn){
  color: var(--pwp);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page--pwp a:not(.pwp-btnlink):not(.pwp-read):not(.btn):hover{
  border-bottom-color: currentColor;
}

/* Utility class: explicit opt-out if you ever need it */
.page--pwp a.pwp-btnlink,
.page--pwp a.pwp-btnlink:hover,
.page--pwp a.pwp-btnlink:focus,
.page--pwp a.pwp-btnlink:active{
  border-bottom: 0 !important;
  text-decoration: none !important;
}


/* =========================================================
   03) ACCESS PAGE (index.html)
   Attaches to: .pwp-box, .copy, .pwp-form, .pwp-input, .pwp-btn
   ========================================================= */

.page--pwp .pwp-box{
  border: 1px solid var(--pwp-line);
  box-shadow: 0 0 24px rgba(0,0,0,.75);
}

.page--pwp .copy{
  padding: 28px;
}

.page--pwp .pwp-kicker{
  margin: 0 0 .6rem;
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pwp);
}

/* NOTE: .pwp-title is used on multiple pages.
   This block defines the canonical title style for PWP. */
.page--pwp .pwp-title{
  margin: 0 0 1rem;
  line-height: 1.08;
  color: var(--pwp);
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  letter-spacing: .02em;
}

.page--pwp .pwp-note{
  margin: .75rem 0 0;
  color: var(--pwp-muted);
  line-height: 1.65;
}

.page--pwp .hr-archive{
  margin: 1.25rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pwp-line), transparent);
}

.page--pwp .pwp-subhead{
  margin: 0 0 .65rem;
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--pwp-ink);
}

.page--pwp .pwp-checklist{
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--pwp-ink);
  line-height: 1.65;
}

.page--pwp .pwp-checklist li{
  margin: .35rem 0;
}

/* Form card */
.page--pwp .pwp-form{
  margin-top: 1.35rem;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(90,164,163,.30);
  background: linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.26));
}

.page--pwp .pwp-form-note{
  margin: .4rem 0 1rem;
  color: var(--pwp-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.page--pwp .pwp-form-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.page--pwp .pwp-input{
  width: 100%;
  min-width: 0;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(90,164,163,.45);
  background: rgba(0,0,0,.35);
  color: var(--pwp-ink);
  outline: none;
}

.page--pwp .pwp-input::placeholder{
  color: rgba(230,244,243,.55);
}

.page--pwp .pwp-input:focus{
  border-color: rgba(90,164,163,.8);
  box-shadow: 0 0 0 3px rgba(90,164,163,.18);
}

.page--pwp .pwp-btn{
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90,164,163,.55);
  background: rgba(90,164,163,.22);
  color: var(--pwp-ink);
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(90,164,163,.14);
}

.page--pwp .pwp-btn:hover{
  background: rgba(90,164,163,.30);
  box-shadow: 0 0 18px rgba(90,164,163,.22);
}

.page--pwp .pwp-btn:active{
  transform: translateY(1px);
}

.page--pwp .pwp-micro{
  margin: .85rem 0 0;
  color: var(--pwp-muted);
  font-size: .92rem;
  line-height: 1.55;
}


/* =========================================================
   04) STORY INDEX PAGE (story_index.php)
   Attaches to: .pwp-shell, .pwp-head, .pwp-card*, .pwp-read
   ========================================================= */

.pwp-shell{
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.pwp-head{
  text-align: center;
  margin: 18px 0 26px;
}

/* On story_index, the H1 is .pwp-title, but we want it white-ish */
.pwp-head .pwp-title{
  margin: 0 0 6px;
  color: var(--pwp-ink);
}

.pwp-sub{
  margin: 0;
  color: var(--pwp-muted);
}

.pwp-list{
  display: grid;
  gap: 18px;
}

/* Card container */
.pwp-card{
  border-radius: var(--pwp-radius);
  border: 1px solid var(--pwp-line);
  background: var(--pwp-bg-card);
  box-shadow: var(--pwp-shadow);
  overflow: visible;
  position: relative;
}

/* Left accent line */
.pwp-card::before{
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgba(90,164,163,.85);
  opacity: .9;
}

/* Toggle button fills the card header */
.pwp-card__toggle{
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 18px 16px 20px;
  cursor: pointer;
  display: block;
}

.pwp-card__toggle:focus-visible{
  outline: 2px solid rgba(90,164,163,.85);
  outline-offset: 3px;
  border-radius: 12px;
}

.pwp-card__meta{
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(230,244,243,.78);
  margin-bottom: 10px;
}

.pwp-card__title{
  margin: 0 0 8px;
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--pwp-ink);
}

.pwp-card__subtitle{
  margin: 0 0 12px;
  color: var(--pwp-muted);
  font-style: italic;
}

.pwp-card__hint{
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: rgba(90,164,163,.85);
}

/* Expanded body */
.pwp-card__body{
  padding: 0 18px 24px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.pwp-tags{
  margin: 14px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pwp-tags__label{
  color: var(--pwp-muted);
  margin-right: 6px;
}

.pwp-tag{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(90,164,163,.75);
  background: rgba(0,0,0,.45);
  color: var(--pwp-ink);
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
}

.pwp-summary{
  margin: 0 0 14px;
  color: rgba(230,244,243,.86);
  line-height: 1.6;
}

.pwp-actions{
  margin: 0;
}

/* READ STORY — button-style anchor
   Attaches to: <a class="pwp-read" ...> in story_index.php
   IMPORTANT: this class is excluded from underline rules in Section 02,
              so the border cannot lose its bottom edge.
*/
.pwp-read{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 18px;

  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .82rem;
  line-height: 1;

  color: var(--pwp-ink);
  text-decoration: none;

  border: 1px solid rgba(90,164,163,.95);
  border-radius: 10px;
  background: transparent;

  box-shadow: none;
}

.pwp-read:hover{
  background: rgba(90,164,163,.12);
}

.pwp-back{
  text-align: center;
  margin-top: 22px;
}


/* =========================================================
   05) STORY PAGE BODY (story/*.php)
   Attaches to: .pwp-story__body (the actual story content box)
   ========================================================= */

.pwp-story__body{
  margin-top: 18px;
  padding: 22px 18px;
  border: 1px solid var(--pwp-line);
  border-radius: var(--pwp-radius);
  background: var(--pwp-bg-card);
  box-shadow: var(--pwp-shadow);
  color: var(--pwp-ink);
  line-height: 1.75;
}

.pwp-story__body p{
  margin: 0 0 1rem;
}


/* =========================================================
   06) BUTTON ROW (legacy reuse)
   Attaches to: any .btn-row within PWP pages
   ========================================================= */

.page--pwp .btn-row{
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.page--pwp .btn{
  background: var(--pwp);
  color: #001213;
  box-shadow: 0 0 16px rgba(90,164,163,.22);
}

.page--pwp .btn:hover{
  box-shadow: 0 0 18px rgba(90,164,163,.34);
}


/* =========================================================
   07) MOBILE
   ========================================================= */

@media (max-width: 640px){
  .page--pwp .copy{
    padding: 22px 16px;
  }

  .page--pwp .pwp-form-row{
    grid-template-columns: 1fr;
  }

  .page--pwp .pwp-btn{
    width: 100%;
  }
}


.page--pwp .short-body{
  white-space: normal;
}

.page--pwp .short-body .pwp-content{
  white-space: pre-line;
}


/* =========================================================
   09) SECTION DIVIDER
   ========================================================= */
.pwp-divider {
  border: 0;
  height: 1px;
  margin: 32px 0 40px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(90, 164, 163, 0.35),
    transparent
  );
}

/* =========================================================
   10) REQUESTED HERO BANNER
   ========================================================= */
.hero--requested {
  position: relative;
}

.hero--requested .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,.15),
    transparent
  );
}

.hero--requested .hero-line {
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pwp-ink);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

/* =========================================================
   11A) Doors Opened card tweaks 
   ========================================================= */

.pwp-card--doors{
  border: 1px solid rgba(90,164,163,.35);
  box-shadow: 0 0 28px rgba(90,164,163,.12);
}

.pwp-card--doors .pwp-card__kicker{
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: .85;
}

.pwp-card--doors .pwp-card__title{
  margin: 8px 0 10px;
  letter-spacing: .08em;
}

.pwp-card--doors .pwp-card__desc{
  margin: 0;
  opacity: .85;
  line-height: 1.6;
}

.pwp-card--doors .pwp-card__actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   11B) Doors Opened hero-style card (teaser look)
   ========================================================= */

.pwp-card--hero{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(90,164,163,.35);
  box-shadow: 0 0 30px rgba(0,0,0,.75);
  background: rgba(0,0,0,.55);
}

/* Background image layer */
.pwp-card--hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--pwp-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  opacity: 1;
  pointer-events:none;
}

/* Remove the default left accent line for hero cards */
.pwp-card--hero::before{
  display:none;
}

/* Overlay content container */
.pwp-hero-overlay{
  position: relative;
  z-index: 1;
  padding: 28px 22px;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.35),
      rgba(0,0,0,.45)
    );
}

.pwp-card--hero:hover::after{
  filter: saturate(1.1) contrast(1.08);
}

/* Centered inner block like the teaser card */
.pwp-hero-inner{
  max-width: 76ch;
  margin: 0 auto;
  text-align: center;
}

/* Kicker */
.pwp-card--hero .pwp-card__kicker{
  margin: 0 0 10px;
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(230,244,243,.88);
  opacity: .92;
}

/* Title */
.pwp-card--hero .pwp-card__title{
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  text-shadow: 0 0 18px rgba(0,0,0,.65);
}

/* Description */
.pwp-card--hero .pwp-card__desc{
  margin: 0 auto 18px;
  color: rgba(230,244,243,.86);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* Actions row */
.pwp-card--hero .pwp-card__actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Make the anchors look like your existing .pwp-btn buttons */
.page--pwp a.pwp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90,164,163,.55);
  background: rgba(0,0,0,.35);
  color: var(--pwp-ink);
  font-family: "Unica One", system-ui, sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(90,164,163,.14);
}

.page--pwp a.pwp-btn:hover{
  background: rgba(90,164,163,.18);
  box-shadow: 0 0 18px rgba(90,164,163,.22);
}

.page--pwp a.pwp-btn--primary{
  background: rgba(90,164,163,.22);
  border-color: rgba(90,164,163,.75);
}

@media (max-width: 640px){
  .pwp-hero-overlay{ padding: 22px 16px; }
  .pwp-card--hero .pwp-card__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .page--pwp a.pwp-btn{ width: 100%; }
}
