/* ==========================================================
   dashboard.css - 메인 대시보드 리뉴얼 스타일시트
   1) 좌측 컬럼:
      - 상단: 다음 추첨일까지 실시간 타이머 배너
      - 하단: 최근 당첨결과 카드 (우측 높이 - 타이머 높이 만큼 채우며, 내부 데이터 세로 가운데 정렬)
   2) 우측 컬럼:
      - 인기 페이지 바로가기 버튼 1열 세로 나열 (동일한 너비)
   ========================================================== */

.dashboard-simple-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ==========================================================
   메인 2분할 레이아웃: 좌측 vs 우측
   ========================================================== */
.main-simple-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: stretch; /* 좌측 컬럼과 우측 섹션이 동일한 전체 높이를 가짐 */
}

/* ==========================================================
   [좌측 컬럼] 상단 타이머 + 하단 당첨결과 카드
   ========================================================== */
.simple-latest-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
}

/* 1) 좌측 상단 실시간 카운트다운 타이머 배너 */
.next-draw-timer-banner {
  background: linear-gradient(135deg, rgba(20, 30, 55, 0.88) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* 고정 크기 유지 */
}

.next-draw-timer-banner::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.timer-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.timer-badge-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-pulse-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.75; }
}

.timer-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timer-target-round {
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.timer-target-date {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
}

/* 타이머 디스플레이 */
.timer-countdown-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 6px 14px;
}

.timer-unit-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.timer-num {
  font-size: 19px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #F8FAFC;
  min-width: 24px;
  text-align: center;
}

.timer-num.highlight-sec {
  color: #F59E0B;
}

.timer-unit-label {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}

.timer-colon {
  font-size: 16px;
  font-weight: 700;
  color: #64748B;
  padding: 0 1px;
}

/* 2) 최근 당첨결과 카드 (좌측 전체 높이를 시원하게 채움) */
.simple-latest-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 26px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  box-sizing: border-box;
  justify-content: space-between;
}

/* 카드 헤더 */
.card-glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.latest-round-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.round-badge-dot {
  width: 8px;
  height: 8px;
  background: #3B82F6;
  border-radius: 50%;
  box-shadow: 0 0 6px #3B82F6;
}

.latest-round-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.latest-round-date {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-sub-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #60A5FA;
  text-decoration: none;
  transition: color 0.15s;
}

.header-sub-link:hover {
  color: #93C5FD;
  text-decoration: underline;
}

/* 당첨결과 내부 본문 (상/하 공간의 세로 가운데 정렬) */
.latest-card-body-centered {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 세로 가운데 정렬 */
  gap: 26px;
  padding: 20px 0;
}

/* 당첨 번호 볼 무대 */
.simple-balls-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.simple-balls-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.simple-ball-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s;
}

.hero-ball:hover {
  transform: translateY(-2px) scale(1.05);
}

.hero-ball.bonus-ball {
  border: 2px solid #F59E0B;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.hero-ball-pos {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
}

.hero-ball-pos.bonus-label {
  color: #F59E0B;
}

.hero-bonus-separator {
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.plus-sign {
  font-size: 22px;
  font-weight: 900;
  color: #64748B;
}

.simple-ball-loading {
  font-size: 13px;
  color: #94A3B8;
  padding: 10px;
}

/* 1등 당첨금 (1게임당) & 당첨 게임수 2분할 배너 */
.simple-prize-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 22px;
  gap: 16px;
}

.prize-stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prize-stat-col.game-prize {
  text-align: left;
}

.prize-stat-col.winner-count {
  text-align: right;
}

.prize-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
}

.prize-stat-val {
  font-size: 18px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #F8FAFC;
}

.prize-stat-val.highlight {
  font-size: 21px;
  color: #F59E0B;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.prize-stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   [우측] 인기 있는 페이지 바로가기 버튼 세로 나열 (동일한 너비)
   ========================================================== */
.popular-nav-section {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-sizing: border-box;
}

.popular-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popular-icon {
  font-size: 16px;
}

.popular-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.popular-badge {
  font-size: 11px;
  font-weight: 700;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 5px;
}

/* 3대 대메뉴 바로가기 버튼 세로 1열 나열 (전체 동일 너비 100%) */
.popular-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  flex: 1 1 auto;
  justify-content: center;
}

.popular-btn-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1 1 0;
  min-height: 64px;
  box-sizing: border-box;
  background: rgba(22, 30, 49, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.popular-btn-card:hover {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* 1번 완전조합기 특별 하이라이트 */
.popular-btn-card.btn-highlight-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(96, 165, 250, 0.45);
}

.popular-btn-card.btn-highlight-primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
}

.popular-btn-card.btn-highlight-primary .btn-card-title {
  color: #93C5FD;
}

.btn-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-card-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.btn-card-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.btn-card-desc {
  font-size: 11.5px;
  color: #94A3B8;
  letter-spacing: -0.2px;
}

.btn-card-arrow {
  font-size: 15px;
  color: #64748B;
  transition: transform 0.2s, color 0.2s;
  padding-left: 6px;
}

.popular-btn-card:hover .btn-card-arrow {
  color: #60A5FA;
  transform: translateX(4px);
}

/* ==========================================================
   반응형 모바일 최적화 (960px 이하 1열)
   ========================================================== */
@media (max-width: 960px) {
  .timer-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .timer-countdown-display {
    width: 100%;
    justify-content: center;
  }
  .main-simple-row {
    grid-template-columns: 1fr;
  }
  .simple-prize-banner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .prize-stat-divider {
    display: none;
  }
  .prize-stat-col.winner-count {
    text-align: left;
  }
}
