/* =============================================================
   PDV – Lista Meditazioni
   ============================================================= */


.pdv-list-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pdv-card--featured {
    margin-bottom: 8px;
}


/* 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: 16px;
}

.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-card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.6;
}

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

/* 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;
}

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


/* ── Separatore ───────────────────────────────────────────── */
.pdv-list-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdv-list-divider::before,
.pdv-list-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8edf2;
}

/* ── Filtro singola data ──────────────────────────────────── */
.pdv-filter-bar {
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

.pdv-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.pdv-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdv-filter-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
}

.pdv-filter-form input[type="date"] {
    padding: 9px 14px;
    border: 1px solid #d0d7e0;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: inherit;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.pdv-filter-form input[type="date"]:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, .15);
}

.pdv-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdv-filter-btn {
    background-color: #1565C0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .2s;
}

.pdv-filter-btn:hover {
    background-color: #0d47a1;
}

.pdv-reset-btn {
    font-size: 0.85em;
    color: #888;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.pdv-reset-btn:hover {
    color: #e53935;
}

/* ── Nessun risultato (filtro) ────────────────────────────── */
.pdv-filter-noresult {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.pdv-filter-noresult-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.pdv-filter-noresult p {
    margin: 0 0 16px;
    font-style: italic;
}

/* ── Riga compatta ────────────────────────────────────────── */
.pdv-compact-row {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 5px 20px;
    margin-top: 10px;
}

.pdv-row-header {
    display: flex;
    padding: 15px 0 !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color .15s;
    box-shadow: none;
}

.pdv-row-header:hover {
    background-color: transparent !important;
}

.pdv-row-header:focus {
    background-color: transparent !important;
}


.pdv-row-date {
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid #3381CD;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 15px;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 96px;
    text-align: center;
}

.pdv-row-title {
    flex: 1;
    font-size: 20px;
    color: #1a3a5c;
}

.pdv-row-chevron {
    flex-shrink: 0;
    color: #3381CD;
    transition: transform .25s ease;
}

.pdv-row-header[aria-expanded="true"] .pdv-row-chevron {
    transform: rotate(180deg);
}

.pdv-row-panel[hidden] {
    display: none;
}

.pdv-row-panel-inner {
    padding: 4px 4px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Pulsanti Copia / Condividi ───────────────────────────── */
.pdv-btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #285B8F;
    color: #285B8F;
    border-radius: 20px;
    padding: 15px 40px 15px 40px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .1s;
    white-space: nowrap;
}

.pdv-btn-share:hover {
    background-color: #285B8F;
    color: #fff;
    transform: translateY(-1px);
}

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

.pdv-btn-copy.pdv--copied {
    background-color: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

/* ── Contatore ────────────────────────────────────────────── */
.pdv-archive-count {
    font-size: 14px;
    color: #888;
    margin: 0 0 16px;
}

/* ── Paginazione ──────────────────────────────────────────── */
.pdv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pdv-pag-btn {
    display: inline-block;
    background-color: #3381cd;
    color: #fff !important;
    text-decoration: none;
    padding: 15px 40px 15px 40px;
    border-radius: 60px;
    font-size: 14px;
}

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

.pdv-pag-info {
    font-size: 14px;
    color: #888;
}

/* ── Messaggi ─────────────────────────────────────────────── */
.pdv-archive-error {
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: .9em;
    color: #555;
}

.pdv-archive-empty {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .pdv-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .pdv-filter-actions {
        width: 100%;
    }

    .pdv-filter-btn {
        width: 100%;
        text-align: center;
    }

    .pdv-row-date {
        min-width: unset;
        font-size: 10px;
    }

    .pdv-row-title {
        font-size: .88em;
    }

    .pdv-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pdv-pag-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Icone audio/video nel header della riga ──────────────── */
.pdv-row-media-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pdv-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pdv-row-icon--video {
    background-color: #e53935;
    color: #fff;
}

.pdv-row-icon--audio {
    background-color: #3381CD;
    color: #fff;
}

/* ── Sezione media (video + audio) ────────────────────────── */
.pdv-media-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

/* ── Video YouTube responsive ─────────────────────────────── */
.pdv-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.pdv-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ── Audio player ─────────────────────────────────────────── */
.pdv-audio-wrap audio {
    width: 100%;
    border-radius: 8px;
    accent-color: #3381CD;
}