/* ============================================================
   SEO Pages v3.0 — Layout & Component Styles
   Used by: cuaca, kurs, crypto, hasil-pertandingan, resep,
            libur, film-trending
   ============================================================ */

/* ── Hero / Header Section ── */
.seo-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 4px solid var(--bs-primary, #e91e63);
}

.seo-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.seo-hero .seo-hero-sub {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Article Body ── */
.seo-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--bs-body-color, #333);
}

.seo-article p {
  margin-bottom: 1.2rem;
}

.seo-highlight-box {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-left: 4px solid var(--bs-primary, #e91e63);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1rem;
}

/* ── Data Cards ── */
.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.seo-data-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.seo-data-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.seo-data-card .seo-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bs-primary, #e91e63);
  margin-bottom: 0.25rem;
}

.seo-data-card .seo-card-label {
  font-size: 0.9rem;
  color: var(--bs-secondary-color, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Hero Data Summary (inline card) ── */
.seo-data-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.seo-data-summary .seo-summary-item {
  text-align: center;
}

.seo-data-summary .seo-summary-value {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ── Section Headings ── */
.seo-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-primary, #e91e63);
  display: inline-block;
}

/* ── Tables ── */
.seo-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 2rem;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.seo-table thead th {
  background: var(--bs-primary, #e91e63);
  color: #fff;
  padding: 0.75rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seo-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.seo-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.seo-table tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color, #eee);
}

.seo-table tbody tr:hover {
  background: var(--bs-tertiary-bg, #f8f9fa);
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Forecast Grid (Cuaca) ── */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.forecast-item {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  text-align: center;
}

.forecast-item .fc-date {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.forecast-item .fc-temp {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-primary, #e91e63);
}

.forecast-item .fc-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #888);
  margin-top: 0.2rem;
}

/* ── League Picker ── */
.seo-league-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.league-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--bs-border-color, #ccc);
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--bs-body-color, #333);
  background: var(--bs-body-bg, #fff);
  transition: all 0.2s;
}

.league-btn:hover {
  border-color: var(--bs-primary, #e91e63);
  color: var(--bs-primary, #e91e63);
}

.league-btn.active {
  background: var(--bs-primary, #e91e63);
  color: #fff;
  border-color: var(--bs-primary, #e91e63);
}

/* ── Match Cards ── */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.match-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
}

.match-teams .score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bs-primary, #e91e63);
  padding: 0 1rem;
}

.match-date {
  display: block;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #888);
  margin-bottom: 0.35rem;
}

/* ── Recipe ── */
.recipe-img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  margin: 1rem 0;
}

.recipe-ingredients {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.recipe-ingredients li {
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--bs-border-color, #ddd);
}

.recipe-steps {
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ── Movie Grid ── */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.movie-card {
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.movie-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--bs-secondary-bg, #eee);
}

.movie-info {
  padding: 1rem;
}

.movie-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.movie-meta {
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #888);
  margin-bottom: 0.5rem;
}

.movie-overview {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bs-secondary-color, #666);
}

/* ── Crypto Card ── */
.crypto-main-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f9a825, #ff6f00);
  color: #fff;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.crypto-price {
  font-size: 2.5rem;
  font-weight: 800;
}

.crypto-change {
  font-size: 1.1rem;
  margin: 0.3rem 0 0.8rem;
}

.crypto-change.up { color: #fff; }
.crypto-change.down { color: #fff; }

.crypto-info {
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── Next Holiday Badge ── */
.holiday-next {
  background: var(--bs-success, #28a745);
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  margin: 1.25rem 0;
}

/* ── Breadcrumb Tweaks ── */
.seo-breadcrumb {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Closing Section ── */
.seo-closing {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-closing h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.seo-source {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #999);
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bs-border-color, #ddd);
}

/* ── Alert / No data ── */
.seo-alert {
  background: var(--bs-warning-bg-subtle, #fff3cd);
  border: 1px solid var(--bs-warning, #ffc107);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .seo-hero h1 { font-size: 1.5rem; }
  .seo-article { padding: 1.25rem 0.75rem; font-size: 1rem; }
  .crypto-price { font-size: 1.8rem; }
  .movie-grid { grid-template-columns: 1fr; }
}
