/**
 * pages/smart.css — 스마트 분석 페이지 전용 스타일
 * 대시보드 디자인 시스템 (variables.css, card.css) 기반
 * price.css 구조와 통일성 유지
 */

/* ── 공통 헤더(사과Q) 숨김 — smart 페이지는 mypage-page-header 사용 ── */
header {
    display: none !important;
}

/* ── 페이지 헤더 (price.php 동일 구조) ── */
.mypage-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    background: var(--white, #fff);
    border-bottom: 1px solid #f0f1f5;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
}

.mypage-page-header .page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brown-dark);
    margin: 0;
}

.mypage-page-header .back-link {
    color: var(--brown-dark);
    font-size: 20px;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn-sub {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--brown-dark);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ── weather-info-bar: 2열 (기준일 / 위치) ── */
.weather-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── insight-card: 상단 여백 제거 및 박스섀도 최소화 ── */
main>.insight-card {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* ── insight-header Q 브랜드 간격 ── */
.header-title-group .q-brand {
    margin-right: 6px;
}

/* ── 카드 간 간격 ── */
main>.card+.card {
    margin-top: 8px;
}

/* ──  카드: 헤더 구분선·여백 제거 ── */
.smart-summary-card .card-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

/* ──  카드: Q 브랜드 간격 ── */
.smart-summary-card .header-title-group .q-brand {
    margin-right: 6px;
}

/* ── 미니카드 그리드: 스택 애니메이션 height 전환 기반 ── */
.mini-card-grid {
    transition: height 0.32s cubic-bezier(.4, 0, .2, 1);
}

/* ──  2×2 그리드 ── */
.smart-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 0 4px;
}

.smart-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 4px;
}

.smart-summary-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--brown);
    padding: 30px 4px;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    font-family: var(--font-family);
}

.smart-summary-label {
    width: 100%;
    font-size: 17px;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 8px;
}