/*
Theme Name: Onewin
Theme URI: https://onewin.local
Author: Local
Description: 1win lobby layout for WordPress. SEO via page content + Yoast. Partner CTA via settings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: onewin
*/

/* Theme chrome + SEO block (layout CSS is assets/css/app.css) */
.onevv-seo{
  --seo-bg: var(--neutral-dark-2, #1d1e20);
  --seo-card: var(--neutral-dark-3, #2e3035);
  --seo-text: var(--neutral-dark-14, #f0f2f5);
  --seo-muted: var(--neutral-dark-10, #9ea2ab);
  --seo-line: rgba(255,255,255,.08);
  max-width: 1120px;
  margin: 28px auto 8px;
  padding: 0 20px 28px;
  color: var(--seo-text);
  font-family: Inter, system-ui, sans-serif;
  box-sizing: border-box;
}
.onevv-seo *{box-sizing: border-box}
.onevv-seo__panel{
  background: var(--seo-bg);
  border: 1px solid var(--seo-line);
  border-radius: 16px;
  padding: 28px 28px 8px;
}
.onevv-seo__title{
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.onevv-seo__lead{
  margin: 0 0 16px;
  color: var(--seo-muted);
  font-size: 15px;
  line-height: 1.55;
}
.onevv-seo__body h2{
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}
.onevv-seo__body p,
.onevv-seo .onevv-faq__item p{
  margin: 0 0 12px;
  color: var(--seo-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.onevv-seo__body ul{
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--seo-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.onevv-seo__body ol:not(.onevv-seo-steps){
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--seo-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.onevv-seo-card{
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--seo-card);
  border: 1px solid rgba(22,199,132,.22);
}
.onevv-seo-card p{ margin:0; color:var(--seo-muted); font-size:14.5px; line-height:1.55 }
.onevv-seo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin:14px 0 18px;
}
.onevv-seo-grid__item{
  padding:12px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--seo-line);
  color:var(--seo-muted);
  font-size:13.5px;
  line-height:1.45;
}
.onevv-seo-grid__item strong{
  display:block;
  margin-bottom:4px;
  color:#5dffc2;
  font-size:13.5px;
}
.onevv-seo-steps{
  counter-reset:onevv-step;
  list-style:none;
  margin:0 0 16px;
  padding:0;
}
.onevv-seo-steps li{
  counter-increment:onevv-step;
  position:relative;
  margin:0 0 8px;
  padding:12px 12px 12px 48px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--seo-line);
  color:var(--seo-muted);
  font-size:14px;
  line-height:1.5;
}
.onevv-seo-steps li::before{
  content:counter(onevv-step);
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:24px;height:24px;
  border-radius:50%;
  display:grid;place-items:center;
  font-size:12px;font-weight:700;
  color:#0b0c0f;
  background:#16c784;
}
.onevv-seo__body a{ color:#7eb0ff; text-decoration:none }
.onevv-seo__body a:hover{ text-decoration:underline }
.onevv-seo__cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 22px;
}
.onevv-seo__btn,
a.onevv-seo__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:10px;
  background:#16c784;
  color:#0b0c0f !important;
  font-weight:700;
  font-size:14px;
  text-decoration:none !important;
}
.onevv-seo__btn--ghost,
a.onevv-seo__btn--ghost{
  background:transparent;
  color:var(--seo-text) !important;
  border:1px solid var(--seo-line);
}
.onevv-faq{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--seo-line);
}
.onevv-faq__title{
  margin:8px 0 14px;
  font-size:22px;
  font-weight:700;
}
.onevv-faq__item{
  border:1px solid var(--seo-line);
  border-radius:12px;
  background:var(--seo-card);
  margin:0 0 10px;
  overflow:hidden;
}
.onevv-faq__item summary{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  font-size:15px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.onevv-faq__item summary::-webkit-details-marker{display:none}
.onevv-faq__item summary::after{
  content:"+";
  width:22px;height:22px;border-radius:6px;
  background:rgba(255,255,255,.06);
  color:var(--seo-muted);
  display:grid;place-items:center;
}
.onevv-faq__item[open] summary::after{content:"–"}
.onevv-faq__item p{ margin:0; padding:0 16px 14px; color:var(--seo-muted); font-size:14px; line-height:1.55 }

.onewin-wp-nav .menu,
.onewin-wp-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}
.onewin-cluster-nav{
  max-width:1120px;
  margin:16px auto 0;
  padding:0 20px;
}
.onewin-cluster-nav__list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}
.onewin-cluster-nav__list a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#f0f2f5 !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:600;
}
.onewin-cluster-nav__list a:hover,
.onewin-cluster-nav__list .current-menu-item > a{
  border-color:rgba(22,199,132,.45);
  background:rgba(22,199,132,.12);
}
.onewin-cluster-nav__list li{ margin:0; }
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;
}

/* Fixed partner CTA */
.onewin-fixed-cta{
  position:fixed;
  left:50%;
  bottom:calc(0.85rem + env(safe-area-inset-bottom, 0px));
  transform:translateX(-50%);
  z-index:1000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:min(92vw, 20rem);
  min-height:3.4rem;
  padding:0.65rem 1.25rem;
  border-radius:999px;
  text-decoration:none !important;
  color:#0b0c0f !important;
  background:#16c784;
  box-shadow:0 12px 30px rgba(22,199,132,.45);
  animation:onewin-cta-pulse 2.2s ease-in-out infinite;
}
.onewin-fixed-cta__label{
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.9;
  line-height:1.1;
}
.onewin-fixed-cta__offer{
  font-size:1.05rem;
  font-weight:800;
  line-height:1.15;
}
@keyframes onewin-cta-pulse{
  0%,100%{ box-shadow:0 12px 30px rgba(22,199,132,.45); }
  50%{ box-shadow:0 14px 36px rgba(94,255,194,.55); }
}
body.admin-bar .onewin-fixed-cta{
  bottom:calc(0.85rem + 32px + env(safe-area-inset-bottom, 0px));
}
@media screen and (max-width:782px){
  body.admin-bar .onewin-fixed-cta{
    bottom:calc(0.75rem + 46px + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion:reduce){
  .onewin-fixed-cta{ animation:none; }
}
body.onewin-theme{
  padding-bottom:calc(4.5rem + env(safe-area-inset-bottom, 0px));
}
