/* 50 States Page - Custom Styles */

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.stat-card {
  background: var(--panel, #f0ecf5);
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(123, 79, 171, 0.15);
}

.stat-number {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent, #7B4FAB);
  line-height: 1.1;
}

.stat-total {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted, rgba(15, 23, 42, 0.55));
}

.stat-bar {
  width: 100%;
  height: 6px;
  background: var(--border, rgba(0,0,0,0.08));
  border-radius: 3px;
  margin: 0.75rem 0 0.5rem;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary, #7B4FAB), var(--brand-accent, #d95b76));
  border-radius: 3px;
  transition: width 0.6s ease;
}

.stat-label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted, rgba(15, 23, 42, 0.55));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-number { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1rem; }
  .stat-number { font-size: 1.5rem; }
}

/* ===== Trip Cards Grid ===== */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.trip-card {
  background: var(--panel, #f0ecf5);
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  border-radius: 18px;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(123, 79, 171, 0.15);
}

.trip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.trip-num {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent, #d95b76);
  background: rgba(217, 91, 118, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}

.trip-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.state-badge {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--accent, #7B4FAB);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.trip-title {
  font-family: 'Dancing Script', cursive, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, rgba(15, 23, 42, 0.92));
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
}

.trip-highlights {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.trip-highlights li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted, rgba(15, 23, 42, 0.68));
  line-height: 1.5;
  margin-bottom: 0.15rem;
}

/* ===== Article Link on Trip Cards ===== */
/* To activate: add class "has-article" to .trip-card and add:
   <a href="/blog/your-slug/" class="trip-read-more">Read the full story &rarr;</a>
   after the .trip-highlights list */
.trip-read-more {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border, rgba(0,0,0,0.08));
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-accent, #d95b76);
  text-decoration: none;
  transition: color 0.2s ease;
}

.trip-read-more:hover {
  color: var(--accent, #7B4FAB);
}

.trip-card.has-article {
  border-left: 3px solid var(--brand-accent, #d95b76);
}

@media (max-width: 480px) {
  .trip-grid { grid-template-columns: 1fr; }
  .trip-title { font-size: 1.2rem; }
}

/* ===== Map Container ===== */
.map-container {
  margin: 1rem 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(0,0,0,0.1));
}

.map-container iframe {
  display: block;
}

/* ===== Progress Sections (Landmarks, Adventures, NPs) ===== */
.progress-section {
  margin: 1rem 0 2rem;
}

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

.progress-header .stat-bar {
  flex: 1;
  margin: 0;
}

.progress-count {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent, #7B4FAB);
  white-space: nowrap;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.check-item {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.check-item.done {
  background: var(--accent, #7B4FAB);
  color: #fff;
  font-weight: 600;
}

.check-item.remaining {
  background: var(--panel, #f0ecf5);
  color: var(--text-muted, rgba(15, 23, 42, 0.55));
  border: 1px solid var(--border, rgba(0,0,0,0.08));
}

/* NP grid: slightly smaller items since there are 63 */
.np-grid .check-item {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

@media (max-width: 480px) {
  .check-item { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .np-grid .check-item { font-size: 0.6875rem; padding: 0.2rem 0.5rem; }
}

/* ===== Dark Mode Adjustments ===== */
@media (prefers-color-scheme: dark) {
  /* Transparent wrapper so page gradient shows between cards */
  .custom-html {
    background: transparent;
    border: none;
    padding: 0;
  }

  /* Solid dark cards with purple accent border */
  .stat-card,
  .trip-card {
    background: rgba(20, 15, 35, 0.85);
    border: 1.5px solid rgba(123, 79, 171, 0.3);
  }

  .stat-card:hover,
  .trip-card:hover {
    border-color: rgba(123, 79, 171, 0.55);
    box-shadow: 0 6px 16px rgba(123, 79, 171, 0.25);
  }

  .trip-num {
    background: rgba(217, 91, 118, 0.2);
  }

  .check-item.remaining {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
  }

  .stat-bar {
    background: rgba(255, 255, 255, 0.1);
  }
}
