* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background-color: white;
  color: #374151;
  line-height: 1.6;
}

.team-main-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

/* 헤더 스타일 */
.team-header-main {
  position: relative;
  margin-bottom: 2rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.highlight-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(to right, #ec4899, #be185d, #f97316);
  border-radius: 9999px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* 필터 스타일 */
.filter-container {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 1.2rem;
  font-weight: 500;
  color: #be185d;
}

.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  ring: 2px;
  ring-color: #ec4899;
  border-color: transparent;
}

.filter-select:hover {
  border-color: #f9a8d4;
}

/* 테이블 스타일 */
.table-container {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.table-header {
  background-color: #f9fafb;
}

.table-th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: #be185d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-th.sortable {
  cursor: pointer;
  transition: background-color 0.2s;
}

.table-th.sortable:hover {
  background-color: #fce7f3;
  border-radius: 0.25rem;
}

.sort-icon {
  margin-left: 0.25rem;
}

.table-row {
  transition: background-color 0.2s;
}

.table-row:hover {
  background-color: #f9fafb;
}

.table-row:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.table-td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 1.1rem;
}

/* 순위 스타일 */
.rank-display {
  font-size: 1.5rem;
}

.rank-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
}

/* 닉네임 스타일 */
.nickname {
  font-weight: 500;
  color: #111827;
}

.nickname.rank-1 {
  background: linear-gradient(90deg, #ffe066 0%, #fffbe6 100%);
  color: #b8860b;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.2em 0.7em;
  box-shadow: 0 2px 8px 0 rgba(255, 224, 102, 0.15);
}
.nickname.rank-2 {
  background: linear-gradient(90deg, #e0e0e0 0%, #f8f8f8 100%);
  color: #6e6e6e;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.2em 0.7em;
  box-shadow: 0 2px 8px 0 rgba(200, 200, 200, 0.12);
}
.nickname.rank-3 {
  background: linear-gradient(90deg, #ffd6a0 0%, #fff2e0 100%);
  color: #b87333;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.2em 0.7em;
  box-shadow: 0 2px 8px 0 rgba(255, 214, 160, 0.12);
}

/* 수익률 스타일 */
.profit-rate {
  font-weight: 700;
}

/* 최근 5주 스타일 */
.recent-weeks {
  display: flex;
  gap: 0.25rem;
}

.week-indicator {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.week-win {
  background: linear-gradient(to bottom right, #ec4899, #be185d);
}

.week-loss {
  background: linear-gradient(to bottom right, #f97316, #dc2626);
}

/* 게임 아이콘 스타일 */
.game-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  transition: transform 0.2s;
}

.game-icon img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* 연속적중 스타일 */
.consecutive-hits {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(to right, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* 페이지네이션 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #be185d;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #f9a8d4;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-icon {
  width: 1rem;
  height: 1rem;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#page-info {
  font-size: 0.875rem;
  color: #be185d;
  font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .team-main-container {
    padding: 1rem 0.5rem;
  }

  .table-th,
  .table-td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .title {
    font-size: 1.25rem;
  }
}

/* 로딩 상태 */
.loading {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
}
