/* Combo detail page — one per color combination */

.combo-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* --- Breadcrumb --- */

.combo-breadcrumb {
  position: fixed;
  top: 12px;
  left: 52px;
  z-index: 10;
  font-size: 0.85rem;
  color: #888;
  line-height: 32px;
}

.combo-breadcrumb a {
  color: var(--bg-khaki);
  text-decoration: none;
}

.combo-breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Header: pentagon + title side by side --- */

.combo-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.combo-pentagon-container {
  flex-shrink: 0;
  width: 200px;
}

.combo-pentagon {
  width: 100%;
  height: auto;
}

.combo-title-block {
  flex: 1;
}

.combo-guild-logo {
  flex-shrink: 0;
  opacity: 0.85;
}

.combo-name {
  font-family: 'GoudyMediaeval', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #e0e0e0;
  margin-bottom: 0.25rem;
}

.combo-play-btn {
  background: transparent;
  border: 1px solid rgba(200, 184, 138, 0.3);
  color: var(--bg-khaki);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.combo-play-btn:hover {
  color: #e0e0e0;
  border-color: rgba(200, 184, 138, 0.6);
  background: rgba(200, 184, 138, 0.1);
}

.combo-play-btn:active {
  transform: scale(0.95);
}

.combo-tier {
  font-size: 1rem;
  color: var(--bg-khaki);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.combo-colors {
  font-size: 1.1rem;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mana-pip-inline {
  vertical-align: middle;
}

/* --- Description --- */

.combo-description {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--bg-khaki);
}

.combo-description p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ccc;
}

.combo-flavor {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--bg-khaki);
}

/* --- Learn CTA (in nav row) --- */

.combo-learn-button.combo-learn-button--prominent {
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  min-height: 2.6rem;
  box-sizing: border-box;
}

/* --- Example Decks section --- */

.combo-decks {
  margin-bottom: 2.5rem;
}

.combo-decks h2 {
  font-family: 'GoudyMediaeval', serif;
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.combo-deck {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.combo-deck-card {
  flex-shrink: 0;
  width: 180px;
}

.combo-deck-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.combo-deck-info {
  flex: 1;
}

.combo-deck-commander {
  font-family: 'Jost', sans-serif;
  font-size: 1.25rem;
  color: #e0e0e0;
  margin-bottom: 0.4rem;
}

.combo-deck-meta {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.combo-deck-link {
  color: var(--bg-khaki);
  text-decoration: none;
}

.combo-deck-link:hover {
  text-decoration: underline;
}

.combo-deck-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  font-style: italic;
}

/* --- Cards section --- */

.combo-cards h2 {
  font-family: 'GoudyMediaeval', serif;
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.combo-card-count {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: #888;
}

.combo-card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.combo-card {
  text-align: center;
}

.combo-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.combo-card img:hover {
  transform: scale(1.04);
}

.combo-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #aaa;
}

.combo-no-cards {
  color: #888;
  font-style: italic;
}

/* --- Prev/Next navigation --- */

.combo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.combo-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bg-khaki);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  min-height: 2.6rem;
  box-sizing: border-box;
  border: 1px solid rgba(200, 184, 138, 0.3);
  border-radius: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.combo-nav-link:hover {
  border-color: rgba(200, 184, 138, 0.6);
  background: rgba(200, 184, 138, 0.08);
}

.combo-nav-logo {
  vertical-align: middle;
}

.combo-nav-placeholder {
  min-width: 80px;
}

/* --- Footer --- */

.combo-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.combo-scryfall-link,
.combo-home-link {
  color: var(--bg-khaki);
  text-decoration: none;
  font-size: 0.95rem;
}

.combo-scryfall-link:hover,
.combo-home-link:hover {
  text-decoration: underline;
}

/* --- Index page --- */

.combo-index-intro {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.combo-index-group {
  margin-bottom: 2rem;
}

.combo-index-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.combo-index-group h2 {
  font-family: 'GoudyMediaeval', serif;
  font-size: 1.4rem;
  color: var(--bg-khaki);
}

.combo-learn-button {
  font-size: 0.85rem;
  color: #e0e0e0;
  background: color-mix(in srgb, var(--card-back-turquoise) 20%, transparent);
  border: 1px solid var(--card-back-turquoise);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.combo-learn-button:hover {
  background: color-mix(in srgb, var(--card-back-turquoise) 35%, transparent);
}

.combo-index-group-description {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.combo-index-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
}

.combo-index-item {
}

.combo-index-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0.5rem 0.75rem;
  text-decoration: none;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.combo-index-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.combo-index-name {
  font-family: 'GoudyMediaeval', serif;
  font-size: 1.05rem;
  text-align: center;
}

.combo-index-colors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* --- Responsive --- */

@media (min-width: 601px) and (max-width: 800px) {
  .combo-index-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .combo-index-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .combo-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .combo-pentagon-container {
    width: 160px;
  }

  .combo-deck {
    flex-direction: column;
    align-items: center;
  }

  .combo-deck-card {
    width: 160px;
  }

  .combo-card-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .combo-page {
    padding: 1rem 1rem 2rem;
  }
}
