/* ================================
   Naada Store - Dark Theme Styles
   ================================ */

/* Container */
.naada-store {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
  color: #f1f1f1;
}

/* Header (side-by-side, precise spacing) */
.naada-header {
  --naada-header-gap: clamp(0.9rem, 1.4vw, 1.4rem);
  --naada-logo-height: 92px;
  --naada-logo-nudge-x: -6px;
  --naada-title-nudge-y: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--naada-header-gap);
  margin: 0;
  padding: 0;
}
.naada-header__logo { line-height: 0; }
.naada-header__logo img {
  height: var(--naada-logo-height);
  width: auto;
  display: block;
  margin: 0;
  transform: translateX(var(--naada-logo-nudge-x));
  background: transparent;
  border: 0;
  box-shadow: none;
}
.naada-header__title h1 {
  margin: 0;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #fff;
  transform: translateY(var(--naada-title-nudge-y));
}

/* Cards */
.naada-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #333;
  background: transparent;
}
.naada-card--intro {
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 900px) {
  .naada-card { grid-template-columns: 1fr; }
  .naada-card--intro { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .naada-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 0.5rem;
  }
  .naada-header__logo img,
  .naada-header__title h1 {
    transform: none;
  }
  .naada-card--intro,
  .naada-card--intro .naada-content {
    text-align: left;
  }
}

/* Responsive video container */
.naada-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.naada-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Text Content */
.naada-title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
}
.naada-content p {
  margin: 0.3rem 0;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Notes Box */
.naada-note {
  margin-top: 1.25rem;
  padding: 1rem;
  border-left: 4px solid #ff3c00;
  background: #1a1a1a;
  color: #ccc;
}

/* === Video thumbnail (naada-video containers only) === */
.naada-video .youtube-thumbnail-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
}
.naada-video .youtube-thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.naada-video .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;
  z-index: 1;
}
.naada-video .youtube-thumbnail-wrapper:hover::after {
  transform: scale(1.1);
  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="1" 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;
}
.naada-video .youtube-thumbnail-wrapper.playing::after {
  display: none;
}

/* Buttons */
.wp-block-button .wp-block-button__link {
  display: inline-block;
  margin-top: 0.6rem;
  border-radius: 999px;
  background-color: #ff3c00;
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 1rem;
  text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover { background-color: #ff5622; }
