/* ============================================
   SBY - Tema & Profil Stilleri
   style.css dosyasının SONUNA eklenecek
   ============================================ */

/* ══════════════════════════════════════════
   TEMALAR — body'ye sınıf olarak uygulanır
   ══════════════════════════════════════════ */

/* 🌸 Lavanta (varsayılan) */
body.theme-lavender {
  --primary:    #9b59b6;
  --primary-lt: #d7aefb;
  --primary-dk: #6c3483;
  --accent:     #e91e8c;
  --accent-lt:  #f8bbd9;
  --bg:         #fdf6ff;
  --bg2:        #f3e8ff;
  --surface:    #ffffff;
  --border:     #e2d0f5;
  --text:       #2d1b4e;
  --text-muted: #8e7aab;
}

/* 🌹 Gül */
body.theme-rose {
  --primary:    #e91e8c;
  --primary-lt: #f8bbd9;
  --primary-dk: #ad1457;
  --accent:     #ff6b6b;
  --accent-lt:  #ffe0e0;
  --bg:         #fff6f9;
  --bg2:        #ffe8f2;
  --surface:    #ffffff;
  --border:     #f5c6dc;
  --text:       #4a0e2a;
  --text-muted: #aa6683;
}

/* 🌊 Okyanus */
body.theme-ocean {
  --primary:    #1976d2;
  --primary-lt: #90caf9;
  --primary-dk: #0d47a1;
  --accent:     #00bcd4;
  --accent-lt:  #b2ebf2;
  --bg:         #f3f8ff;
  --bg2:        #e3f2fd;
  --surface:    #ffffff;
  --border:     #bbdefb;
  --text:       #0d2d5e;
  --text-muted: #5c7fa8;
}

/* 🌿 Orman */
body.theme-forest {
  --primary:    #2e7d32;
  --primary-lt: #a5d6a7;
  --primary-dk: #1b5e20;
  --accent:     #ff8f00;
  --accent-lt:  #ffe0b2;
  --bg:         #f4fbf4;
  --bg2:        #e8f5e9;
  --surface:    #ffffff;
  --border:     #c8e6c9;
  --text:       #1b2e1b;
  --text-muted: #5a7a5a;
}

/* 🌅 Gün Batımı */
body.theme-sunset {
  --primary:    #f57c00;
  --primary-lt: #ffcc80;
  --primary-dk: #e65100;
  --accent:     #e91e8c;
  --accent-lt:  #f8bbd9;
  --bg:         #fffaf4;
  --bg2:        #fff3e0;
  --surface:    #ffffff;
  --border:     #ffe0b2;
  --text:       #3e1f00;
  --text-muted: #a06030;
}

/* 🌙 Gece */
body.theme-night {
  --primary:    #bb86fc;
  --primary-lt: #7c4dff40;
  --primary-dk: #9c4dff;
  --accent:     #03dac6;
  --accent-lt:  #03dac620;
  --bg:         #121212;
  --bg2:        #1e1e1e;
  --surface:    #2d2d2d;
  --border:     #3d3d3d;
  --text:       #e1e1e1;
  --text-muted: #9e9e9e;
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
}

body.theme-night input,
body.theme-night textarea,
body.theme-night select {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border);
}

body.theme-night .auth-card,
body.theme-night .pin-card,
body.theme-night .editor-container {
  background: var(--surface);
}

/* ══════════════════════════════════════════
   PROFİL SAYFASI
   ══════════════════════════════════════════ */

.profile-page {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Profil Başlığı */
.profile-header-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.profile-avatar-big {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-lt), var(--accent-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  position: relative;
  border: 4px solid var(--primary-lt);
  overflow: hidden;
  transition: var(--transition);
}
.profile-avatar-big:hover { border-color: var(--primary); }
.profile-avatar-big img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar-edit {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-avatar-big:hover .profile-avatar-edit { opacity: 1; }

.profile-display-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 0.2rem; }
.profile-username { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.profile-role-badge {
  display: inline-block;
  background: var(--bg2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Bölüm Kartları */
.profile-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.profile-section h3 {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Avatar Seçici */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 1.5rem;
  background: var(--bg2);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.avatar-option:hover { border-color: var(--primary-lt); transform: scale(1.1); }
.avatar-option.selected {
  border-color: var(--primary);
  background: var(--primary-lt);
  transform: scale(1.1);
}

/* Tema Seçici */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.theme-card {
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.selected { border-color: currentColor; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.theme-preview {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.theme-name { font-size: 0.82rem; font-weight: 700; }

/* Tema önizlemeleri */
.theme-card.lavender { background: #fdf6ff; color: #9b59b6; }
.theme-card.rose     { background: #fff6f9; color: #e91e8c; }
.theme-card.ocean    { background: #f3f8ff; color: #1976d2; }
.theme-card.forest   { background: #f4fbf4; color: #2e7d32; }
.theme-card.sunset   { background: #fffaf4; color: #f57c00; }
.theme-card.night    { background: #1e1e1e; color: #bb86fc; }

/* Form stilleri */
.profile-form { display: flex; flex-direction: column; gap: 1rem; }
.profile-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
