/* ===================================================
   OYUNCU PROFİLİ & KONTROL PANELİ (PROFILE) STİLLERİ
   =================================================== */

.profile-page {
  background: radial-gradient(circle at 50% 0%, #0d1a24 0%, #07090e 70%);
}

.profile-main-container {
  padding: 130px 0 80px;
}

/* Profil Üst Başlık Banner Kartı */
.profile-banner-card {
  background: linear-gradient(135deg, rgba(16, 23, 37, 0.9) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 230, 118, 0.2);
  margin-bottom: 36px;
}

.profile-banner-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.profile-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.profile-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--emerald-primary);
  background: var(--bg-primary);
  object-fit: cover;
  box-shadow: 0 0 20px var(--emerald-glow);
}

.profile-online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: #00e676;
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px #00e676;
}

.profile-user-details h2 {
  font-size: 1.9rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-fid-tag {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--emerald-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.profile-bio-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.5;
}

/* Profil Üst Sağ Butonlar & Level */
.profile-level-badge-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.level-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid var(--border-emerald);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

/* Profil İlerleme Çubuğu */
.profile-xp-bar-container {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.xp-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.xp-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #00e676, #fbbf24);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Profil Hızlı İstatistik Kartları */
.profile-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.p-stat-card {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.p-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.p-stat-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.p-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Profil Sekmeli Arayüzü (Tab Navigation) */
.profile-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.profile-sidebar-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 100px;
}

.p-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.p-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.p-tab-btn.active {
  background: rgba(0, 230, 118, 0.12);
  color: var(--emerald-primary);
  border-left: 3px solid var(--emerald-primary);
}

.p-tab-btn.logout-btn {
  color: #fb7185;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.p-tab-btn.logout-btn:hover {
  background: rgba(225, 29, 72, 0.1);
}

/* Kütüphane Kategori Filtre Çubuğu (Sub-Categories) */
.library-category-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lib-filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lib-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lib-filter-btn.active {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

.lib-filter-btn.roblox-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Kategori Başlık Kutuları */
.category-section-block {
  margin-bottom: 32px;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-section-title {
  font-size: 1.3rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Oyun Kartları Izgarası */
.game-ranks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.game-rank-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.game-rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.game-rank-card.roblox-card {
  border-left: 3px solid #38bdf8;
}

.game-rank-card.felerous-card {
  border-left: 3px solid var(--emerald-primary);
}

.game-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.game-rank-title {
  font-size: 1.15rem;
  color: #ffffff;
}

/* Canlı Telemetri Sayaç Kutuları */
.telemetry-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.telemetry-stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #38bdf8;
}

.telemetry-stat-item span {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* 2. Bağlı Hesaplar Kart Izgarası */
.platforms-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.platform-manage-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
}

.platform-manage-card.is-connected {
  border-color: rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.03);
}

.plat-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plat-icon {
  font-size: 2rem;
}

.plat-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.plat-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plat-status.connected {
  color: var(--emerald-primary);
  font-weight: 600;
}

/* 3. Ayarlar & Formlar */
.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.avatar-selection-row {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.avatar-choice-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.avatar-choice-btn.selected {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 15px var(--emerald-glow);
  transform: scale(1.1);
}

.avatar-choice-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* 4. Envanter & Ödüller */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.inventory-item-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inv-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.inv-title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.inv-source {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sekme İçerik Alanı */
.profile-tab-content-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}

.profile-tab-content-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .profile-header-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-level-badge-box {
    align-items: center;
  }

  .profile-layout-grid {
    grid-template-columns: 1fr;
  }

  .profile-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-ranks-grid,
  .platforms-manage-grid,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
  }
}
