/* ==============================
   luckyCalendar.css
   길일 달력 페이지 스타일 (Flutter LuckyCalendarScreen 미러)
   ============================== */

.lc-wrap {
    max-width: 720px;
    width: 100%;
    padding: 16px 16px 100px;
    box-sizing: border-box;
    margin: 0 auto;
}
.lc-wrap * { box-sizing: border-box; }

/* ───── 월 네비게이션 ───── */
.lc-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 8px;
}
.lc-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}
.lc-nav-btn:hover { background: rgba(107, 78, 255, 0.06); }
.lc-nav-btn:active { background: rgba(107, 78, 255, 0.12); }

.lc-chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}
.lc-chevron-left  { transform: rotate(-135deg); margin-left: 4px; }
.lc-chevron-right { transform: rotate(45deg);  margin-right: 4px; }

.lc-month-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.3px;
}

/* ───── 요일 헤더 ───── */
.lc-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 0;
}
.lc-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 4px 0;
}
.lc-weekday.lc-sun { color: #E74C3C; }
.lc-weekday.lc-sat { color: #3498DB; }

/* ───── 캘린더 그리드 ───── */
.lc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 360px;
    position: relative;
}
.lc-cell {
    aspect-ratio: 1 / 1.18;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
    padding: 4px 0;
}
.lc-cell:hover { background: rgba(107, 78, 255, 0.04); }
.lc-cell-empty { cursor: default; pointer-events: none; }
.lc-cell-empty:hover { background: transparent; }
.lc-cell-today { background: rgba(107, 78, 255, 0.08); }
.lc-cell-today:hover { background: rgba(107, 78, 255, 0.14); }

.lc-day-num {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    margin-bottom: 2px;
}
.lc-day-num.lc-day-sun   { color: #E74C3C; }
.lc-day-num.lc-day-sat   { color: #3498DB; }
.lc-day-num.lc-day-today { color: #6B4EFF; }
.lc-day-num.lc-day-bold  { font-weight: 800; }

.lc-lunar-day {
    font-size: 9px;
    color: #999;
    line-height: 1.2;
}
.lc-lunar-month {
    font-size: 9px;
    color: #E65100;
    line-height: 1.2;
    font-weight: 600;
}

.lc-son-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #43A047;
    margin-top: 3px;
}
.lc-son-dot-placeholder {
    width: 6px;
    height: 6px;
    margin-top: 3px;
}

/* 로딩 스피너 */
.lc-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}
.lc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E0D4F5;
    border-top-color: #6B4EFF;
    border-radius: 50%;
    animation: lc-spin 0.8s linear infinite;
}
@keyframes lc-spin {
    to { transform: rotate(360deg); }
}

/* ───── 범례 ───── */
.lc-legend {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    margin-top: 16px;
}
.lc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}
.lc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.lc-dot-son { background: #43A047; }
.lc-dot-sun { background: #E74C3C; }
.lc-dot-sat { background: #3498DB; }

/* ───── 안내 박스 ───── */
.lc-info {
    margin-top: 12px;
    padding: 14px;
    background: #F5F0FF;
    border: 1px solid #E0D4F5;
    border-radius: 12px;
}
.lc-info-title {
    font-size: 13px;
    font-weight: 700;
    color: #7B1FA2;
    margin-bottom: 8px;
}
.lc-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}
.lc-info-list li { padding-left: 10px; position: relative; }
.lc-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #999;
}

/* ───── 바텀시트 ───── */
.lc-sheet-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
}
.lc-sheet-overlay.on {
    display: flex;
    animation: lc-fade-in 0.2s ease;
}
@keyframes lc-fade-in {
    from { background: rgba(0, 0, 0, 0); }
    to   { background: rgba(0, 0, 0, 0.45); }
}

.lc-sheet {
    background: #fff;
    width: 100%;
    max-width: 720px;
    border-radius: 20px 20px 0 0;
    padding: 16px 20px 32px;
    animation: lc-slide-up 0.25s ease;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
@keyframes lc-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.lc-sheet-handle {
    width: 40px;
    height: 4px;
    background: #DDDDDD;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.lc-sheet-date {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A2E;
    letter-spacing: -0.3px;
}
.lc-sheet-lunar {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 16px;
}

/* 손없는날 상태 박스 */
.lc-son-box {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lc-son-box.lc-son-active {
    background: #E8F5E9;
    border-color: #66BB6A;
}
.lc-son-box.lc-son-inactive {
    background: #F5F5F5;
    border-color: #E0E0E0;
}

.lc-son-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lc-son-icon svg { display: block; }

.lc-son-text {
    flex: 1;
    min-width: 0;
}
.lc-son-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}
.lc-son-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
    word-break: keep-all;
}

/* 추천 활동 */
.lc-recommend-section {
    display: none;
    margin-top: 14px;
}
.lc-recommend-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}
.lc-recommend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lc-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #F3E5F5;
    color: #7B1FA2;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1.3;
}

/* 팁 박스 */
.lc-tip {
    display: none;
    margin-top: 14px;
    width: 100%;
    padding: 12px;
    background: #FFF8E1;
    border-radius: 10px;
    font-size: 12px;
    color: #F57F17;
    line-height: 1.5;
}

/* ───── 반응형 ───── */
@media (max-width: 360px) {
    .lc-day-num   { font-size: 13px; }
    .lc-lunar-day, .lc-lunar-month { font-size: 8px; }
    .lc-month-label { font-size: 16px; }
    .lc-sheet-date { font-size: 18px; }
}
