@charset "UTF-8";

.team-split-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 56px;
}

/* 상단 */

.team-split-page .utility-top {
  padding: 32px 20px 28px;
  text-align: center;
}

.team-split-page .utility-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.team-split-page .utility-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.team-split-page .utility-desc {
  max-width: 900px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

/* 요약 카드 */

.team-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.team-summary-item {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.team-summary-item::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.team-summary-item strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.team-summary-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

/* 메인 카드 */

.team-main-card {
  padding: 30px;
  margin-top: 18px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.team-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.team-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.team-status-badge {
  flex: 0 0 auto;
  min-width: 90px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

/* 레이아웃 */

.team-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* 입력 카드 */

.team-control-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.team-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.team-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.team-textarea {
  min-height: 280px;
  resize: vertical;
}

.team-setting-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.team-quick-group {
  min-width: 0;
}

.team-option-title {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.team-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-count-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.team-count-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.team-count-btn.is-active {
  border-color: rgba(6, 182, 212, 0.4);
  background: #ecfeff;
  color: #155e75;
}

/* 옵션 */

.team-option-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.team-option-pill {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.team-option-pill input {
  width: 14px;
  height: 14px;
  accent-color: #06b6d4;
}

/* 버튼 */

.team-btn-row {
  margin-top: 24px;
}

.team-split-page .utility-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.team-split-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #164e63);
  color: #ffffff;
}

.team-split-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.team-split-page .utility-btn:disabled,
.team-count-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

/* 메시지 */

.team-message {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(6, 182, 212, 0.16);
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  color: #155e75;
  font-size: 14px;
  line-height: 1.7;
}

/* 결과 카드 */

.team-result-card {
  min-width: 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.team-result-header {
  margin-bottom: 18px;
}

.team-result-header h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.team-result-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

/* 통계 */

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.team-stat-grid div {
  min-height: 88px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #ffffff;
}

.team-stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.team-stat-grid strong {
  display: block;
  color: #0f172a;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.1;
}

/* 팀 결과 */

.team-result-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.team-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.team-card-title {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.team-card-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.team-leader {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  color: #155e75;
  font-size: 13px;
  font-weight: 800;
}

.team-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-member-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #f1f5f9;
}

.team-member-name {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.member-badge.gender {
  background: #eef2ff;
  color: #4f46e5;
}

.member-badge.seed {
  background: #fff7ed;
  color: #ea580c;
}

.team-empty {
  padding: 32px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

/* 도움말 */

.team-split-page .help-panel {
  margin-top: 34px;
}

.team-split-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.team-split-page .help-box {
  border-radius: 22px;
}

.team-split-page .help-toggle-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-size: 1.06rem;
  font-weight: 800;
}

.team-split-page .help-toggle-box summary::-webkit-details-marker {
  display: none;
}

.team-split-page .help-toggle-box summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.team-split-page .help-toggle-box[open] summary::after {
  content: "−";
}

.team-split-page .help-toggle-content {
  margin-top: 14px;
}

.team-split-page .help-toggle-content p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

/* 반응형 */

@media (max-width: 1080px) {
  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-control-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .team-summary-card {
    grid-template-columns: 1fr;
  }

  .team-main-card {
    padding: 22px;
    border-radius: 22px;
  }

  .team-card-head {
    flex-direction: column;
  }

  .team-option-box,
  .team-stat-grid {
    grid-template-columns: 1fr;
  }

  .team-result-wrap {
    grid-template-columns: 1fr;
  }

  .team-btn-row .utility-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .team-chip-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .team-split-page .utility-title {
    font-size: 32px;
  }

  .team-input-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-textarea {
    min-height: 220px;
  }
}