/* ============================================================
   LEXLINGO — PROFİL SEKME VE ROZET SİSTEMİ STİLLERİ (profile.css)
   ============================================================ */

/* Ana Profil Kapsayıcı */
#profileScreen .tab-screen-content {
  padding: 16px 14px 100px 14px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1. HERO PROFİL KARTI */
.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.profile-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(62, 99, 153, 0.18);
  border: 2.5px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(62, 99, 153, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar-large:active {
  transform: scale(0.92);
}

.profile-name-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-display-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.profile-display-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(62, 99, 153, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.profile-edit-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 var(--border-color);
}

.profile-edit-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 transparent;
}

/* Hero Hızlı İstatistikler (3 Sütun) */
.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.hero-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-val.xp { color: #F59E0B; }
.hero-stat-val.streak { color: #EF4444; }
.hero-stat-val.crown { color: #EAB308; }

.hero-stat-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* 2. HMGS GERİ SAYIM & MOTİVASYON ŞERİDİ */
.hmgs-countdown-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.25) 0%, rgba(22, 31, 46, 0.7) 100%);
  border: 1px solid rgba(62, 99, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .hmgs-countdown-card {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(224, 231, 255, 0.5) 100%);
  border-color: #C7D2FE;
}

.countdown-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.countdown-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-icon {
  font-size: 20px;
}

.countdown-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.countdown-badge {
  background: #B87E28;
  color: #FFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(184, 126, 40, 0.3);
}

.countdown-quote {
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.45;
  border-left: 2.5px solid var(--accent-blue);
  padding-left: 10px;
}

/* 3. 4'LÜ HIZLI ANALİTİK METRİKLER (AKADEMİK KARNE) */
.profile-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-icon {
  font-size: 18px;
}

.metric-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.metric-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* 4. MEVZUAT HÂKİMİYET KARNESİ (3 ÜNİTE BARLARI) */
.mastery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mastery-unit-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mastery-unit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mastery-unit-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mastery-unit-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.mastery-progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.mastery-progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mastery-progress-fill.unit-1 {
  background: linear-gradient(90deg, #1E3A5F, #3E6399);
}

.mastery-progress-fill.unit-2 {
  background: linear-gradient(90deg, #5A1E32, #9B2C4E);
}

.mastery-progress-fill.unit-3 {
  background: linear-gradient(90deg, #1E4D36, #2F7C59);
}

.mastery-unit-sub {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* 5. BAŞARI ROZETLERİ GALERİSİ (8 ROZET X 3 KADEME = 24 SEVİYE) */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.badge-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.badge-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Rozet Kademeleri Görselleri */
.badge-card.locked {
  opacity: 0.62;
  border-style: dashed;
}

.badge-card.tier-1 { /* Bronz */
  border-color: #CD7F32;
  background: linear-gradient(145deg, var(--bg-card), rgba(205, 127, 50, 0.08));
}

.badge-card.tier-2 { /* Gümüş */
  border-color: #94A3B8;
  background: linear-gradient(145deg, var(--bg-card), rgba(148, 163, 184, 0.12));
}

.badge-card.tier-3 { /* Altın */
  border-color: #F59E0B;
  background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.15));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.22);
}

.badge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.badge-tier-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-tier-tag.locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge-tier-tag.bronze {
  background: rgba(205, 127, 50, 0.2);
  color: #CD7F32;
  border: 1px solid rgba(205, 127, 50, 0.4);
}

.badge-tier-tag.silver {
  background: rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.badge-tier-tag.gold {
  background: rgba(245, 158, 11, 0.25);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-weight: 900;
}

.badge-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.badge-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  min-height: 28px;
}

.badge-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.badge-track {
  width: 100%;
  height: 5px;
  background: var(--bg-surface-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.badge-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-blue);
  transition: width 0.4s ease;
}

.badge-card.tier-1 .badge-fill { background: #CD7F32; }
.badge-card.tier-2 .badge-fill { background: #94A3B8; }
.badge-card.tier-3 .badge-fill { background: #F59E0B; }

.badge-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
}

/* 6. SİSTEM & VERİ YÖNETİMİ AYARLARI */
.profile-settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.settings-action-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 0 var(--border-color);
  transition: all 0.15s ease;
}

.settings-action-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 transparent;
}

.settings-action-btn.danger {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 2px 0 rgba(239, 68, 68, 0.3);
}

/* ============================================================
   MODAL VE BOTTOM SHEET STİLLERİ
   ============================================================ */

/* Profil Düzenleme Modal Kartı */
.profile-edit-modal-card {
  max-width: 440px !important;
  width: 92% !important;
  text-align: left !important;
  padding: 20px 18px !important;
}

.edit-modal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.edit-modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Avatar Seçici Izgarası */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.avatar-choice-btn {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 48px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-choice-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.avatar-choice-btn.selected {
  border-color: var(--accent-blue);
  background: rgba(62, 99, 153, 0.2);
  box-shadow: 0 0 10px rgba(62, 99, 153, 0.35);
  transform: scale(1.08);
}

/* Form Inputları */
.edit-text-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.edit-text-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(62, 99, 153, 0.2);
}

/* Unvan Butonları */
.title-choice-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.title-choice-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.title-choice-btn.selected {
  border-color: var(--accent-blue);
  background: rgba(62, 99, 153, 0.18);
  color: var(--text-primary);
  font-weight: 800;
}

/* Sıfırlama Emniyet Modalı */
.reset-warning-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #EF4444;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px auto;
}
