/* moForte Base Styles — reset, typography, common elements */
@import url('https://use.typekit.net/xdb7ejh.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mf-font-display);
  font-size: 16px;
  line-height: 1.7;
  color: var(--mf-text-primary);
  background: var(--mf-bg-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mf-accent-teal);
  text-decoration: none;
  transition: color var(--mf-transition);
}
a:hover { color: var(--mf-accent-blue); }

h1, h2, h3, h4, h5, h6 {
  color: var(--mf-text-white);
  font-family: var(--mf-font-display);
}

img { max-width: 100%; height: auto; display: block; }

.mf-container {
  max-width: var(--mf-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared button styles */
.mf-btn-primary,
a.mf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-family: var(--mf-font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  background: var(--mf-accent-orange);
  color: #000;
  border: none;
}
.mf-btn-primary:hover,
a.mf-btn-primary:hover {
  background: var(--mf-accent-orange-hover);
  transform: translateY(-1px);
  color: #000;
}

.mf-btn-secondary,
a.mf-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-family: var(--mf-font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid var(--mf-border-strong);
  color: var(--mf-accent-cyan);
}
.mf-btn-secondary:hover,
a.mf-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Buy button (shared by both store pages) */
.wp-block-button .wp-block-button__link,
a.wp-block-button__link {
  display: inline-block;
  margin-top: 0.6rem;
  border-radius: 999px;
  background-color: var(--mf-accent-red);
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background-color var(--mf-transition);
}
.wp-block-button .wp-block-button__link:hover,
a.wp-block-button__link:hover {
  background-color: var(--mf-accent-red-hover);
  color: #fff;
}

/* YouTube thumbnail play button overlay */
.youtube-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  cursor: pointer;
  background: #000;
}
.youtube-thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.youtube-thumbnail-wrapper::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 48px;
  height: 34px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path fill="%23f00" fill-opacity="0.8" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"></path><path fill="%23fff" d="M 45,24 27,14 27,34"></path></svg>') no-repeat;
  background-size: contain;
  pointer-events: none;
  transition: all 0.3s;
}
.youtube-thumbnail-wrapper:hover::after {
  transform: scale(1.1);
}
.youtube-thumbnail-wrapper.playing::after {
  display: none;
}

/* Video lightbox modal */
.yt-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.yt-lightbox-overlay.active { display: flex; }
.yt-lightbox-content {
  position: relative;
  width: 75%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.yt-lightbox-close:hover { opacity: 1; }
.yt-lightbox-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .yt-lightbox-content { width: 90%; }
  .yt-lightbox-close { top: -50px; font-size: 32px; }
}
