/* ============================================
   report.css - Singolo Grow Report
   ============================================ */

/* ---- HEADER REPORT ---- */
.report-header {
    background: linear-gradient(135deg, rgb(1, 32, 42) 0%, rgb(5, 90, 61) 100%);
    padding: 40px 30px 30px;
    text-align: center;
    border-bottom: 3px solid rgba(36, 175, 95, 0.4);
}

.report-header__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.report-header__bank {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.report-header__badge {
    display: inline-block;
    margin-top: 12px;
    background: rgba(36, 175, 95, 0.2);
    border: 1px solid rgba(36, 175, 95, 0.5);
    color: #24AF5F;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- CONTENITORE SETTIMANE ---- */
.report-weeks {
    background-color: rgb(5, 90, 61);
    padding: 24px 20px;
    min-height: 60vh;
}

/* ---- CARD SETTIMANA ---- */
.week-card {
    background: rgb(1, 32, 42);
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(36, 175, 95, 0.15);
}

.week-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(36, 175, 95, 0.15);
}

.week-card__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #24AF5F;
    line-height: 1;
    min-width: 48px;
}

.week-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.week-card__body {
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    gap: 0;
    min-height: 260px;
}

/* ---- COLONNA FERTILIZZANTI ---- */
.week-ferts {
    border-right: 1px solid rgba(36, 175, 95, 0.1);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 400px;
}

.fert-item {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fert-item:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 175, 95, 0.4);
}

.fert-item__img {
    width: 100%;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.fert-item__dose {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #24AF5F;
    padding: 4px 6px;
    background: rgba(0,0,0,0.3);
}

/* ---- COLONNA FOTO ---- */
.week-photos {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-content: start;
}

.week-photo {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
}

.week-photo__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.week-photo:hover .week-photo__bg {
    transform: scale(1.05);
}

.week-photo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.week-photo:hover .week-photo__overlay {
    background: rgba(0,0,0,0.3);
}

.week-photo__overlay i {
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.week-photo:hover .week-photo__overlay i {
    opacity: 1;
}

/* ---- COLONNA NOTE ---- */
.week-notes {
    border-left: 1px solid rgba(36, 175, 95, 0.1);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-notes__title {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    margin-bottom: 4px;
}

.note-item {
    background: rgba(36, 175, 95, 0.07);
    border-left: 3px solid #24AF5F;
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    line-height: 1.4;
}

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox__close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    background: rgba(0,0,0,0.4);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

/* ---- STATO VUOTO ---- */
.week-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    height: 100%;
    min-height: 100px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .week-card__body {
        grid-template-columns: 110px 1fr;
        grid-template-rows: auto auto;
    }

    .week-notes {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(36, 175, 95, 0.1);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .week-notes__title {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .report-weeks {
        padding: 14px 10px;
    }

    .week-card__body {
        grid-template-columns: 90px 1fr;
    }

    .week-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .week-card__number {
        font-size: 1.8rem;
    }

    .report-header {
        padding: 24px 16px 20px;
    }
}