/* ============================================================================
   🛡️ css/clan.css - 클랜(Clan) 시스템 & 협동 콘텐츠 UI 스타일
   ============================================================================ */

.clan-tab-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 10px 24px 10px;
  min-height: 100%;
}

/* 1. 클랜 대표 엠블럼 & 프로필 헤더 카드 */
.clan-header-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.clan-emblem-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4338ca, #1e1b4b);
  border: 2px solid #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.clan-info-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.clan-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clan-name {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clan-lvl-badge {
  font-size: 0.6rem;
  font-weight: 900;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  padding: 1px 6px;
  border-radius: 4px;
}

.clan-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: #94a3b8;
}

.clan-meta-row strong {
  color: #cbd5e1;
}

.btn-clan-manage {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-clan-manage:hover {
  background: rgba(71, 85, 105, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 2. 클랜 출석 & 일일 기부 바 */
.clan-daily-action-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clan-action-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clan-action-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.clan-action-desc {
  font-size: 0.64rem;
  color: #94a3b8;
}

.btn-clan-attend {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1.5px solid #38bdf8;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
  transition: all 0.15s;
}

.btn-clan-attend:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.btn-clan-attend.done {
  background: rgba(51, 65, 85, 0.5);
  border-color: rgba(100, 116, 139, 0.4);
  color: #94a3b8;
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* 3. 클랜 상시 버프 연구 현황 그리드 */
.clan-section-title {
  font-size: 0.86rem;
  font-weight: 900;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.clan-section-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: #fde047;
}

.clan-buff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clan-buff-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.clan-buff-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.clan-buff-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e2e8f0;
}

.clan-buff-val {
  font-size: 0.72rem;
  font-weight: 900;
  color: #4ade80;
}

.clan-buff-lvl {
  font-size: 0.55rem;
  color: #64748b;
}

/* 4. 클랜 보스 레이드 & 협동 던전 배너 */
.clan-raid-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.clan-raid-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clan-raid-tag {
  font-size: 0.58rem;
  font-weight: 900;
  background: #ef4444;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}

.clan-raid-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
}

.clan-raid-desc {
  font-size: 0.62rem;
  color: #cbd5e1;
}

.btn-clan-raid {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 1.5px solid #f87171;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  transition: all 0.15s;
}

.btn-clan-raid:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* 5. 클랜원 랭킹 & 명단 리스트 */
.clan-members-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clan-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.clan-member-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clan-rank-badge {
  font-size: 0.65rem;
  font-weight: 900;
  color: #fde047;
  min-width: 20px;
}

.clan-member-avatar {
  font-size: 1.1rem;
}

.clan-member-name-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.clan-member-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
}

.clan-member-role {
  font-size: 0.56rem;
  color: #94a3b8;
}

.clan-member-power {
  font-size: 0.72rem;
  font-weight: 900;
  color: #38bdf8;
}
