/*
 * Plik: /assets/css/daily-summary-box.css
 * Wersja: 1.5 (FINALNA OSTATECZNA - Cały boks jako <a>)
 * Opis: Dedykowane style dla boksu z ostatnim podsumowaniem dnia.
 */

/* ZMIANA: Główny kontener jest teraz linkiem */
a.daily-summary-box {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    gap: 2rem;
    background-color: #fff;
    border: 1px solid var(--news-border-color, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    /* KLUCZOWA ZMIANA: Usuwa podkreślenie z całego bloku */
}

a.daily-summary-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

a.daily-summary-box:hover .summary-box__title {
    color: var(--ast-global-color-0, #007bff);
}

.summary-box__thumbnail {
    flex-shrink: 0;
    width: 250px;
    aspect-ratio: 1.91 / 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
}

.summary-box__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-box__thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ced4da;
}

.summary-box__content {
    flex-grow: 1;
}

.summary-box__title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.4em;
    font-weight: 700;
    color: #222;
    transition: color 0.2s ease;
}

.summary-box__excerpt {
    margin-bottom: 1rem;
    font-size: 1em;
    line-height: 1.6;
    color: #495057;
}

/* ZMIANA: Zmieniono z <a> na <span>, bo cały boks jest linkiem */
.summary-box__link {
    font-weight: 600;
    color: var(--ast-global-color-0, #007bff);
}

@media (max-width: 768px) {
    a.daily-summary-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .summary-box__thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 1.91 / 1;
        margin-bottom: 1rem;
    }
}
a.daily-summary-box {
    text-decoration: none!important;
}