/* ===================================================
   FELEROUS STORE - ARKADAŞLAR & GRUPLAR (FRIENDS & CHAT)
   =================================================== */

.friends-page-body {
  background: #0e141e;
  color: #c6d4df;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  min-height: 100vh;
}

.community-hub-wrapper {
  padding: 24px 0 60px;
}

/* ===================================================
   1. KULLANICI ÖZET KARTI (HEADER CARD)
   =================================================== */
.hub-header-card {
  background: #17212d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hub-user-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-avatar {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, #00e676, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  border: 2px solid #00e676;
  flex-shrink: 0;
}

.hub-name-box h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.hub-quick-code {
  font-size: 0.78rem;
  color: #8f98a0;
}

.hub-quick-code strong {
  color: #38bdf8;
  letter-spacing: 0.5px;
}

/* ===================================================
   2. İKİ SÜTUNLU HUB DÜZENİ
   =================================================== */
.hub-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

/* Sol Navigasyon Sidebar */
.hub-nav-sidebar {
  background: #141c27;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 16px 12px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-nav-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px 4px;
  margin-top: 10px;
}

.hub-nav-title:first-child {
  margin-top: 0;
}

.hub-nav-btn {
  width: 100%;
  background: none;
  border: none;
  color: #8f98a0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

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

.hub-nav-btn.active {
  background: #0284c7;
  color: #ffffff;
}

.hub-badge-count {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.hub-nav-btn.active .hub-badge-count {
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* ===================================================
   3. SAĞ ANA PANEL & ARAMA
   =================================================== */
.hub-main-panel {
  background: #141c27;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 20px 24px 30px;
}

.hub-search-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-search-input-box {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.hub-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.85rem;
}

.hub-search-field {
  width: 100%;
  height: 36px;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0 14px 0 34px;
  outline: none;
  transition: border-color 0.15s;
}

.hub-search-field:focus {
  border-color: #38bdf8;
}

/* ===================================================
   4. KATEGORİ BAŞLIKLARI VE ARKADAŞ KARTLARI
   =================================================== */
.friend-category-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.friends-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.friend-user-card {
  background: #192331;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s;
}

.friend-user-card:hover {
  background: #202d3e;
  border-color: rgba(56, 189, 248, 0.4);
}

.friend-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.friend-avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.friend-avatar-thumb.in-game {
  border: 2px solid #00e676;
}

.friend-avatar-thumb.online {
  border: 2px solid #38bdf8;
}

.friend-avatar-thumb.offline {
  border: 2px solid #64748b;
  opacity: 0.7;
}

.friend-info-col {
  min-width: 0;
  flex: 1;
}

.friend-name-link {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-name-link:hover {
  color: #38bdf8;
}

.friend-status-sub {
  font-size: 0.72rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-status-sub.in-game {
  color: #00e676;
  font-weight: 700;
}

.friend-status-sub.online {
  color: #38bdf8;
}

.friend-status-sub.offline {
  color: #64748b;
}

.friend-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-friend-action {
  background: #253346;
  color: #c6d4df;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.btn-friend-action:hover {
  background: #0284c7;
  color: #ffffff;
}

/* ===================================================
   5. GRUPLAR GÖRÜNÜMÜ (GROUPS GRID)
   =================================================== */
.groups-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.group-item-card {
  background: #192331;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s;
}

.group-item-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}
