/* ===========================================
   On This Day Memories Page Styles
   Matches KinPatch design language
   =========================================== */

.on-this-day-container {
    flex: 1;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
    min-height: 100%;
}

/* Year Sections */

.otd-year-section {
    margin-bottom: 32px;
    scroll-margin-top: 80px;
}

.otd-year-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}

.otd-year-heading .mdi {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Bare Media Group Card */

.otd-media-card__caption {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.otd-media-card__caption .mdi {
    color: var(--primary);
}

.otd-media-card__caption-sep {
    margin: 0 2px;
}

.otd-media-grid {
    display: grid;
    gap: 4px;
}

.otd-media-grid--single {
    grid-template-columns: 1fr;
}

.otd-media-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.otd-media-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.otd-media-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f2f6;
}

.otd-media-grid--single .otd-media-tile {
    aspect-ratio: 4 / 3;
}

.otd-media-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.otd-media-tile__overflow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    pointer-events: none;
}

/* Sidebar: Year Jump Navigation */

.otd-jump-list {
    display: flex;
    flex-direction: column;
}

.otd-jump-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.otd-jump-item:last-child {
    border-bottom: none;
}

.otd-jump-item:hover {
    background: var(--primary-soft);
}

.otd-jump-item__label {
    flex: 1;
    font-weight: 500;
}

.otd-jump-item__count {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.otd-jump-item__chevron {
    color: var(--text-light);
}

/* Sidebar: Today's Snapshot */

.otd-snapshot {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otd-snapshot li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.otd-snapshot .mdi {
    color: var(--primary);
    font-size: 1.1rem;
}
