/* 날짜별 단어 달력 — 소라 + 차콜 */
.v-calendar-page {
    max-width: 1104px;
    margin: 0 auto;
}

.v-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.v-calendar-panel,
.v-calendar-selected {
    min-width: 0;
}

.v-calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 19px;
}

.v-calendar-heading h2,
.v-calendar-selected-heading h2 {
    margin: 12px 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--v-charcoal);
}

.v-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.v-calendar-nav,
.v-calendar-today {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #d7e5ee;
    border-radius: 11px;
    background: #f3f8fc;
    color: #3c6683;
    font-weight: 750;
    cursor: pointer;
    touch-action: manipulation;
}

.v-calendar-nav {
    font-size: 1.6rem;
    line-height: 1;
}

.v-calendar-today {
    padding: 0 10px;
    font-size: .83rem;
}

.v-calendar-nav:hover,
.v-calendar-today:hover {
    background: #e4f2fa;
}

.v-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.v-calendar-weekday {
    padding: 5px 0 9px;
    text-align: center;
    font-size: .81rem;
    color: #7a90a2;
    font-weight: 700;
}

.v-calendar-weekday:nth-child(7) {
    color: #b08080;
}

.v-calendar-empty {
    min-width: 0;
}

.v-calendar-day {
    min-width: 0;
    min-height: 69px;
    padding: 9px 2px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    border: 1px solid #e3edf3;
    border-radius: 12px;
    background: #f9fcfe;
    color: #5d7588;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .15s ease, border-color .15s ease;
}

.v-calendar-day:hover {
    background: #ecf6fc;
    border-color: #b8d6e9;
}

.v-calendar-day.has-words {
    background: #eef7fc;
    border-color: #d3e7f4;
    color: var(--v-charcoal);
}

.v-calendar-day.is-today .v-calendar-day-number {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.v-calendar-day.is-selected,
.v-calendar-day.is-selected:hover {
    background: #3977a2;
    border-color: #3977a2;
    color: white;
}

.v-calendar-day-number {
    font-weight: 800;
    font-size: .92rem;
    line-height: 1.3;
}

.v-calendar-day-count {
    padding: 2px 5px;
    border-radius: 6px;
    background: #d9eaf6;
    color: #3977a2;
    font-size: .72rem;
    font-weight: 760;
    white-space: nowrap;
}

.v-calendar-day.is-selected .v-calendar-day-count {
    color: #2d6387;
    background: #f1f9ff;
}

.v-calendar-caption {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 19px 0 0;
    color: var(--v-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.v-calendar-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: #b1d5ed;
}

.v-calendar-selected-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.v-calendar-selected-heading .v-eyebrow {
    margin-bottom: 0;
}

.v-calendar-selected-heading .v-muted {
    margin: 9px 0 0;
    font-size: .86rem;
}

.v-calendar-start {
    flex: 0 0 auto;
}

.v-calendar-word-list {
    display: grid;
    gap: 9px;
    max-height: 540px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.v-calendar-word {
    padding: 13px 15px;
    border: 1px solid #dfebf2;
    border-radius: 12px;
    background: #fafcff;
    line-height: 1.55;
}

.v-calendar-word > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

.v-calendar-word strong {
    font-size: 1rem;
    font-weight: 780;
    color: var(--v-charcoal);
}

.v-calendar-reading {
    font-size: .83rem;
    color: #698599;
}

.v-calendar-word p {
    margin: 5px 0 0;
    font-size: .87rem;
    color: #4b667a;
    white-space: pre-wrap;
}

.v-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 850px) {
    .v-calendar-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .v-calendar-heading h2,
    .v-calendar-selected-heading h2 { font-size: 1.23rem; }

    .v-calendar-grid { gap: 4px; }

    .v-calendar-day {
        min-height: 57px;
        padding: 7px 1px;
        gap: 3px;
        border-radius: 9px;
    }

    .v-calendar-day-number { font-size: .85rem; }
    .v-calendar-day-count { font-size: .64rem; padding: 2px 3px; }
    .v-calendar-weekday { font-size: .76rem; }
    .v-calendar-start { width: 100%; }
    .v-detail-actions { width: 100%; }
    .v-detail-actions .v-btn { flex: 1 1 120px; }
}

@media (prefers-reduced-motion: reduce) {
    .v-calendar-day { transition: none; }
}

/* 등록일과 실제 학습일을 혼동하지 않도록 학습 기록은 별도 점으로 표시 */
.v-calendar-day {
    position: relative;
}

.v-calendar-day > .v-calendar-study-dot {
    position: absolute;
    right: 5px;
    bottom: 5px;
}

.v-calendar-study-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4a35e;
}

.v-calendar-study-dot.is-done {
    background: #64ab85;
}

.v-calendar-day.is-selected .v-calendar-study-dot {
    border: 1px solid #ffffff;
    width: 9px;
    height: 9px;
}

.v-calendar-caption {
    flex-wrap: wrap;
}

.v-calendar-complete {
    color: #34765a;
    font-size: .82rem;
    font-weight: 730;
}
