/* ==================== SERMON SINGLE PAGE ==================== */

.sermon-single-wrapper {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Hero Section */
.sermon-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-bottom: 1px solid #e5e5e5;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: fadeInDown 0.6s ease-out;
}

.sermon-hero-content {
    max-width: 600px;
}

.sermon-meta-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sermon-predicador {
    background: #f0f0f0;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.sermon-date {
    color: #888;
    font-size: 0.875rem;
    font-weight: 500;
}

.sermon-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.sermon-pasaje {
    font-size: 1.125rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #888;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.sermon-series {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.series-label {
    font-weight: 600;
    color: #333;
}

.series-name {
    color: #666;
}

.sermon-hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.sermon-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.sermon-hero-image:hover .sermon-featured-image {
    transform: scale(1.02);
}

/* Main Container */
.sermon-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* Main Content */
.sermon-main-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Media Section */
.sermon-media-section {
    margin-bottom: 3rem;
}

.media-player {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.youtube-player {
    aspect-ratio: 16 / 9;
}

.video-player {
    aspect-ratio: 16 / 9;
}

.audio-player {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
}

/* Sermon Notes */
.sermon-notes {
    margin-bottom: 3rem;
}

.sermon-notes-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.sermon-notes-header h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.sermon-notes-content {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.sermon-notes-content p {
    margin-bottom: 1.5rem;
}

.sermon-notes-content h3,
.sermon-notes-content h4 {
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.sermon-notes-content ul,
.sermon-notes-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.sermon-notes-content li {
    margin-bottom: 0.5rem;
}

/* Temas */
.sermon-temas {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.sermon-temas h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem;
}

.temas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tema-tag {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tema-tag:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    color: #333;
}

/* Resources Section */
.sermon-resources {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.sermon-resources h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.resource-card:hover {
    border-color: #ccc;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2rem;
}

.resource-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
}

/* Navigation */
.sermon-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.nav-link {
    display: block;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-color: #ccc;
    color: #333;
}

.nav-title {
    display: block;
    color: #1a1a1a;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Sidebar */
.sermon-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.sidebar-card h3 {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-card h4 {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

/* Predicador Card */
.predicador-foto {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.predicador-foto img {
    width: 100%;
    height: auto;
    display: block;
}

.predicador-nombre {
    margin-bottom: 0.25rem;
}

.predicador-cargo {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.predicador-bio {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: block;
    padding: 0.75rem;
    background: #f0f0f0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-align: center;
    color: #555;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

/* Series Card */
.series-imagen {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.series-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.series-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border: 1px solid #d5d5d5;
    color: #555;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    border-color: #ccc;
    color: #333;
}

/* ==================== SERMON ARCHIVE PAGE ==================== */

.sermon-archive-wrapper {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    min-height: 100vh;
    padding: 3rem 2rem;
}

.archive-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

.archive-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem;
}

.archive-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

/* Sermons Grid */
.sermons-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.sermon-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.sermon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.sermon-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f0f0f0;
}

.sermon-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sermon-card:hover .sermon-thumbnail {
    transform: scale(1.05);
}

.sermon-card-content {
    padding: 1.5rem;
}

.sermon-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.card-predicador {
    background: #f0f0f0;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.card-date {
    color: #888;
}

.sermon-card-title {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.sermon-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sermon-card-title a:hover {
    color: #666;
}

.card-pasaje {
    color: #666;
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.sermon-card-excerpt {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-temas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tema-badge {
    background: #f0f0f0;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.read-more {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1a1a1a;
}

.no-sermons {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 3rem;
}

/* ==================== ANIMATIONS ==================== */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .sermon-hero {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .sermon-title {
        font-size: 2rem;
    }

    .sermon-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .sermon-main-content {
        padding: 1.5rem;
    }

    .sermon-navigation {
        grid-template-columns: 1fr;
    }

    .archive-title {
        font-size: 1.75rem;
    }

    .sermons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sermon-hero {
        padding: 1.5rem;
    }

    .sermon-title {
        font-size: 1.5rem;
    }

    .sermon-pasaje {
        font-size: 1rem;
    }

    .sermon-container {
        padding: 1rem;
    }

    .sermon-main-content {
        padding: 1rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .archive-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}
