/* === Quick Links (home page) === */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.quick-link {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-link-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.quick-link-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  animation: fadeUp 0.35s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.commander-card {
  animation: fadeUp 0.35s ease both;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .hero-divider {
    display: none;
  }

  .nav-links {
    gap: 0.125rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .sub-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .commander-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .chart-row-2 {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .modal-art {
    width: 64px;
    height: 64px;
  }

  .matchup-modal-header {
    gap: 0.75rem;
  }

  .matchup-modal-art {
    width: 56px;
    height: 56px;
  }

  .matchup-modal-cmd-name {
    font-size: 0.8125rem;
  }

  .matchup-modal-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .commander-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* === Placeholder / Coming Soon Card === */

.placeholder-card {
  background: var(--bg-inset);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
}

.placeholder-card .section-title {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}
