/* ==================== RESUMEN IA DE PRÉDICA ==================== */
.sermon-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.sermon-card-btn--ia {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sermon-card-btn--ia:hover {
    background: #1e293b !important;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.sermon-summary-container {
    margin-top: 30px;
    animation: slideDownFade 0.5s ease-out forwards;
}

.sermon-summary-container.hidden {
    display: none;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sermon-summary-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--gray-100);
}

.sermon-summary-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
}

.sermon-summary-close:hover {
    color: var(--electric-blue);
}

.sermon-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--electric-blue);
}

.sermon-summary-header i {
    width: 32px;
    height: 32px;
}

.sermon-summary-header h3 {
    font-size: 1.5rem;
    color: var(--deep-navy);
    font-weight: 700;
}

.sermon-summary-body {
    color: var(--gray-500);
    line-height: 1.8;
}

.sermon-summary-body h4 {
    color: var(--deep-navy);
    margin: 24px 0 12px 0;
    font-size: 1.1rem;
}

.sermon-summary-body p {
    margin-bottom: 16px;
}

.sermon-summary-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.sermon-summary-body li {
    margin-bottom: 15px;
    position: relative;
    list-style: none;
}

.sermon-summary-body li::before {
    content: "•";
    color: var(--electric-blue);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.sermon-summary-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    text-align: right;
}

.sermon-summary-footer p {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-style: italic;
}

/* Skeleton loader for summary */
.summary-skeleton {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-load {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 640px) {
    .sermon-summary-content { padding: 30px 20px; }
}
