/* ============================================
   Spanish Coach — MkDocs Extra Styles
   ============================================ */

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(135deg, #e64a19 0%, #ff7043 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin: 1.5rem 0 2rem;
  color: white;
  text-align: center;
}

.hero-section h2 {
  color: white !important;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.hero-section p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ---------- Video Embed ---------- */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  margin: 1.5rem 0 2rem;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: var(--md-code-bg-color);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #ff7043;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--md-primary-fg-color);
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ---------- Screenshot Gallery ---------- */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  align-items: start;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto 0.75rem;
}

.screenshot-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--md-primary-fg-color);
}

.screenshot-item p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Buttons ---------- */
.md-button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.4rem !important;
  margin: 0.25rem 0.25rem !important;
  transition: transform 0.15s ease !important;
}

.md-button:hover {
  transform: translateY(-1px);
}

/* ---------- Annotated Screenshots (User Guide) ---------- */
.screenshot-annotated {
  text-align: center;
  margin: 1.5rem 0 1rem;
}

.screenshot-annotated img {
  max-width: 320px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero-section h2 {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
