/* ===== ProgressTracker Summary UI ===== */
/* 最低限の機能的なスタイル。後日 Claude Design で全面刷新予定。 */

.pt-summary {
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
}

.pt-score-pct {
  font-size: 2rem;
  font-weight: bold;
}

.pt-score-detail {
  font-size: 1rem;
  color: #666;
}

.pt-score-msg {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.pt-weekly {
  margin: 1rem 0;
}

.pt-weekly-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pt-weekly-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pt-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pt-day-label {
  font-size: 0.75rem;
  color: #999;
}

.pt-day-dot {
  font-size: 1.5rem;
  line-height: 1;
}

.pt-today .pt-day-label {
  font-weight: bold;
  color: #333;
  text-decoration: underline;
}

.pt-streak {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.pt-streak-num {
  font-weight: bold;
  color: #e25822;
}

/* モバイル: 375px で 7 セルが横に収まるよう gap 調整 */
@media (max-width: 400px) {
  .pt-weekly-grid {
    gap: 0.3rem;
  }
  .pt-day-dot {
    font-size: 1.2rem;
  }
  .pt-day-label {
    font-size: 0.65rem;
  }
}

/* ===== §8D: 30日統計モーダル ===== */

.pt-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.pt-stats-modal {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.pt-close {
  position: absolute;
  top: 0.5rem; right: 0.75rem;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: #999;
}

.pt-stats-title {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.pt-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pt-stat-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.pt-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.pt-stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.pt-monthly {
  margin: 1rem 0;
}

.pt-monthly-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.pt-monthly-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.pt-mday {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.7rem;
}

.pt-mday.pt-played { background: #c6efce; }
.pt-mday.pt-empty { background: #f0f0f0; }

.pt-monthly-legend {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 0.5rem;
}

.pt-langs {
  margin-top: 1rem;
  text-align: center;
}

.pt-langs-title {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.pt-lang-tag {
  display: inline-block;
  background: #e8f4fd;
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  font-size: 0.85rem;
}

@media print {
  .pt-overlay { position: static; background: none; }
  .pt-stats-modal { max-width: 100%; box-shadow: none; }
  .pt-close { display: none; }
}
