﻿/* myinfo-screen.css */
.myinfo-screen {
  padding: 16px;
  overflow-y: auto;
}
.myinfo-container {
  max-width: 720px;
  margin: 0 auto;
}
.myinfo-heading {
  font-size: 20px;
  margin: 0 0 16px;
  font-weight: 700;
}
.myinfo-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #f5f0ff, #fff);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #ece3ff;
}
.myinfo-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #c9b6f5;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.myinfo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.myinfo-avatar span { color: #fff; font-size: 28px; font-weight: 700; }
.myinfo-name { font-size: 16px; font-weight: 700; color: #2a1d4f; }
.myinfo-email { font-size: 13px; color: #6b6a78; margin-top: 2px; }
.myinfo-joined { font-size: 12px; color: #9a98a8; margin-top: 4px; }
.myinfo-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.myinfo-stat-card {
  background: #fff;
  border: 1px solid #ece3ff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.myinfo-stat-icon { font-size: 22px; margin-bottom: 4px; }
.myinfo-stat-value { font-size: 22px; font-weight: 700; color: #5a3fa0; }
.myinfo-stat-label { font-size: 12px; color: #6b6a78; margin-top: 2px; }
.myinfo-placeholder {
  text-align: center; color: #b0aec0; font-size: 13px;
  padding: 24px; background: #faf8ff; border-radius: 10px;
}
@media (min-width: 480px) {
  .myinfo-stats-grid { grid-template-columns: repeat(4, 1fr); }
}


/* Patch 15: 데이터 관리 섹션 */
.myinfo-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.myinfo-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}
.myinfo-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #4FC3F7;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.myinfo-btn:hover {
  background: #29B6F6;
}
.myinfo-btn:active {
  background: #0288D1;
}
.myinfo-hint {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0 0;
  line-height: 1.5;
}


/* Patch 15-B: Export 옵션 분리 */
.myinfo-btn-primary {
  background: linear-gradient(135deg, #7c5fd3, #9a7ee3);
  color: #fff;
  font-weight: 600;
}
.myinfo-btn-primary:hover { filter: brightness(1.05); }
.myinfo-btn-secondary {
  background: #f5f3fb;
  color: #4a3a7a;
  border: 1px solid #e0d8f5;
  margin-top: 8px;
}
.myinfo-btn-secondary:hover { background: #ece6f9; }
.myinfo-advanced-toggle {
  background: transparent;
  border: none;
  color: #7c5fd3;
  font-size: 13px;
  padding: 10px 4px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  margin-top: 6px;
}
.myinfo-advanced-toggle:hover { color: #5a3fa0; }
.myinfo-advanced-panel {
  margin-top: 4px;
  padding: 12px;
  background: #faf8ff;
  border: 1px dashed #e0d8f5;
  border-radius: 10px;
}
.myinfo-hint {
  font-size: 12px;
  color: #6b6a78;
  margin: 6px 0 0 0;
  line-height: 1.5;
}
.myinfo-hint-sm {
  font-size: 11.5px;
  color: #8b8a98;
  margin: 4px 0 8px 0;
  line-height: 1.45;
}

/* Patch 15-C: 고급 옵션 안내 박스 */
.myinfo-advanced-intro {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff8e6;
  border: 1px solid #f5e3a8;
  border-radius: 8px;
  font-size: 12px;
  color: #6b5a20;
  line-height: 1.5;
  margin-bottom: 10px;
}
.myinfo-advanced-intro-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.myinfo-advanced-intro strong {
  color: #5a4a10;
}


/* ===================================== */
/* [P2-A] JLPT chart                     */
/* ===================================== */
.myinfo-jlpt-card {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.myinfo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.myinfo-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.myinfo-card-icon {
  font-size: 20px;
}

.jlpt-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jlpt-row {
  display: grid;
  grid-template-columns: 44px 1fr 80px;
  align-items: center;
  gap: 12px;
}

.jlpt-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

.jlpt-bar-track {
  height: 22px;
  background: #f3f4f6;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
}

.jlpt-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.4s ease;
  min-width: 4px;
}

/* JLPT 레벨별 색상 */
.jlpt-bar-fill.jlpt-n5 { background: linear-gradient(90deg, #10b981, #34d399); }
.jlpt-bar-fill.jlpt-n4 { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.jlpt-bar-fill.jlpt-n3 { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.jlpt-bar-fill.jlpt-n2 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.jlpt-bar-fill.jlpt-n1 { background: linear-gradient(90deg, #ef4444, #f87171); }
.jlpt-bar-fill.jlpt-none { background: linear-gradient(90deg, #9ca3af, #d1d5db); }

.jlpt-count {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
}
.jlpt-share {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.jlpt-empty {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  padding: 20px 10px;
}

.jlpt-row:hover .jlpt-bar-fill {
  filter: brightness(1.05);
}


/* ===== [P2-B] 출석 캘린더 ===== */
.myinfo-attend-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px 20px;
  margin-top: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.myinfo-attend-card .myinfo-card-title {
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.4;
}
.attend-calendar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.attend-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.attend-dow {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  padding: 2px 0;
}
.attend-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.attend-cell {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  position: relative;
  cursor: default;
  transition: transform 0.12s ease;
}
.attend-cell:hover {
  transform: scale(1.08);
}
.attend-day-num {
  opacity: 0.75;
  user-select: none;
}
.attend-empty {
  background: #f3f4f6;
  color: #9ca3af;
}
.attend-studied {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
}
.attend-studied .attend-day-num {
  opacity: 0.95;
  font-weight: 600;
}
.attend-future {
  background: transparent;
  color: #d1d5db;
  border: 1px dashed #e5e7eb;
}
.attend-today {
  outline: 2px solid #f59e0b;
  outline-offset: 1px;
  box-shadow: 0 0 0 1px #fff inset;
}
.attend-today .attend-day-num {
  font-weight: 700;
}

/* 연속 학습일 카드의 일 단위 표기 */
.myinfo-stat-value .myinfo-stat-unit {
  font-size: 0.6em;
  font-weight: 500;
  margin-left: 2px;
  color: inherit;
  opacity: 0.7;
}
