/* ================================================================
   DAV Strains Workroom v4.6 — Subscription-first wave polish
   Focus: premium login/signup journey + mobile player overlap repair
   ================================================================ */
:root{
  --dav-wave-img:url('../img/Background.webp');
  --dav-wave-wide:url('../img/dav-workroom-wave-wide.png');
  --dav-gold:#f1c96d;
  --dav-blue:#38c6f4;
  --dav-ink:#071524;
  --dav-paper:#fff7e8;
}

/* Put the DAV wave identity behind the pages that sell membership. */
body.dav-pmpro-ui,
body.dav-pmpro-checkout,
body.dav-wc-account-ui,
body.dav-wc-checkout-ui,
body.woocommerce-account,
body.woocommerce-checkout,
body.page-template-default.page-id-0{
  background:
    radial-gradient(circle at 20% 0%, rgba(56,198,244,.14), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(241,201,109,.18), transparent 32%),
    #06111f !important;
}

body.dav-pmpro-ui .site-main,
body.dav-pmpro-checkout .site-main,
body.dav-wc-account-ui .site-main,
body.woocommerce-account .site-main{
  position:relative;
  overflow:hidden;
}
body.dav-pmpro-ui .site-main:before,
body.dav-pmpro-checkout .site-main:before,
body.dav-wc-account-ui .site-main:before,
body.woocommerce-account .site-main:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:320px;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(5,10,18,.05), rgba(5,10,18,.82)),
    var(--dav-wave-img) center 45% / cover no-repeat;
  opacity:.42;
  filter:saturate(1.18) contrast(1.08);
}

/* Make login/signup feel like a product, not a WordPress utility page. */
.dav-auth-shell{
  min-height:calc(100vh - 140px);
  display:grid;
  place-items:center;
  padding:clamp(28px,6vw,82px) 16px 140px;
  background:
    linear-gradient(180deg, rgba(5,10,18,.10), rgba(5,10,18,.86)),
    var(--dav-wave-img) center / cover no-repeat;
}
.dav-auth-card{
  width:min(100%, 520px);
  border-radius:34px;
  padding:clamp(24px,5vw,42px);
  background:rgba(255,247,232,.96);
  color:var(--dav-ink);
  box-shadow:0 34px 110px rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.65);
}
.dav-auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(8,17,31,.06);
  color:#79560c;
  border:1px solid rgba(241,201,109,.38);
  font-size:12px;
  line-height:1;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.dav-auth-card h1{
  margin:18px 0 10px!important;
  color:var(--dav-ink)!important;
  font-family:"Sora","Plus Jakarta Sans",Inter,system-ui,sans-serif!important;
  font-size:clamp(36px,8vw,58px)!important;
  line-height:.95!important;
  letter-spacing:-.06em!important;
}
.dav-auth-card p{
  color:rgba(8,17,31,.72)!important;
  font-size:17px!important;
  line-height:1.6!important;
  max-width:40rem;
}
.dav-auth-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:22px 0;
}
.dav-auth-primary,
.dav-auth-secondary,
.dav-mini-login button{
  min-height:54px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  text-decoration:none!important;
  letter-spacing:-.01em;
}
.dav-auth-primary,
.dav-mini-login button{
  background:linear-gradient(135deg,#fff1c7,#f1c96d,#d89b30)!important;
  color:#08111f!important;
  border:0!important;
  box-shadow:0 16px 38px rgba(216,155,48,.24);
}
.dav-auth-secondary{
  background:#08111f!important;
  color:#fff!important;
  border:1px solid rgba(8,17,31,.12)!important;
}
.dav-mini-login{
  display:grid;
  gap:12px;
  padding-top:18px;
  border-top:1px solid rgba(8,17,31,.10);
}
.dav-mini-login label{
  display:grid;
  gap:7px;
  color:rgba(8,17,31,.76);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.dav-mini-login input{
  width:100%;
  min-height:54px;
  border-radius:18px!important;
  border:1px solid rgba(8,17,31,.13)!important;
  background:#fff!important;
  color:#08111f!important;
  padding:0 16px!important;
  font-size:16px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65);
}
.dav-mini-login input:focus{
  border-color:rgba(56,198,244,.75)!important;
  box-shadow:0 0 0 4px rgba(56,198,244,.14)!important;
  outline:0!important;
}
.dav-mini-login > a{
  justify-self:center;
  color:#36435a!important;
  font-size:13px;
  font-weight:800;
}

/* Make PMPro content pages sell the next action clearly. */
body.dav-pmpro-ui .entry-content,
body.dav-pmpro-checkout .entry-content,
body.dav-wc-account-ui .entry-content,
body.woocommerce-account .entry-content{
  position:relative;
  z-index:1;
}
body.dav-pmpro-ui .entry-title,
body.dav-pmpro-checkout .entry-title,
body.dav-wc-account-ui .entry-title,
body.woocommerce-account .entry-title{
  color:#fff!important;
  text-shadow:0 10px 50px rgba(0,0,0,.45);
}
.pmpro_content_message a,
.pmpro_btn,
#pmpro_btn-submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  border-radius:999px!important;
  min-height:50px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 22px!important;
  font-weight:950!important;
}

/* Mobile strip player repair: no stacking; next and repeat always get their own cells. */
@media (max-width:720px){
  :root{--strip-h-mobile:70px;}
  .dav-strip{
    left:0!important;
    right:0!important;
    bottom:calc(var(--dav-bottom-menu, 60px) + env(safe-area-inset-bottom,0px) + 1px)!important;
    z-index:9998!important;
    overflow:hidden!important;
  }
  .dav-strip .strip-inner{
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) 126px!important;
    align-items:center!important;
    gap:10px!important;
    height:70px!important;
    min-height:70px!important;
    padding:8px 10px!important;
    width:100%!important;
    max-width:none!important;
  }
  .dav-strip .strip-art{
    width:40px!important;
    height:40px!important;
    grid-column:1!important;
  }
  .dav-strip .strip-meta{
    grid-column:2!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .dav-strip .strip-controls{
    grid-column:3!important;
    display:grid!important;
    grid-template-columns:42px 34px 34px!important;
    align-items:center!important;
    justify-content:end!important;
    column-gap:8px!important;
    width:126px!important;
    min-width:126px!important;
    flex:none!important;
    position:relative!important;
  }
  .dav-strip .strip-prev{display:none!important;}
  .dav-strip .strip-btn,
  .dav-strip .strip-next,
  .dav-strip .strip-repeat{
    position:relative!important;
    inset:auto!important;
    margin:0!important;
    transform:none!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    grid-row:1!important;
    border:1px solid rgba(255,255,255,.08)!important;
    background:rgba(255,255,255,.045)!important;
  }
  .dav-strip .strip-play{
    grid-column:1!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    background:#fff!important;
    color:#071524!important;
    border:0!important;
  }
  .dav-strip .strip-next{grid-column:2!important;}
  .dav-strip .strip-repeat{grid-column:3!important;display:inline-grid!important;place-items:center!important;}
  .dav-strip .strip-repeat svg,
  .dav-strip .strip-next svg{width:17px!important;height:17px!important;}
  .dav-strip .strip-title{font-size:13px!important;font-weight:900!important;}
  .dav-strip .strip-sub{font-size:11px!important;}
  .repeat-one-label{right:3px!important;bottom:1px!important;font-size:8px!important;}
}

@media (max-width:370px){
  .dav-strip .strip-inner{grid-template-columns:36px minmax(0,1fr) 118px!important;gap:8px!important;padding-inline:8px!important;}
  .dav-strip .strip-art{width:36px!important;height:36px!important;}
  .dav-strip .strip-controls{grid-template-columns:40px 32px 32px!important;column-gap:7px!important;width:118px!important;min-width:118px!important;}
  .dav-strip .strip-play{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;}
  .dav-strip .strip-next,.dav-strip .strip-repeat{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;}
}

/* The conversion goal: subscription CTA must be visually louder than casual browsing. */
.bottom-nav-account-btn,
.nav-subscribe,
a[href*="membership-checkout"],
a[href*="membership-levels"]{
  box-shadow:0 14px 34px rgba(241,201,109,.18);
}
.bottom-nav-account-btn:focus-visible,
.dav-auth-primary:focus-visible,
.dav-auth-secondary:focus-visible,
.dav-mini-login button:focus-visible{
  outline:3px solid rgba(56,198,244,.55)!important;
  outline-offset:3px!important;
}

@media (max-width:620px){
  .dav-auth-actions{grid-template-columns:1fr;}
  .dav-auth-shell{padding-top:34px;}
  .dav-auth-card{border-radius:28px;padding:24px;}
}
