@charset "UTF-8";
@import url("tokens.css");
/**
 * NGT48 X (Twitter) フォロー状況専用スタイル (v2.0)
 * 2025/2026年主流SaaSスタイル（Bento Grid ＆ グラスモーフィズム）
 * ※ すべてのコメントは日本語で記述されています。
 */

/* -------------------------------------------------------------------------
   1. フォロー関係レイアウトコンテナ
   ------------------------------------------------------------------------- */
.follow-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  gap: 20px;
  width: 100%;
}

/* -------------------------------------------------------------------------
   2. 左側：主対象メンバーパネル (Sticky Bento Panel)
   ------------------------------------------------------------------------- */
.main-member-panel {
  background: var(--bg-surface, rgba(10, 25, 47, 0.78));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  border-radius: var(--radius-lg, 16px);
  backdrop-filter: var(--blur-glass, blur(20px) saturate(180%));
  -webkit-backdrop-filter: var(--blur-glass, blur(20px) saturate(180%));
  box-shadow: var(--shadow-bento, 0 16px 36px -10px rgba(4, 20, 42, 0.35));
  padding: 22px;
  width: 320px;
  min-width: 280px;
  position: sticky;
  top: 80px;
  color: #ffffff;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: #ffffff;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  padding-bottom: 12px;
  letter-spacing: -0.01em;
}

.member-selector {
  margin-bottom: 18px;
}

.member-selector select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(5, 15, 30, 0.7);
  color: #ffffff;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth, all 0.22s ease);
}

.member-selector select:focus {
  border-color: var(--border-focus, rgba(56, 189, 248, 0.6));
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.selected-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius-md, 12px);
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.selected-member-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  background-color: #0b1a2e;
}

.selected-member-name {
  font-size: 16.5px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(5, 15, 30, 0.6);
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  padding: 12px 6px;
}

.stat-item {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

#stat-mutual {
  color: #4ade80;
}

#stat-following {
  color: #38bdf8;
}

#stat-follower {
  color: #fb923c;
}

/* -------------------------------------------------------------------------
   3. 右側：他メンバーリストパネル
   ------------------------------------------------------------------------- */
.other-members-panel {
  flex: 1;
  background: var(--bg-surface, rgba(10, 25, 47, 0.78));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  border-radius: var(--radius-lg, 16px);
  backdrop-filter: var(--blur-glass, blur(20px) saturate(180%));
  -webkit-backdrop-filter: var(--blur-glass, blur(20px) saturate(180%));
  box-shadow: var(--shadow-bento, 0 16px 36px -10px rgba(4, 20, 42, 0.35));
  padding: 18px 20px;
  min-width: 320px;
  color: #ffffff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
}

.filter-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: var(--transition-smooth, all 0.22s ease);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.filter-btn.active {
  background: var(--accent-gradient, linear-gradient(135deg, #38bdf8 0%, #1d9bf0 100%));
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.relation-filters {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.relation-filter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth, all 0.22s ease);
}

.relation-filter-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.relation-filter-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.list-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.header-relation {
  width: 70px;
  text-align: center;
}

.header-member {
  flex: 1;
  text-align: left;
  padding-left: 14px;
}

.follow-list-container {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* -------------------------------------------------------------------------
   4. フォロー関係行アイテム (Relation Item)
   ------------------------------------------------------------------------- */
.relation-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md, 12px);
  transition: var(--transition-smooth, all 0.22s ease);
}

.relation-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.relation-item.hidden {
  display: none;
}

.relation-arrow {
  width: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  padding-right: 8px;
}

.relation-label {
  font-size: 10px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.target-member-info {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.target-member-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  background-color: #0b1a2e;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.target-member-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.target-member-details {
  display: flex;
  flex-direction: column;
}

.target-member-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.target-member-group {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* -------------------------------------------------------------------------
   5. レスポンシブ対応 (Mobile)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .follow-container {
    flex-direction: column;
    align-items: center;
  }

  .main-member-panel {
    width: 100%;
    max-width: 100%;
    position: static;
    padding: 16px;
  }

  .other-members-panel {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
  }

  .selected-member-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px;
    gap: 14px;
  }

  .selected-member-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    margin-right: 0;
  }

  .selected-member-name {
    font-size: 15px;
    text-align: left;
  }
}