/* v7/today/today.css - 오늘의 글 페이지 스타일 */

/* 페이지 헤더 */
.today-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wa-color-neutral-border-normal, #e0e0e0);
}

.today-page-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wa-color-brand-600, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.today-page-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0;
    color: var(--wa-color-text, #212529);
}

.today-page-desc {
    font-size: 0.82em;
    color: var(--wa-color-text-quiet, #999);
    margin: 2px 0 0;
}

/* 연도별 섹션 */
.today-year-section {
    margin-bottom: 32px;
    animation: todayFadeIn 0.5s ease-in-out;
}

/* 날짜 헤더 */
.today-date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.today-date-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wa-color-brand-600, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.today-date-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    color: var(--wa-color-text, #212529);
}

/* 글 목록 */
.today-post-list {
    padding-left: 16px;
}

/* 글 카드 */
.today-post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    background: var(--wa-color-neutral-95, #f5f5f5);
    transition: all 0.2s ease;
}

.today-post-card:hover {
    transform: translateX(4px);
    border-left-color: var(--wa-color-brand-600, #2563eb);
    background: var(--wa-color-neutral-90, #e8e8e8);
}

.today-post-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* 썸네일 */
.today-post-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.today-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 유튜브 재생 아이콘 오버레이 (썸네일 위) */
.today-youtube-overlay,
.today-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.today-youtube-overlay i {
    color: #ff0000;
    font-size: 1.3em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.today-video-overlay i {
    color: #fff;
    font-size: 1em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* 미디어 placeholder (이미지 없을 때 유튜브/동영상 아이콘) */
.today-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wa-color-neutral-95, #f5f5f5);
}

.today-media-placeholder i {
    font-size: 1.4em;
}

/* 글 내용 */
.today-post-content {
    flex: 1;
    min-width: 0;
}

.today-post-subject {
    font-size: 0.88em;
    font-weight: 500;
    line-height: 1.5;
    color: var(--wa-color-text, #212529);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 메타 정보 */
.today-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.today-meta-item {
    font-size: 0.76em;
    color: var(--wa-color-text-quiet, #999);
    display: flex;
    align-items: center;
    gap: 3px;
}

.today-meta-item i {
    font-size: 0.85em;
}

/* 빈 상태 */
.today-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--wa-color-text-quiet, #999);
}

.today-empty i {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
}

.today-empty p {
    font-size: 0.92em;
    margin: 0;
}

/* 애니메이션 */
@keyframes todayFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 991px) {
    .today-post-list {
        padding-left: 0;
    }

    .today-post-thumb {
        width: 56px;
        height: 56px;
    }
}
