﻿:root{
  --bg: #050a14;
  --bg2: #070a18;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --gold: #fcd34d;
  --line: rgba(255,255,255,.14);

  --radius: 18px;
  --radius2: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --shadow2: 0 10px 26px rgba(0,0,0,.35);
}

/* Base app look */
body.wpsm-app{
  background:
    radial-gradient(1100px 700px at 15% 0%, rgba(252,211,77,.11), transparent 60%),
    radial-gradient(900px 520px at 85% 12%, rgba(167,139,250,.10), transparent 62%),
    radial-gradient(900px 520px at 50% 100%, rgba(34,197,94,.07), transparent 62%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
}

.wpsm-wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 72px;
}

/* App header (optional) */
.wpsm-header{
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(5,10,20,.70);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.wpsm-header__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wpsm-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 850;
  letter-spacing: .35px;
}

.wpsm-brand__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(252,211,77,.12), 0 0 24px rgba(252,211,77,.25);
}

.wpsm-nav{ display:flex; align-items:center; gap: 8px; }
.wpsm-nav a{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.wpsm-nav a:hover{
  color: var(--text);
  border-color: rgba(252,211,77,.18);
  background: rgba(255,255,255,.05);
}

.wpsm-iconbtn{
  cursor: pointer;
  border: 1px solid rgba(252,211,77,.18);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* Hero */
.wpsm-hero{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(252,211,77,.18);
  background: rgba(255,255,255,.03);
}

.wpsm-hero__media{
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.wpsm-hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1000px 380px at 50% 10%, rgba(252,211,77,.18), transparent 62%),
    linear-gradient(to bottom, rgba(5,10,20,.08), rgba(5,10,20,.94));
}

.wpsm-hero__content{
  position: relative;
  margin-top: -160px;
  padding: 18px 18px 22px;
}

.wpsm-hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  text-shadow: 0 10px 34px rgba(0,0,0,.55);
}

.wpsm-sub{
  color: var(--muted);
  margin: 0 0 14px;
  text-shadow: 0 10px 34px rgba(0,0,0,.55);
}

.wpsm-title--center{ text-align:center; }
.wpsm-sub--center{
  text-align:center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Divider */
.wpsm-divider{
  position: relative;
  margin: 16px auto 8px;
  height: 1px;
  max-width: 860px;
  background: linear-gradient(to right, transparent, rgba(252,211,77,.32), transparent);
}
.wpsm-divider::after{
  content:"✦";
  position:absolute;
  left:50%;
  top:-11px;
  transform: translateX(-50%);
  width: 34px;
  height: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(252,211,77,.90);
  background: rgba(5,10,20,.70);
  border: 1px solid rgba(252,211,77,.22);
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

/* Buttons */
.wpsm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.wpsm-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }

.wpsm-btn--storybook{
  border-color: rgba(252,211,77,.55);
  background: linear-gradient(180deg, rgba(252,211,77,.38), rgba(252,211,77,.18));
  box-shadow: var(--shadow2);
}
.wpsm-btn--storybook:hover{
  background: linear-gradient(180deg, rgba(252,211,77,.50), rgba(252,211,77,.24));
}

/* Badges */
.wpsm-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.wpsm-badge--gold{ border-color: rgba(252,211,77,.35); background: rgba(252,211,77,.10); }
.wpsm-badge--new{ border-color: rgba(110,231,183,.35); background: rgba(110,231,183,.10); }
.wpsm-badge--soon{ border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10); }

/* Grid + Cards */
.wpsm-row{ display:flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.wpsm-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 14px;
}
@media(min-width: 560px){ .wpsm-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(min-width: 920px){ .wpsm-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }

.wpsm-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(252,211,77,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  position: relative;
  text-decoration: none;
}
.wpsm-card:hover{
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border-color: rgba(252,211,77,.24);
}
.wpsm-card::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events:none;
}

.wpsm-card__img{
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(252,211,77,.16);
}
.wpsm-card__body{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.wpsm-card__title{
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  text-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.wpsm-card__meta{
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  line-height: 1.35;
}
.wpsm-card__actions{ margin-top: auto; padding-top: 4px; }

/* Sections + CTA */
.wpsm-section{
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(252,211,77,.16);
  background: rgba(255,255,255,.03);
}
.wpsm-section h2{ margin: 0 0 12px; font-size: 18px; }

.wpsm-cta{
  margin-top: 26px;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(252,211,77,.18);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.wpsm-cta h2{
  margin: 0 0 10px;
  font-size: 28px;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

/* Search modal */
.wpsm-searchmodal{
  display:none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,10,20,.92);
  backdrop-filter: blur(12px);
  padding: 22px 16px;
}
.wpsm-searchmodal.is-open{ display:block; }
.wpsm-searchmodal__box{
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(252,211,77,.18);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.wpsm-searchmodal__top{
  padding: 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.wpsm-searchmodal input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(252,211,77,.18);
  background: rgba(0,0,0,.28);
  color: var(--text);
  outline: none;
}
.wpsm-searchmodal input::placeholder{ color: rgba(255,255,255,.55); }
.wpsm-searchresults{ padding: 12px 14px 16px; }

/* Print */
@media print{
  body{ background:#fff !important; color:#000 !important; }
  .wpsm-header, .wpsm-searchmodal, .wpsm-nav { display:none !important; }
  .wpsm-btn, .wpsm-iconbtn{ display:none !important; }
  .wpsm-section, .wpsm-hero, .wpsm-card{
    box-shadow:none !important;
    border-color:#ddd !important;
    background:#fff !important;
  }
  .wpsm-hero__media{ display:none !important; }
  .wpsm-hero__content{ margin-top:0 !important; }
}
