/* Scorecard Page Styles */

/* Summary Stats */
.scorecard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-total .stat-number { color: #d4a843; }
.stat-completed .stat-number { color: #22c55e; }
.stat-progress .stat-number { color: #eab308; }
.stat-behind .stat-number { color: #f97316; }
.stat-ongoing .stat-number { color: #3b82f6; }
.stat-notstarted .stat-number { color: #6b7280; }

/* Last Updated */
.last-updated {
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}

.last-updated time {
  color: #d4a843;
  font-weight: 600;
}

/* Category Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(212,168,67,0.12);
  border-color: rgba(212,168,67,0.3);
  color: #d4a843;
}

.filter-btn.active {
  background: rgba(212,168,67,0.18);
  border-color: #d4a843;
  color: #d4a843;
  font-weight: 600;
}

/* Scorecard Cards */
.scorecard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.scorecard-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.scorecard-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.045);
}

.scorecard-card.hidden {
  display: none;
}

/* Card Header (always visible) */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.status-completed { background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,0.3); }
.status-in-progress { background: #eab308; box-shadow: 0 0 10px rgba(234,179,8,0.3); }
.status-behind { background: #f97316; box-shadow: 0 0 10px rgba(249,115,22,0.3); }
.status-stalled { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,0.3); }
.status-not-started { background: #6b7280; }
.status-ongoing { background: #3b82f6; box-shadow: 0 0 10px rgba(59,130,246,0.3); }

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin: 0;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.card-meta .category-tag {
  background: rgba(212,168,67,0.12);
  color: #d4a843;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-label {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.label-completed { background: rgba(34,197,94,0.15); color: #22c55e; }
.label-in-progress { background: rgba(234,179,8,0.15); color: #eab308; }
.label-behind { background: rgba(249,115,22,0.15); color: #f97316; }
.label-stalled { background: rgba(239,68,68,0.15); color: #ef4444; }
.label-not-started { background: rgba(107,114,128,0.2); color: #9ca3af; }
.label-ongoing { background: rgba(59,130,246,0.15); color: #3b82f6; }

.expand-icon {
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.scorecard-card.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Card Details (expandable) */
.card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.scorecard-card.expanded .card-details {
  max-height: 800px;
}

.card-details-inner {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.detail-item {
  font-size: 0.88rem;
}

.detail-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.detail-value {
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.detail-full {
  grid-column: 1 / -1;
}

.evidence-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Methodology Section */
.methodology {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.methodology h2 {
  color: #d4a843;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.methodology h3 {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.methodology p,
.methodology li {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

.methodology ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.methodology li {
  margin-bottom: 0.35rem;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero */
.scorecard-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.scorecard-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.scorecard-hero h1 span {
  color: #d4a843;
}

.scorecard-hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Disclaimer */
.disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Mobile */
@media (max-width: 768px) {
  .scorecard-hero h1 {
    font-size: 1.8rem;
  }

  .scorecard-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.8rem 0.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .card-header {
    padding: 1rem;
    gap: 0.75rem;
  }

  .card-title {
    font-size: 0.95rem;
  }

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

  .card-details-inner {
    padding: 0 1rem 1rem;
  }

  .methodology {
    padding: 1.25rem;
  }

  .filter-bar {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .status-legend {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .scorecard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-meta {
    flex-direction: column;
    gap: 0.3rem;
  }
}
