/**
 * Serenia Life Schema - Combined Styles
 * FAQ, HowTo, Podcast, and Product Schema blocks
 * Version: 1.3.0
 */

/* ==========================================================================
   STANDALONE PAGE SUPPORT
   When schema blocks are first/only content on a page, add top spacing
   to prevent header overlap
   ========================================================================== */

#serenia-faq-schema-block:first-child,
#serenia-howto-schema-block:first-child,
#serenia-podcast-schema-block:first-child,
#serenia-product-schema-block:first-child,
.wlf-body > #serenia-faq-schema-block:first-of-type,
.wlf-body > #serenia-howto-schema-block:first-of-type,
.wlf-body > #serenia-podcast-schema-block:first-of-type,
.wlf-body > #serenia-product-schema-block:first-of-type {
    padding-top: clamp(100px, 15vw, 150px);
}

/* When inserted after minimal content, ensure proper spacing */
.wlf-single__container > #serenia-faq-schema-block:first-child,
.wlf-single__container > #serenia-howto-schema-block:first-child,
.wlf-single__container > #serenia-podcast-schema-block:first-child,
.wlf-single__container > #serenia-product-schema-block:first-child {
    padding-top: clamp(80px, 12vw, 120px);
}

/* ==========================================================================
   FAQ SCHEMA STYLES
   ========================================================================== */

.wlf-faq-schema {
    padding: 0;
    margin-bottom: clamp(15px, 3vw, 30px);
}

.wlf-faq-schema .wlf-faq-schema__outer-container {
    padding: 0;
}

.wlf-faq-schema .wlf-faq-schema__white-container {
    background-color: #FFFFFF;
    border-radius: 1.5rem;
    padding: 30px 24px;
}

@media (min-width: 768px) {
    .wlf-faq-schema .wlf-faq-schema__white-container {
        padding: 40px 35px;
    }
}

.wlf-faq-schema .wlf-faq-schema__container {
    max-width: 100%;
    margin: 0 auto;
}

.wlf-faq-schema .wlf-faq-schema__title {
    font-size: clamp(28px, calc(28px + 16 * ((100vw - 400px) / 1040)), 44px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    text-align: center;
    color: #0B73BA !important;
}

.wlf-faq-schema .wlf-faq-schema__items {
    max-width: 900px;
    margin: 0 auto;
}

.wlf-faq-schema .wlf-faq-schema__item {
    margin-bottom: 30px;
}

.wlf-faq-schema .wlf-faq-schema__item:last-child {
    margin-bottom: 0;
}

.wlf-faq-schema .wlf-faq-schema__question {
    margin-bottom: 15px;
    font-size: calc(20px + (25 - 20) * ((100vw - 400px) / (1440 - 400)));
    font-weight: 500;
    line-height: 1.1;
    color: var(--charcoal);
}

.wlf-faq-schema .wlf-faq-schema__answer {
    font-size: calc(15px + (16 - 15) * ((100vw - 400px) / (1440 - 400)));
    font-weight: 300;
    line-height: 1.5;
    color: var(--grey-4);
    padding-left: 20px;
}

@media (min-width: 768px) {
    .wlf-faq-schema .wlf-faq-schema__answer {
        padding-left: 30px;
    }
}

.wlf-faq-schema .wlf-faq-schema__answer p {
    margin-bottom: 10px;
}

.wlf-faq-schema .wlf-faq-schema__answer p:last-child {
    margin-bottom: 0;
}

.wlf-faq-schema .wlf-faq-schema__answer ul,
.wlf-faq-schema .wlf-faq-schema__answer ol {
    margin-bottom: 10px;
    padding-left: 20px;
}

.wlf-faq-schema .wlf-accordion {
    background: transparent;
    margin-bottom: 15px;
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .wlf-faq-schema .wlf-accordion {
        padding: 0 30px;
    }
}

.wlf-faq-schema .wlf-accordion:hover {
    box-shadow: none;
}

.wlf-faq-schema .wlf-accordion:last-child {
    margin-bottom: 0;
}

.wlf-faq-schema .wlf-accordion__toggle {
    padding: 20px 0;
}

@media (min-width: 768px) {
    .wlf-faq-schema .wlf-accordion__toggle {
        padding: 25px 0;
    }
}

.wlf-faq-schema .wlf-accordion__title {
    font-size: calc(20px + (25 - 20) * ((100vw - 400px) / (1440 - 400)));
    font-weight: 400;
    line-height: 1.1;
}

.wlf-faq-schema .wlf-accordion__content {
    padding-bottom: 20px;
}

@media (min-width: 768px) {
    .wlf-faq-schema .wlf-accordion__content {
        padding-bottom: 25px;
    }
}


/* ==========================================================================
   PODCAST SCHEMA STYLES
   ========================================================================== */

.wlf-podcast-schema {
    padding: 0;
    margin-bottom: clamp(15px, 3vw, 30px);
}

.wlf-podcast-schema .wlf-podcast-schema__outer-container {
    padding: 0;
}

.wlf-podcast-schema .wlf-podcast-schema__white-container {
    background-color: #FFFFFF;
    border-radius: 1.5rem;
    padding: 30px 24px;
}

@media (min-width: 768px) {
    .wlf-podcast-schema .wlf-podcast-schema__white-container {
        padding: 40px 35px;
    }
}

.wlf-podcast-schema .wlf-podcast-schema__container {
    max-width: 100%;
    margin: 0 auto;
}

.wlf-podcast-schema .wlf-podcast-schema__title {
    font-size: clamp(28px, calc(28px + 16 * ((100vw - 400px) / 1040)), 44px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    text-align: center;
    color: #0B73BA !important;
}

/* Series Header */
.wlf-podcast-schema .wlf-podcast-schema__series-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: clamp(30px, 5vw, 50px);
    padding: 25px;
    background: #F5F5F5;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .wlf-podcast-schema .wlf-podcast-schema__series-header {
        flex-direction: row;
        gap: 30px;
        padding: 30px;
    }
}

.wlf-podcast-schema .wlf-podcast-schema__series-image {
    flex-shrink: 0;
}

.wlf-podcast-schema .wlf-podcast-schema__series-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .wlf-podcast-schema .wlf-podcast-schema__series-image img {
        width: 180px;
        height: 180px;
    }
}

.wlf-podcast-schema .wlf-podcast-schema__series-info {
    flex: 1;
}

.wlf-podcast-schema .wlf-podcast-schema__series-name {
    margin: 0 0 10px;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #333333;
}

.wlf-podcast-schema .wlf-podcast-schema__series-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wlf-podcast-schema .wlf-podcast-schema__series-name a:hover {
    color: #0B73BA;
}

.wlf-podcast-schema .wlf-podcast-schema__series-description {
    margin: 0 0 15px;
    color: #666666;
    line-height: 1.6;
    font-size: 1rem;
}

.wlf-podcast-schema .wlf-podcast-schema__series-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    font-size: 0.9rem;
    color: #666666;
}

.wlf-podcast-schema .wlf-podcast-schema__meta-label {
    font-weight: 600;
    color: #333333;
    margin-right: 5px;
}

/* Episodes Container */
.wlf-podcast-schema .wlf-podcast-schema__episodes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Episode Item */
.wlf-podcast-schema .wlf-podcast-schema__episode {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
    transition: none;
}

.wlf-podcast-schema .wlf-podcast-schema__episode:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-content {
    padding: 0;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-header {
    margin-bottom: 12px;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-number {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    overflow: hidden;
    background: #0B73BA;
    color: #FFFFFF;
    padding: 4px 10px;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-season {
    background: #2E7D32;
    color: #E8E8E8;
    padding: 4px 8px;
    margin: -4px 6px -4px -10px;
    font-weight: 700;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-title {
    margin: 0;
    font-size: calc(20px + (25 - 20) * ((100vw - 400px) / (1440 - 400)));
    font-weight: 500;
    line-height: 1.1;
    color: #333333;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-title a:hover {
    color: #0B73BA;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #666666;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-date,
.wlf-podcast-schema .wlf-podcast-schema__episode-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-date::before,
.wlf-podcast-schema .wlf-podcast-schema__episode-duration::before {
    font-family: 'Material Icons';
    font-size: 1rem;
    color: #999999;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-date::before {
    content: '\e916'; /* calendar_today */
}

.wlf-podcast-schema .wlf-podcast-schema__episode-duration::before {
    content: '\e425'; /* schedule/access_time */
}

.wlf-podcast-schema .wlf-podcast-schema__episode-description {
    margin: 0 0 15px;
    color: #666666;
    line-height: 1.6;
    font-size: calc(15px + (16 - 15) * ((100vw - 400px) / (1440 - 400)));
    font-weight: 300;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-description p {
    margin: 0 0 10px;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-description p:last-child {
    margin-bottom: 0;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-description a {
    color: #0B73BA;
    text-decoration: underline;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-description a:hover {
    color: #095a8f;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-player {
    margin-top: 15px;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-player audio {
    width: 100%;
    height: 40px;
}

.wlf-podcast-schema .wlf-podcast-schema__episode-player iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

/* Card Grid Layout */
.wlf-podcast-schema--cards .wlf-podcast-schema__episodes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 100%;
}

@media (min-width: 576px) {
    .wlf-podcast-schema--cards .wlf-podcast-schema__episodes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .wlf-podcast-schema--cards .wlf-podcast-schema__episodes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wlf-podcast-schema--cards .wlf-podcast-schema__episode {
    display: flex;
    flex-direction: column;
    background: #F5F5F5;
    border-radius: 10px;
    border-bottom: none;
    padding-bottom: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wlf-podcast-schema--cards .wlf-podcast-schema__episode:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wlf-podcast-schema--cards .wlf-podcast-schema__episode-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wlf-podcast-schema--cards .wlf-podcast-schema__episode-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

@media (min-width: 768px) {
    .wlf-podcast-schema--cards .wlf-podcast-schema__episode-content {
        padding: 25px;
    }
}

.wlf-podcast-schema--cards .wlf-podcast-schema__episode-description {
    flex: 1;
}

/* List Layout */
.wlf-podcast-schema--list .wlf-podcast-schema__episode {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .wlf-podcast-schema--list .wlf-podcast-schema__episode {
        flex-direction: row;
        gap: 20px;
    }
}

.wlf-podcast-schema--list .wlf-podcast-schema__episode-image {
    flex-shrink: 0;
}

.wlf-podcast-schema--list .wlf-podcast-schema__episode-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* List View Thumbnail Sizes - Small (80px) */
@media (min-width: 768px) {
    .wlf-podcast-schema--list.wlf-podcast-schema--thumb-small .wlf-podcast-schema__episode-image img {
        width: 80px;
        height: 80px;
    }
}

/* List View Thumbnail Sizes - Medium (120px) - Default */
@media (min-width: 768px) {
    .wlf-podcast-schema--list.wlf-podcast-schema--thumb-medium .wlf-podcast-schema__episode-image img {
        width: 120px;
        height: 120px;
    }
}

/* List View Thumbnail Sizes - Large (180px) */
@media (min-width: 768px) {
    .wlf-podcast-schema--list.wlf-podcast-schema--thumb-large .wlf-podcast-schema__episode-image img {
        width: 180px;
        height: 180px;
    }
}

.wlf-podcast-schema--list .wlf-podcast-schema__episode-content {
    flex: 1;
}

/* Season Header */
.wlf-podcast-schema__season-header {
    font-size: clamp(20px, calc(20px + 8 * ((100vw - 400px) / 1040)), 28px);
    font-weight: 700;
    color: var(--charcoal, #333);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--serenia-green, #00A651);
    width: 100%;
}

.wlf-podcast-schema__season-header:first-child {
    margin-top: 0;
}


/* ==========================================================================
   STANDALONE PAGE BOTTOM SPACING
   When schema blocks are the last/only content, add bottom spacing
   to prevent footer overlap
   ========================================================================== */

#serenia-faq-schema-block:last-child,
#serenia-podcast-schema-block:last-child {
    padding-bottom: clamp(60px, 10vw, 100px);
}


/* ==========================================================================
   PODCAST EPISODE LINKS
   ========================================================================== */

.wlf-podcast-schema__episode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    align-items: center;
}

.wlf-podcast-schema__episode-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wlf-podcast-schema__episode-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.wlf-podcast-schema__episode-link--text {
    padding: 8px 16px;
    background: #0B73BA;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
}

.wlf-podcast-schema__episode-link--text:hover {
    background: #095a8f;
    color: #FFFFFF;
}

.wlf-podcast-schema__episode-link--image img {
    max-height: 40px;
    width: auto;
    border-radius: 4px;
}

