/* ========================================
   TTDatepicker — 타임티켓 경량 달력
   ======================================== */

/* ── 루트 컨테이너 ── */
.tt-dp {
  width: 100%;
  padding: 0.5rem 0;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}

/* ── 헤더 (년월 + 화살표) ── */
.tt-dp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}

.tt-dp-title {
  color: #000;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  order: 1;
}

/* prev/next 화살표 */
.tt-dp-prev,
.tt-dp-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}

.tt-dp-prev { order: 0; margin-right: 1rem; }
.tt-dp-next { order: 2; margin-left: 1rem; }

.tt-dp-prev:hover,
.tt-dp-next:hover { background: #f4f4f4; }

/* 화살표 셰브론 (CSS only) */
.tt-dp-prev::after,
.tt-dp-next::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
}

.tt-dp-prev::after {
  transform: rotate(-135deg);
  margin-left: 0.125rem;
}

.tt-dp-next::after {
  transform: rotate(45deg);
  margin-right: 0.125rem;
}

/* 비활성 화살표 */
.tt-dp-prev.tt-dp-disabled,
.tt-dp-next.tt-dp-disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* ── 달력 그리드 ── */
.tt-dp-grid {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
}

.tt-dp-grid th {
  padding: 0 0 0.625rem;
  color: #999;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
}

.tt-dp-grid td {
  padding: 0;
  padding-bottom: 0.25rem;
  position: relative;
  text-align: center;
}

/* ── 날짜 셀 ── */
.tt-dp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #000;
  font-size: 0.875rem;
  margin: 0 auto;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}

/* 터치 피드백 */
.tt-dp-cell:active {
  background: rgba(255, 75, 75, 0.15);
}

/* ── 요일 색상 ── */
.tt-dp-sun .tt-dp-cell { color: #ff4b4b; }
.tt-dp-sat .tt-dp-cell { color: #4b75ff; }

/* ── 오늘 표시 ── */
.tt-dp-today .tt-dp-cell::after {
  content: '오늘';
  position: absolute;
  bottom: 0.1875rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5625rem;
  font-weight: 600;
  color: #ff4b4b;
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* 오늘이 선택된 상태 — "오늘" 텍스트 숨김 */
.tt-dp-today .tt-dp-cell.tt-dp-selected::after {
  display: none;
}

/* ── 선택된 날짜 ── */
.tt-dp-cell.tt-dp-selected,
.tt-dp-sun .tt-dp-cell.tt-dp-selected,
.tt-dp-sat .tt-dp-cell.tt-dp-selected {
  background: #ff4b4b;
  color: #fff;
  font-weight: 600;
}

/* ── 비활성 날짜 ── */
.tt-dp-disabled .tt-dp-cell {
  opacity: 0.25;
  cursor: default;
}

.tt-dp-disabled .tt-dp-cell:active {
  background: none;
}

/* ── 빈 셀 ── */
.tt-dp-empty {
  pointer-events: none;
}

/* ── 월 전환 슬라이드 애니메이션 ── */
@keyframes ttDpSlideLeft {
  from { transform: translateX(1.5rem); opacity: 0.4; }
  to   { transform: translateX(0);      opacity: 1; }
}

@keyframes ttDpSlideRight {
  from { transform: translateX(-1.5rem); opacity: 0.4; }
  to   { transform: translateX(0);       opacity: 1; }
}

.tt-dp-slide-left {
  animation: ttDpSlideLeft 0.2s ease-out;
}

.tt-dp-slide-right {
  animation: ttDpSlideRight 0.2s ease-out;
}
