/* =============================================
   SIMPLIGEN — style.css
   ============================================= */

/* --- Variables --- */
:root {
  --accent:       #ff57d8;
  --accent-dark:  #e040bf;
  --bg-hero:      #0c0f1a;
  --bg-page:      #ffffff;
  --border:       #e5e7eb;
  --text:         #111827;
  --text-muted:   #6b7280;
  --star-color:   #f59e0b;
  --verified:     #16a34a;
  --badge-bg:     #f0fdf4;
  --badge-border: #bbf7d0;
  --badge-text:   #15803d;
  --radius:       4px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body        { font-family: var(--font); color: var(--text); background: var(--bg-page); font-size: 16px; line-height: 1.65; }
img         { max-width: 100%; height: auto; display: block; }
a           { color: inherit; text-decoration: none; }
ul, ol      { padding-left: 1.4em; }
li          { margin-bottom: 6px; }

/* =============================================
   STICKY BAR
   ============================================= */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}
.sticky-bar.visible { transform: translateY(0); }

.sticky-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sticky-bar__brand { font-weight: 700; font-size: 15px; }

/* =============================================
   PRICE BADGE
   ============================================= */
.price-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}
.price-badge::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-left-color: var(--accent);
  border-right-width: 0;
}

/* =============================================
   STARS
   ============================================= */
.stars         { display: inline-flex; align-items: center; gap: 5px; }
.stars__icons  { color: var(--star-color); letter-spacing: 1px; font-size: 15px; }
.stars--sm .stars__icons { font-size: 13px; }
.stars__count  { color: var(--text-muted); font-size: 13px; }

/* =============================================
   BUTTON
   ============================================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover    { background: var(--accent-dark); }
.btn--full    { display: block; width: 100%; }
.btn--lg      { padding: 14px 36px; font-size: 18px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--bg-hero);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
}
.carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
}
.carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrow buttons */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.carousel__arrow:hover { background: rgba(255,255,255,0.3); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

/* Dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 8px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Hero feature strip */
.hero__features {
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.55);
}
.hero__features ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  list-style: disc inside;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding-left: 0;
}
.hero__features li { margin-bottom: 0; }

/* =============================================
   PAGE LAYOUT (content + sidebar)
   ============================================= */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* =============================================
   CONTENT (left column)
   ============================================= */
.content { min-width: 0; }

/* Product header */
.product-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}
.product-header__name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.seller:hover { text-decoration: underline; }
.seller__logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sections */
.section { padding: 26px 0; }

.section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.55;
}
.hook {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: normal;
  font-size: 16px;
}
.section p { margin-bottom: 10px; }
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol { margin: 10px 0; }

.link-discord {
  color: #5865f2;
  font-style: italic;
}
.link-discord:hover { text-decoration: underline; }

.feature-img {
  width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

/* Engine cards */
.engine-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.engine-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.engine-card p  { font-size: 15px; margin-bottom: 8px; }
.engine-card ul { margin-top: 8px; }
.engine-card li { font-size: 15px; }

/* CTA section */
.cta-section   { text-align: center; padding-bottom: 40px; }
.cta-section p { margin-bottom: 20px; color: var(--text-muted); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* =============================================
   SIDEBAR (right column)
   ============================================= */
.sidebar {
  position: sticky;
  top: 60px;
}

/* Buy widget */
.buy-widget {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.buy-widget .btn { margin-bottom: 14px; }
.buy-widget__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 10px;
}
.buy-widget__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Reviews */
.reviews__heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.reviews__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.reviews__score {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.reviews__total {
  font-size: 13px;
  color: var(--text-muted);
}

/* Rating bars */
.rating-bars { margin-bottom: 20px; }
.rating-bar {
  display: grid;
  grid-template-columns: 54px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 5px;
}
.rating-bar__label { color: var(--text-muted); }
.rating-bar__pct   { color: var(--text-muted); text-align: right; }
.rating-bar__track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar__fill {
  height: 100%;
  background: var(--star-color);
  border-radius: 3px;
}

/* Review list */
.review-list { display: flex; flex-direction: column; }
.review {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.review:last-child { border-bottom: none; }
.review .stars { margin: 6px 0 8px; }
.review__text {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
  color: var(--text);
}
.review__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review__author strong { font-size: 13px; display: block; }

/* Badge */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

/* Avatar */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

/* Verified */
.verified {
  font-size: 11px;
  color: var(--verified);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }
  .sidebar {
    position: static;
    order: -1;
  }
  .hero__features ul { gap: 8px 24px; font-size: 14px; }
  .carousel__arrow { display: none; }
}

@media (max-width: 480px) {
  .product-header__name { font-size: 22px; }
  .section h2 { font-size: 18px; }
  .btn--lg { padding: 12px 24px; font-size: 16px; }
}
