/* =============================================================
   PDV API Integration — Frontend CSS
   ============================================================= */

/* Card contenitore  */
.pdv-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.6;
}

/* Box data */
.pdv-date-box {
    background-color: #3381CD;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    color: #ffffff;
    min-width: 110px;
    width: 110px;
    border-radius: 6px;
}

.pdv-date-day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.pdv-date-month {
    font-size: 18px;
    font-weight: bold;
    margin: 2px 0;
    text-transform: lowercase;
    opacity: 0.92;
}

.pdv-date-year {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

/* Corpo */
.pdv-body {
    padding: 0px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Titolo  */
.pdv-title {
    margin-bottom: 0 !important;
    color: #285B8F;
}

/*  Versetto  */
.pdv-verse {
    margin-bottom: 0 !important;
}

/*  Riferimento biblico  */
.pdv-reference {
    margin-bottom: 0 !important;
    font-size: 14px;
}

/*  Testo meditazione  */
.pdv-meditation-text {
    margin: 8px 0 4px;
    font-style: italic;
    color: #333333;
}


/*  Barra azioni  */
.pdv-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/*  Pulsante "Continua a leggere"  */
.pdv-btn-readmore {
    display: inline-block;
    background-color: #3381cd;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 15px 40px 15px 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.pdv-btn-readmore:hover {
    background-color: #0d47a1;
    transform: translateY(-1px);
}

.pdv-btn-readmore:active {
    transform: translateY(0);
}

/*  Link elenco meditazioni  */
.pdv-link-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #285B8F !important;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.pdv-link-list:hover {
    cursor: pointer;
}

/*  Stato errore / vuoto  */
.pdv-error {
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
}

.pdv-empty {
    color: #777;
    font-style: italic;
}

/*  Responsive  */
@media ( max-width: 767px ) {
    .pdv-card {
        flex-direction: column;
    }

    .pdv-date-box{
        margin-left: 20px;
    }


    .pdv-date-day,
    .pdv-date-year {
        font-size: 2em;
    }

    .pdv-date-month {
        font-size: 1em;
        align-self: center;
    }

    .pdv-body {
        padding: 16px 18px;
    }
}
