/*
 Theme Name: SlaveToMusic Child
 Theme URI: https://slavetomusic.com/
 Description: Child theme for SlaveToMusic custom homepage based on Newscard Pro.
 Author: SlaveToMusic
 Template: newscard-pro
 Version: 1.0
*/

/* Base layout for custom STM homepage */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Container and sections */
.stm-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.stm-section {
  padding: 3rem 0;
}
.stm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stm-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stm-section-subtitle {
  font-size: 0.95rem;
  color: #666;
}
.stm-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}

/* Grid helpers */
.stm-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .stm-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stm-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stm-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Cards */
.stm-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.stm-card-image {
  position: relative;
  overflow: hidden;
  max-height: 220px;
}
.stm-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stm-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.stm-card-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #999;
}
.stm-card-title {
  font-size: 1rem;
  font-weight: 700;
}
.stm-card-excerpt {
  font-size: 0.9rem;
  color: #555;
}
.stm-card-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.stm-link-more {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

/* Hero */
.stm-hero {
  padding: 4.5rem 0 3rem;
}
.stm-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .stm-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}
.stm-hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #999;
  margin-bottom: 0.75rem;
}
.stm-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.stm-hero-subtitle {
  font-size: 1rem;
  max-width: 34rem;
  color: #444;
  margin-bottom: 1.75rem;
}
.stm-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stm-btn {
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.stm-btn-primary {
  background: #111;
  color: #f9f9f9;
}
.stm-btn-outline {
  background: transparent;
  color: #111;
  border-color: #111;
}
.stm-hero-meta {
  font-size: 0.8rem;
  color: #777;
}
.stm-hero-image {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.stm-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Newsletter box */
.stm-newsletter {
  background: #111;
  color: #f7f7f7;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .stm-newsletter {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}
.stm-newsletter-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stm-newsletter-text {
  font-size: 0.95rem;
  color: #e3e3e3;
}
.stm-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.stm-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
}

/* Playlists */
.stm-playlist-embed {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
