/* ============================================================================
📁 FILE: store-home.css
🎨 PURPOSE: Styling for Starter Store Homepage Hero + Info Boxes
🌟 VERSION: MPA Phase XX+b — Token polish, consistent contrast
============================================================================= */

/* 🔷 Hero Slideshow Container */
.hero-box {
  position: relative;
  background: var(--secondary);
  border: 2px solid var(--brand);
  padding: 40px 20px;
  margin-top: 6px; /* ✅ adds space above the hero */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--on_secondary);
}

.hero-slide {
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  background: transparent;
}

.hero-caption {
  font-size: 1.2rem;
  color: var(--primary);
}

/* Links inside hero */
.hero-box a {
  color: var(--on_secondary);
  text-decoration: underline;
}
.hero-box a:hover {
  opacity: 0.9;
}

.hero-lead {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--on_secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--on_secondary);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.hero-action--primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #10213f;
}

.hero-action:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* 🌈 Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Info section wrapper */
.store-info-section-wrapper {
  width: calc(100% - 0px); /* Leaves 4px padding on left & right */
  margin: 4px auto 0 auto; /* Top spacing + center horizontally */
  padding: 20px;
  background: var(--color_surface);
  border: 2px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* 📦 Store Info Box */
.store-info-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px;
  background: var(--color_surface);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color_text);
}

.store-info-box img {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border: 1px solid var(--color_border);
  padding: 8px;
  border-radius: 10px;
  background: transparent;
}

.store-info-box--image-right {
  flex-direction: row-reverse;
}

.store-info-box--image-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-info-box--image-center img {
  margin: 0 auto;
}

.store-info-text {
  flex: 1;
  min-width: 200px;
  color: var(--color_text);
  font-size: 1rem;
  line-height: 1.5;
}

.store-info-box a {
  color: var(--brand);
  text-decoration: none;
}
.store-info-box a:hover {
  text-decoration: underline;
}

/* Responsive Tweak */
@media (max-width: 768px) {
  .store-info-box {
    flex-direction: column;
    text-align: center;
  }
  .store-info-box img {
    margin: 0 auto;
  }
  .hero-action {
    width: 100%;
    max-width: 320px;
  }
}

/* ensure page background honors theme */
.page-shell {
  background: var(--color_bg);
}

/* 🌙 Minimal dark-mode polish (still var-driven) */
html[data-theme="dark"] .hero-box {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] .store-info-box {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
