/**
 * Santo do Dia - Estilos
 */

:root {
    --santo-primary: #c9a227;
    --santo-primary-dark: #a88420;
    --santo-text: #333333;
    --santo-text-light: #666666;
    --santo-bg: #ffffff;
    --santo-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --santo-radius: 12px;
}

/* Card Principal */
.santo-do-dia-card {
    background: var(--santo-bg);
    border-radius: var(--santo-radius);
    box-shadow: var(--santo-shadow);
    overflow: hidden;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: santoFadeIn 0.5s ease-out;
}

/* Header */
.santo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--santo-primary) 0%, var(--santo-primary-dark) 100%);
    color: #fff;
}

.santo-badge {
    font-weight: 600;
    font-size: 0.95em;
}

.santo-date {
    font-size: 0.9em;
    opacity: 0.9;
}

.santo-header .santo-badge::after {
    content: ' •';
    margin-right: 5px;
}

/* Título */
.santo-title {
    margin: 0;
    padding: 20px 25px 15px;
    font-size: 1.7em;
    color: var(--santo-primary-dark);
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

/* Conteúdo - Lado a lado */
.santo-content {
    display: flex;
    gap: 25px;
    padding: 5px 25px 25px;
    align-items: flex-start;
}

/* IMAGEM - Tamanho fixo, fixa no topo */
.santo-image-wrapper {
    flex-shrink: 0;
    flex-grow: 0;
    width: 240px !important;
    height: 320px !important;
    max-height: 320px !important;
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    align-self: flex-start;
}

.santo-image {
    width: 240px !important;
    height: 320px !important;
    max-height: 320px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block;
}

/* Área de texto */
.santo-text {
    flex: 1;
    padding: 5px 0;
}

.santo-summary {
    margin: 0 0 12px 0;
    line-height: 1.8;
    color: var(--santo-text);
    font-size: 1.02em;
    text-align: justify;
}

/* Texto Extra */
.santo-texto-extra {
    display: none;
    margin-top: 15px;
}

.santo-texto-extra.visivel {
    display: block;
}

.santo-texto-extra p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: var(--santo-text);
    font-size: 1.02em;
    text-align: justify;
}

.santo-texto-extra p:last-child {
    margin-bottom: 0;
}

/* Link Ler Mais - Sutil */
.santo-ler-mais-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--santo-text-light);
    text-decoration: none;
    font-size: 0.9em;
    font-style: italic;
    transition: color 0.2s ease;
}

.santo-ler-mais-link:hover {
    color: var(--santo-primary-dark);
}

/* Erro */
.santo-do-dia-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--santo-radius);
    color: #856404;
    text-align: center;
    margin: 20px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .santo-content {
        flex-direction: column;
        align-items: center;
    }

    .santo-image-wrapper {
        width: 180px;
        min-height: 220px;
        margin-bottom: 15px;
    }

    .santo-image {
        min-height: 220px;
    }

    .santo-summary,
    .santo-texto-extra p {
        text-align: left;
    }

    .santo-title {
        font-size: 1.4em;
    }

    .santo-header {
        flex-direction: column;
        gap: 5px;
    }

    .santo-header .santo-badge::after {
        content: '';
    }
}

/* Widget */
.widget-santo-do-dia .santo-do-dia-card {
    margin: 0;
}

.widget-santo-do-dia .santo-content {
    flex-direction: column;
    align-items: center;
}

.widget-santo-do-dia .santo-image-wrapper {
    width: 120px;
    min-height: 150px;
}

.widget-santo-do-dia .santo-image {
    min-height: 150px;
}

.widget-santo-do-dia .santo-title {
    font-size: 1.1em;
}

/* Admin Preview - Tamanho reduzido */
.wrap .santo-do-dia-card,
.admin-preview .santo-do-dia-card {
    width: 100%;
}

.wrap .santo-image-wrapper,
.admin-preview .santo-image-wrapper {
    width: 120px !important;
    height: 160px !important;
    max-height: 160px !important;
}

.wrap .santo-image,
.admin-preview .santo-image {
    width: 120px !important;
    height: 160px !important;
    max-height: 160px !important;
}

.wrap .santo-title,
.admin-preview .santo-title {
    font-size: 1.1em;
    padding: 10px 15px 6px;
}

.wrap .santo-content,
.admin-preview .santo-content {
    padding: 5px 15px 12px;
    gap: 12px;
}

.wrap .santo-summary,
.admin-preview .santo-summary {
    font-size: 0.85em;
    line-height: 1.5;
}

/* Animação */
@keyframes santoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== CARD MINI HORIZONTAL ==================== */
.santo-mini-card {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 15px;
    background: var(--santo-bg);
    border-radius: 8px;
    border-left: 4px solid var(--santo-primary);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 10px 20px 10px 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.santo-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.santo-mini-image {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.santo-mini-image img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.santo-mini-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.santo-mini-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.santo-mini-label {
    font-weight: 600;
    font-size: 0.8em;
    color: var(--santo-primary-dark);
}

.santo-mini-date {
    font-size: 0.75em;
    color: var(--santo-text-light);
}

.santo-mini-name {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--santo-text);
    line-height: 1.3;
}