/* ============================================
   The Movie Game Guide — Blog Stylesheet
   Dark cinema-inspired design, mobile-first
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d0d;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e8e8e8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #E8B730;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FFD54F;
}

/* ---------- Layout Container ---------- */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid #2a2a2a;
}

.site-header .site-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #E8B730;
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 32px;
}

.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f5f5f5;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #aaa;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 12px;
}

.hero .byline {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

/* ---------- Intro ---------- */
.intro {
  padding-bottom: 32px;
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 16px;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* ---------- Game Cards ---------- */
.game-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-color: #FFD54F;
}

/* ---------- Card Image ---------- */
.card-image {
  width: 100%;
  overflow: hidden;
  background: #111;
}

.card-image img {
  width: 100%;
}

/* ---------- Card Body ---------- */
.card-body {
  padding: 20px;
}

/* ---------- Card Header (title + badge) ---------- */
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.card-header h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #f5f5f5;
}

/* ---------- Star Rating ---------- */
.star-rating {
  color: #E8B730;
  font-size: 0.85rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.star-rating .empty {
  color: #3a3a3a;
}

/* ---------- Card Tagline (subtitle) ---------- */
.card-tagline {
  font-size: 0.95rem;
  color: #E8B730;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ---------- Card Details (schematic info) ---------- */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
}

.detail-text {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

/* ---------- Game Link ---------- */
.game-link {
  display: inline-block;
  margin-top: 4px;
  color: #E8B730;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.game-link:hover {
  color: #FFD54F;
  text-decoration: underline;
}

.game-link.btn {
  background: #E8B730;
  color: #0d0d0d;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.game-link.btn:hover {
  background: #FFD54F;
  color: #0d0d0d;
  text-decoration: none;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge.free {
  background: rgba(76, 175, 80, 0.15);
  color: #66BB6A;
}

.badge.freemium {
  background: rgba(232, 183, 48, 0.15);
  color: #E8B730;
}

.badge.paid {
  background: rgba(255, 138, 101, 0.15);
  color: #FF8A65;
}

/* ---------- Featured Card ---------- */
.game-card {
  border: 2px solid #E8B730;
}

.game-card.featured .card-header h2 {
  font-size: 1.6rem;
}

.game-card.featured .card-tagline {
  font-size: 1.05rem;
}

.game-card.featured .card-body {
  padding: 24px;
}

/* ---------- Closing ---------- */
.closing {
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid #2a2a2a;
}

.closing p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 16px;
}

.closing p:last-child {
  font-style: italic;
  color: #888;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
  color: #555;
  margin-top: 48px;
}

/* ============================================
   Responsive — Desktop (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .card-body {
    padding: 24px;
  }

  .game-card.featured .card-body {
    padding: 28px;
  }

  .detail-row {
    flex-direction: row;
    gap: 12px;
  }

  .detail-label {
    min-width: 140px;
    flex-shrink: 0;
    padding-top: 2px;
  }
}
