/**
 * News Date Archive Styling
 */

.news-date-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.news-date-archive__header {
    margin-bottom: 3rem;
    text-align: center;
}

.news-date-archive__navigation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.news-date-archive__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.news-date-archive__title .date-weekday {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.news-date-archive__title .date-full {
    display: block;
    color: #111;
}

.news-date-archive__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--wp--preset--color--base);
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.news-date-archive__nav-link:hover {
    color: var(--wp--preset--color--contrast);
}

.news-date-archive__nav-link--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #999;
}

.news-date-archive__nav-link--disabled:hover {
    text-decoration: none;
}

.news-date-archive__nav-link--next {
    margin-left: auto;
}

.news-date-archive__nav-link .nav-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.news-date-archive__nav-link .nav-date {
    font-size: 0.875rem;
}

.news-date-archive__meta {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Footer Section */
.news-date-archive__footer {
    margin-top: 3rem;
    text-align: center;
}

/* Content Section */
.news-date-archive__content {
    margin-top: 2rem;
}

.news-date-archive__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* News Item */
.news-date-archive__item {
    display: grid;
    grid-template-columns: 250px 1fr;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.news-item__image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.news-item__image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-item__image-main {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.news-item__content {
    padding: 1rem;
}

.news-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.news-item__source {
    color: #666;
}

.news-item__source .source-logo-inline {
    height: 10px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.news-item__time {
    color: #666;
    white-space: nowrap;
}

.news-item__edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.news-item__edit-link:hover {
    color: #2271b1;
    background-color: rgba(34, 113, 177, 0.1);
}

.news-item__edit-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.news-item__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.news-item__title a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item__title a:hover {
    color: var(--wp--preset--color--contrast);
}

.news-item__excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-item__excerpt p {
    margin:0;
}

/* Empty State */
.news-date-archive__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.news-date-archive__empty p {
    font-size: 1.125rem;
}

/* Pagination */
.news-date-archive__pagination {
    margin-top: 3rem;
    text-align: center;
}

.news-date-archive__pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-date-archive__pagination .page-numbers li {
    display: inline-block;
}

.news-date-archive__pagination a,
.news-date-archive__pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--wp--preset--color--base);
    font-weight: 400;
    transition: color 0.2s ease;
}

.news-date-archive__pagination a:hover {
    text-decoration: underline;
}

.news-date-archive__pagination .current {
    font-weight: 600;
    text-decoration: underline;
}

.news-date-archive__pagination .dots {
    cursor: default;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-date-archive {
        padding: 1rem 0.5rem;
    }

    .news-date-archive__navigation {
        gap: 1rem;
    }

    .news-date-archive__title {
        font-size: 1.75rem;
    }

    .news-date-archive__title .date-weekday {
        font-size: 0.875rem;
    }

    .news-date-archive__nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .news-date-archive__nav-link .nav-date {
        display: none;
    }

    .news-date-archive__item {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
    }

    .news-item__image a {
        height: 100%;
    }

    .news-item__content {
        padding: 0.5rem 0.75rem 0.5rem 0;
    }

    .news-item__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .news-item__source {
        font-size: 0.75rem;
    }

    .news-item__time {
        font-size: 0.75rem;
    }

    .news-item__title {
        font-size: 0.95rem;
        font-weight: 400;
        margin: 0;
    }

    .news-item__excerpt {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-date-archive__title {
        font-size: 1.5rem;
    }

    .news-date-archive__nav-link {
        padding: 0.5rem;
    }

    .news-date-archive__item {
        grid-template-columns: 70px 1fr;
    }
}
