/* ─────────────────────────────────────────────────────────────────────────
   ДЕМО-ДОСТУП — стили для page-mystik-demo.php и page-mystik-demo-cabinet.php
   ───────────────────────────────────────────────────────────────────────── */

/* === LANDING /demo/ ============================================== */
body.page-demo { padding-top: 88px; }

.demo-hero {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #1a1410 0%, #2a1f18 100%);
  color: #e8d9c4;
  text-align: center;
}
.demo-hero__title {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--gold, #f0d9a8);
  letter-spacing: 0.02em;
}
.demo-hero__subtitle {
  font-size: 19px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 28px;
  opacity: 0.92;
}
.demo-hero__subtitle strong { color: var(--gold, #f0d9a8); }
.demo-hero__facts {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}
.demo-hero__facts li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 16px;
}
.demo-hero__facts li::before {
  content: '✦';
  position: absolute;
  left: 6px;
  color: #d4a661;
}
.demo-hero__facts strong { color: var(--gold, #f0d9a8); }

.demo-register {
  padding: 50px 0 60px;
  background: var(--bg2, #1a1410);
}
.demo-register__box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg3, #2a1f18);
  border: 1px solid var(--border, rgba(201,168,76,0.2));
  border-radius: 8px;
  padding: 40px 36px;
}
.demo-register__box h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--heading-font, Georgia, serif);
}
.demo-register__box > p {
  color: var(--text-muted, #b8a896);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
}
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.demo-form__field { display: flex; flex-direction: column; gap: 6px; }
.demo-form__field span { font-size: 13px; font-weight: 600; color: var(--gold, #f0d9a8); }
.demo-form__field input {
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(201,168,76,0.2));
  border-radius: 4px;
  font-size: 15px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  transition: border-color 0.15s;
}
.demo-form__field input:focus { border-color: var(--gold, #c9a84c); outline: none; }
.demo-form__hint { font-weight: 400; opacity: 0.7; font-style: italic; color: var(--text-muted, #b8a896); }
.demo-form__consent {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #b8a896);
  cursor: pointer;
}
.demo-form__consent input { margin-top: 3px; flex-shrink: 0; }
.demo-form__consent a { color: var(--gold, #c9a84c); }
.demo-form__submit {
  background: var(--gold, #c9a84c);
  color: #1a1410;
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}
.demo-form__submit:hover { background: #d4b85e; }
.demo-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-form__error {
  background: rgba(195,51,51,0.15);
  border-left: 3px solid #c33;
  padding: 10px 14px;
  color: #ff8888;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
}

.demo-fullcourse {
  padding: 60px 0;
  background: var(--bg, #0a0807);
}
.demo-fullcourse h2 {
  text-align: center;
  font-family: var(--heading-font, Georgia, serif);
  color: #fff;
  margin: 0 0 32px;
}
.demo-fullcourse__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.demo-fullcourse__grid > div {
  background: var(--bg2, #1a1410);
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(201,168,76,0.2));
}
.demo-fullcourse__grid h3 {
  color: var(--gold, #c9a84c);
  margin: 0 0 10px;
  font-family: var(--heading-font, Georgia, serif);
}
.demo-fullcourse__grid p { color: var(--text-muted, #b8a896); line-height: 1.5; font-size: 14px; margin: 0 0 18px; }
.demo-fullcourse__buy {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  border: 1.5px solid var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
}
.demo-fullcourse__buy:hover { background: var(--gold, #c9a84c); color: #1a1410; }
.demo-fullcourse__buy--primary { background: var(--gold, #c9a84c); color: #1a1410; }
.demo-fullcourse__buy--primary:hover { background: #d4b85e; }


/* === CABINET /demo-cabinet/ — переиспользуем .cabinet-* классы основного кабинета === */
/* Доп. стили для демо-карточек поверх .purchase-card */

.demo-act-title {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 18px;
  color: #fff;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-act-title:first-of-type { margin-top: 0; }
.demo-act-count {
  font-family: var(--text-font, sans-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted, #b8a896);
  background: rgba(201,168,76,0.1);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(201,168,76,0.2));
}

.demo-clip-card {
  display: flex;
  flex-direction: column;
}

.demo-clip-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1410 0%, #2a1f18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s;
}
.demo-clip-thumb::after {
  /* Декоративная эмблема — слабый фоновый watermark */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/logo-transparent.webp');
  background-size: 60% auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.demo-clip-thumb:hover { background: linear-gradient(135deg, #2a1f18 0%, #3a2a1a 100%); }
.demo-clip-thumb:focus-visible { outline: 2px solid var(--gold, #c9a84c); outline-offset: -3px; }

.demo-clip-play {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.demo-clip-play svg { width: 22px; height: 22px; color: #1a1410; margin-left: 3px; }
.demo-clip-thumb:hover .demo-clip-play {
  background: var(--gold, #c9a84c);
  transform: scale(1.1);
}

.demo-clip-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  background: rgba(8,8,8,0.7);
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(201,168,76,0.3);
  font-weight: 600;
}

.demo-clip-card .purchase-card-img {
  /* override aspect-ratio: 1/1 из .purchase-card-img — нам нужно 16/9 для видео */
  aspect-ratio: 16 / 9;
}

.demo-clip-card .purchase-access-btn {
  margin-top: 4px;
}

.demo-final-cta {
  margin-top: 60px;
  padding: 50px 30px;
  background: linear-gradient(180deg, var(--bg2, #1a1410) 0%, var(--bg, #0a0807) 100%);
  border: 1px solid var(--border, rgba(201,168,76,0.2));
  border-radius: 8px;
  text-align: center;
}
.demo-final-cta h3 {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 26px;
  color: var(--gold, #f0d9a8);
  margin: 0 0 12px;
}
.demo-final-cta p {
  color: var(--text-muted, #b8a896);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Sticky CTA «Купить курс» */
.democab-sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold, #c9a84c);
  color: #1a1410;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  z-index: 100;
  font-size: 14px;
  transition: all 0.15s;
}
.democab-sticky-cta:hover { background: #d4b85e; transform: translateY(-2px); }

/* CTA-кнопка «Смотреть превью» (на других страницах) */
.btn-demo {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  border: 1.5px solid var(--gold, #f0d9a8);
  color: var(--gold, #f0d9a8);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
}
.btn-demo:hover { background: var(--gold, #f0d9a8); color: #1a1410; }

/* === Демо-watch overrides === */
body.page-demo-watch .watch-player-wrap > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
body.page-demo-watch .watch-sidebar-buy {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border, rgba(201,168,76,0.2));
  flex-shrink: 0;
}
body.page-demo-watch .watch-sidebar-buy .btn-gold {
  width: 100%;
  justify-content: center;
  display: flex;
}
body.page-demo-watch .watch-meta-hint {
  font-size: 12px;
  color: var(--text-muted, #b8a896);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .demo-hero__title { font-size: 36px; }
  .demo-hero__subtitle { font-size: 17px; }
  .demo-final-cta h3 { font-size: 22px; }
  .democab-sticky-cta { bottom: 12px; right: 12px; padding: 12px 18px; font-size: 13px; }
  .demo-act-title { font-size: 16px; }
}
