/* ==============================
   전체 레이아웃
============================== */
body {
  background-color: #f5f6fa;
  font-size: 14px;
  padding-bottom: 70px; /* 하단 탭 높이 확보 */
}

/* ==============================
   날짜 스크롤
============================== */
.date-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.date-scroll::-webkit-scrollbar {
  display: none;
}

/* ==============================
   랭킹 카드
============================== */
.ranking-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #e9ecef;
}
.ranking-card:hover,
.ranking-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-color: #0d6efd44;
}

/* ==============================
   순위 배지
============================== */
.badge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}
.badge-rank.gold {
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #fff;
  box-shadow: 0 2px 8px rgba(253, 160, 133, 0.5);
}
.badge-rank.silver {
  background: linear-gradient(135deg, #cfd9df, #a8b8c8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 184, 200, 0.5);
}
.badge-rank.bronze {
  background: linear-gradient(135deg, #e0975c, #c8762e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 118, 46, 0.4);
}
.badge-rank.normal {
  background: #f0f0f5;
  color: #555;
}

/* ==============================
   하단 탭 네비게이션 (모바일)
============================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e9ecef;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #adb5bd;
  text-decoration: none;
  font-size: 10px;
  transition: color 0.15s;
}
.bottom-nav-item i {
  font-size: 20px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #0d6efd;
}

/* ==============================
   카드 공통
============================== */
.card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
}
.card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 16px;
}

/* ==============================
   반응형: 데스크탑 레이아웃
============================== */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
    max-width: 720px;
    margin: 0 auto;
  }
}
