/**
 * pages/dashboard.css — 대시보드 페이지 전용 스타일
 * layout/footer.css, features/notification.css, core/utilities.css 로 이동된 항목 제외
 */

/* =========================================
   미니카드 그리드 / 네비게이션
   ========================================= */

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 4px;
    width: 100%;
}

.mini-card-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 2px;
}

.card-nav-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: #adb5bd;
    cursor: pointer;
    padding: 2px 6px;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: color 0.15s;
    font-weight: 600;
}

.card-nav-btn:hover:not(:disabled) {
    color: var(--primary-color);
}

.card-nav-btn:disabled {
    color: #dee2e6;
    cursor: default;
}

/* 도트 인디케이터 */
.mini-card-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mini-card-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: background 0.2s, width 0.25s, border-radius 0.25s;
}

.mini-card-dot.active {
    background: var(--brown);
    width: 20px;
    border-radius: 4px;
}

/* =========================================
   시간대별 예보 테이블
   ========================================= */

.hourly-forecast-list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    margin-top: 10px;
}

.day-group {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    background: var(--white);
}

.day-header {
    background: var(--bg-card);
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--text-color);
}

.day-header.today {
    background: #E8F8F5;
    color: #16A085;
}

.day-header.sat {
    background: #EAF2F8;
    color: #2980B9;
}

.day-header.sun {
    background: #FADBD8;
    color: #C0392B;
}

.w-col {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f5f5f5;
}

.w-cell {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--white);
}

.hours-row {
    display: flex;
}

.legend-col {
    flex: 0 0 60px;
    z-index: 2;
}

.legend-col .w-cell {
    color: var(--sub-text-color);
    font-size: 15px;
    justify-content: center;
}

.night-bg {
    background-color: #F4F6F7;
}

/* =========================================
   주간 예보 스크롤 컨테이너 (모달용)
   ========================================= */

.weekly-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 20px;
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.weekly-scroll-container::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.weekly-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.daily-card {
    border-radius: 5px;
    padding: 20px 5px;
    min-width: 100px; /* JS에서 동적 설정, fallback용 */
    margin-right: 12px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f0f0f0;
}

.card-date {
    font-size: 20px;
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 15px;
}

.card-weather-split {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 5px 0;
}

.w-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.w-sep {
    width: 1px;
    height: 90px;
    background-color: var(--border-light);
    margin: 0 8px;
}

.w-label {
    font-size: 15px;
    color: var(--sub-text-color);
}

.w-icon-wrapper {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.w-text {
    font-size: 15px;
    color: var(--sub-text-color);
    font-weight: normal;
    white-space: nowrap;
    line-height: 1.2;
}

.card-temp {
    font-size: 15px;
    font-weight: normal;
    color: var(--sub-text-color);
    margin-top: 20px;
}

.card-detail {
    font-size: 15px;
    font-weight: normal;
    color: var(--sub-text-color);
    margin-top: 20px;
}

.modal-date-display {
    font-size: 17px;
    font-weight: 800;
    color: var(--brown-dark);
    text-align: center;
    margin: 15px 0;
    font-family: var(--font-family);
}

/* =========================================
   모달 차트 컨테이너
   ========================================= */

.modal-chart-container {
    position: relative;
    width: 100%;
}

.modal-chart-container--hourly {
    height: 280px;
}

.modal-chart-container--weekly {
    height: 280px;
}

/* =========================================
   weekly-modal 카드 (모달 내 주간 예보)
   ========================================= */

.weekly-forecast-list {
    display: flex;
    overflow-x: auto;
    margin-top: 20px;
    padding-bottom: 10px;
    gap: 10px;
    scrollbar-width: none;
}

.weekly-forecast-list::-webkit-scrollbar {
    display: none;
}

.weekly-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 10px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weekly-date {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}

.weekly-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.weekly-sky {
    font-size: 12px;
    color: var(--sub-text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.weekly-details {
    font-size: 11px;
    color: #555;
    background: var(--white);
    padding: 5px;
    border-radius: 6px;
    width: 100%;
}

.weekly-details div {
    margin-bottom: 2px;
}

.weekly-details div:last-child {
    margin-bottom: 0;
}

/* =========================================
   광고 카드 (ad_card.css 흡수)
   ========================================= */

.ad-card {
    cursor: pointer;
}

.ad-thumbnail {
    flex: 0 0 68px;
    height: 68px;
    background-color: var(--border-light);
    border-radius: var(--radius-sm);
    margin-right: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-arrow {
    flex: 0 0 20px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-icon--bulb {
    color: var(--warning);
}

.ad-icon--gift {
    font-size: 24px;
    color: #ccc;
}

.ad-title {
    color: var(--text-color);
}

.ad-subtitle {
    color: var(--sub-text-color);
}
