/* Estilos para la página de contenido */

body {
    background: linear-gradient(180deg, var(--navy-900) 0%, #0a1a3a 100%);
    min-height: 100vh;
}

.content-section {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    min-height: calc(100vh - 80px);
    color: #ffffff;
}

/* Sección Live */
.live-section {
    margin-bottom: 4rem;
}

.live-top-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.live-header {
    margin: 0;
}

.live-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.live-title .script-font {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    font-size: 2.5rem;
    color: #ffffff;
}

.live-title .bold-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #ffffff;
}

/* Video pequeño */
.live-video-small {
    width: 100%;
}

.live-video-container-small {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.live-video-container-small .youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-width: 0;
    min-height: 0;
}

.live-video-container-small .loading-spinner,
.live-video-container-small .error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    z-index: 10;
}

/* Sección Ensinamentos */
.teachings-section {
    margin-bottom: 4rem;
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 0;
}

.teachings-header {
    margin-bottom: 2rem;
}

.teachings-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.teachings-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-700);
    margin: 0;
}

.teachings-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .teachings-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .teachings-videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjetas de video */
.video-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border: none;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-placeholder__overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-placeholder__overlay svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.video-placeholder__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-placeholder:hover img {
    transform: scale(1.04);
}

.video-placeholder:hover .video-placeholder__overlay {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(229, 57, 53, 0.9);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.video-info {
    padding: 1rem;
    background: #ffffff;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-channel {
    font-size: 0.9rem;
    color: var(--neutral-700);
    margin: 0 0 0.25rem 0;
}

.video-date {
    font-size: 0.85rem;
    color: var(--neutral-700);
    margin: 0;
}

/* Sección Podcast y Logos */
.bottom-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .bottom-sections {
        grid-template-columns: 1fr;
    }
}

/* Sección Podcast */
.podcast-section {
    padding: 2rem 0;
    color: #ffffff;
}

.podcast-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

.podcast-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.podcast-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.podcast-description {
    flex: 1;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.spotify-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.spotify-link:hover {
    transform: scale(1.1);
}

.spotify-logo {
    width: 60px;
    height: 60px;
}

.podcast-episodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.podcast-episode-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.podcast-episode-card:hover {
    transform: translateY(-4px);
}

.podcast-episode-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.podcast-episode-thumbnail {
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    border-radius: 8px;
}

.podcast-episode-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.podcast-episode-card:hover .podcast-episode-thumbnail img {
    transform: scale(1.05);
}

.podcast-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}

.podcast-placeholder-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    line-height: 1.3;
}

.podcast-episode-title {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 0;
    text-align: center;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* Sección Logos */
.logos-section {
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
}

.logos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logos-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.logos-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--neutral-700);
    margin-top: 0.25rem;
}

.logos-description {
    color: var(--neutral-700);
    font-size: 1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.logos-button {
    display: inline-block;
    background: var(--neutral-900);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.logos-button:hover {
    background: var(--navy-900);
    transform: translateY(-2px);
}

/* Loading y errores */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #d32f2f;
    font-size: 1.1rem;
    background: #ffebee;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
}

/* Responsive */
@media (max-width: 1024px) {
    .bottom-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .podcast-episodes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 1rem 0.5rem;
    }

    .live-top-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .live-title .script-font {
        font-size: 1.75rem;
    }

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

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

    .live-video-container {
        padding-bottom: 56.25%;
    }

    .podcast-title,
    .logos-title {
        font-size: 2rem;
    }

    .podcast-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .podcast-episodes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .live-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .live-title .script-font {
        font-size: 1.5rem;
    }

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

    .teachings-subtitle {
        font-size: 1rem;
    }

    .podcast-title,
    .logos-title {
        font-size: 1.75rem;
    }

    .logos-button {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}
