/* ==================== P7 MASTER STYLES ==================== */
/* This file contains all page-specific styles for Podcast7 */
/* Sections: Colours, Homepage */

/* ==================== COLOURS ==================== */

:root {
    --primary: #A617E7;
    --secondary: #76209F;
    --tertiary: #431857;
    --quaternary: #DCA2F6;
    --grey: #E3E3EB;
    --bg: #FDFAF7;
    --text-main: #111315;
    --white: #FFFFFF;
}

/* ==================== HOMEPAGE STYLES ==================== */

/* --- Section Light/Dark (P7 Specific Padding) --- */
.section-light {
    background-color: var(--bg);
    padding: 100px 0 10px 0;
}

.section-dark {
    background-color: var(--tertiary);
    color: var(--white);
    padding: 100px 0;
}

/* --- Content Focus Grid (Spotify Section) --- */
.p7-focus-grid {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.focus-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.focus-logo-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.focus-logo-img:hover {
    opacity: 1;
}

.focus-text {
    text-align: left;
    width: 100%;
}

/* --- Focus List Styling --- */
.p7-focus-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.p7-focus-list li {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    line-height: 1.6;
    color: var(--text-main);
}

.p7-bullet {
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.4;
}

.p7-focus-list li strong {
    font-size: 24px;
    color: var(--text-main);
}

.p7-list-note {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-main);
}

.p7-spotify-note {
    font-size: 20px;
    margin-top: 2rem;
    padding: 20px 25px;
    background-color: color-mix(in srgb, var(--quaternary), transparent 70%);
    border-left: 4px solid var(--primary);
    width: fit-content;
    border-radius: 0 0 12px 0;
}

/* --- Logo Cloud (Platform Logos) --- */
.logo-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.logo-cloud-item {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-cloud-item:hover {
    transform: scale(1.1);
}

/* --- Quote Styling --- */
.quote-medium {
    font-size: 50px;
    line-height: 1.2;
    color: var(--text-main);
    text-align: center;
}

.quote-mark {
    color: var(--quaternary);
}

.p7-avatar-name {
    color: var(--secondary);
    font-style: italic;
}

/* ==================== SPONSORS SECTION ==================== */

.p7-sponsors-section {
    background-color: var(--tertiary);
    color: var(--white);
    padding: 80px 0 100px;
}

.p7-sponsors-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 50px;
}

.p7-sponsors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Sponsor Card Base */
.p7-sponsor-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 3px solid transparent;
}


.p7-sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.p7-sponsor-logo {
    height: 55px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.p7-sponsor-tagline {
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Specific Brand Colors */
.p7-sponsor-card.card-d7 {
    border-color: #17EAEA;
}
.p7-sponsor-card.card-d7 .p7-sponsor-tagline {
    color: #3333EA;
}
.p7-sponsor-card.card-d7:hover {
    border-width: 4px;
}
.p7-sponsor-card.card-d7:hover .p7-sponsor-tagline {
    color: #01019E;
}

.p7-sponsor-card.card-g7 {
    border-color: #E97E00;
}
.p7-sponsor-card.card-g7 .p7-sponsor-tagline {
    color: #B65800;
}
.p7-sponsor-card.card-g7:hover {
    border-width: 4px;
}
.p7-sponsor-card.card-g7:hover .p7-sponsor-tagline {
    color: #7C3400;
}

/* ==================== FAQ SECTION ==================== */

.p7-faq-section {
    background-color: var(--bg);
    padding: 100px 0;
}

.p7-faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 50px;
}

.p7-faq-container {
    max-width: 900px;
    margin: 0 auto;
    border-top: 4px solid var(--primary);
}

/* FAQ Item */
.p7-faq-item {
    border-bottom: 1px solid var(--grey);
}

.p7-faq-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.p7-faq-trigger:hover .p7-faq-question {
    color: var(--primary);
}

/* FAQ +/- Icon */
.p7-faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.p7-faq-icon::before,
.p7-faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--secondary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal bar (always visible) */
.p7-faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
}

/* Vertical bar (hidden when open) */
.p7-faq-icon::after {
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
}

/* When open, hide vertical bar */
.p7-faq-item.is-open .p7-faq-icon::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}

/* When open, change title colour */
.p7-faq-item.is-open .p7-faq-question {
    color: var(--secondary);
}

.p7-faq-question {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s ease;
}

/* FAQ Content */
.p7-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.p7-faq-inner {
    padding: 0 0 30px 39px; /* 24px icon + 15px gap */
}

.p7-faq-inner p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 1em;
}

.p7-faq-inner p:last-child {
    margin-bottom: 0;
}

/* ==================== ABOUT PAGE STYLES ==================== */

/* Container for the text (centered large column, left aligned text) */
.p7-about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* 2-column grid for the About metadata */
.p7-about-details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Changed from: 60% 35% */
    gap: 40px; /* Changed from: 5% */
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .p7-about-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Bullet Lists (Recycling the purple bullet style from homepage) */
.p7-about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.p7-about-list li {
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 30px; /* Space for bullet */
    position: relative;
    line-height: 1.6;
}

.p7-about-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
    line-height: 1;
}

/* Bullet Lists (Recycling the purple bullet style from homepage) */
.p7-about-list-dark {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.p7-about-list-dark li {
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 30px; /* Space for bullet */
    position: relative;
    line-height: 1.6;
}

.p7-about-list-dark li::before {
    content: "•";
    color: var(--quaternary);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
    line-height: 1;
}


/* Variant: White text for the footer section */
.p7-list-white li {
    color: var(--white);
}
.p7-list-white li strong {
    color: var(--white);
}

/* Brand link styling for About page */
.p7-about-list .brand-link-domain {
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.p7-about-list .brand-link-domain:hover {
    opacity: 0.8;
}

/* Specific Brand Colors for links */
.p7-about-list a.brand-link-domain {
    color: #17EAEA; /* Demand7 cyan by default */
}

/* Individual brand color classes */
.brand-link-d7 {
    color: #17EAEA !important;
}

.brand-link-g7 {
    color: #E97E00 !important;
}

.brand-link-a7 {
    color: #BFEA17 !important;
}

/* Notification Style CTA Box (Custom Overrides) */
/* Keeps shape of standard cta-box, changes background/color */
.cta-box.cta-notification-style {
    background-image: none !important;
    /* Uses the same color logic as homepage note */
    background-color: color-mix(in srgb, var(--quaternary), transparent 70%); 
    /* Ensures border is flat/colored like homepage note? Optional */
    border-left: 6px solid var(--primary);
}

/* Remove the dark overlay from the standard cta-box for this specific one */
.cta-box.cta-notification-style::before {
    display: none;
}


/* ==================== EPISODES ARCHIVE ==================== */

/* --- RENAMED ACCORDION STYLES (To avoid conflict) --- */
.p7-episode-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    /* Inherit font styles */
}

.p7-episode-trigger:hover .p7-faq-question {
    color: var(--primary);
}

.p7-episode-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.p7-episode-date {
    font-size: 14px; /* Smaller */
    color: var(--tertiary); /* Matches the title colour */
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Open state styling */
.p7-episode-item.is-open .p7-faq-icon::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}
.p7-episode-item.is-open .p7-faq-question {
    color: var(--secondary);
}

/* --- Search Box --- */
.p7-search-wrapper {
    position: relative;
    max-width: 600px;
    margin-top: 30px;
}

.p7-search-input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid var(--grey);
    border-radius: 12px;
    font-size: 18px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.p7-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.p7-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.7;
}

/* --- Search Stats Message --- */
.p7-search-stats {
    font-size: 15px;
    color: var(--secondary); /* Brand Purple */
    font-weight: 600;
    margin-top: 10px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 24px; /* Prevents layout jump */
}

.p7-search-stats.visible {
    opacity: 1;
}

/* --- Episode Content Grid (Fixed Image Size) --- */
.p7-episode-grid {
    display: grid;
    grid-template-columns: 1fr 30%; /* Fixed split */
    gap: 40px;
    align-items: start;
    width: 100%;
}

.p7-episode-info {
    min-width: 0;
}

.p7-episode-visual {
    display: flex;
    justify-content: flex-end;
}

.p7-episode-img {
    width: 100%; 
    max-width: 350px;
    height: auto;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Tags --- */
.p7-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.p7-tag {
    font-size: 14px;
    color: var(--tertiary);
    background-color: color-mix(in srgb, var(--quaternary), transparent 70%);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* --- Action Buttons --- */
.p7-episode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.p7-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-main);
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid var(--grey);
    background: var(--white);
}

.p7-btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.p7-btn-spotify:hover {
    border-color: #1DB954; 
    color: #1DB954;
}

.p7-pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .p7-episode-grid {
        grid-template-columns: 1fr;
    }
    .p7-episode-visual {
        order: -1;
        justify-content: center;
        margin-bottom: 20px;
    }
    .p7-episode-img {
        max-width: 150px;
    }
    .p7-btn-action {
        width: 100%;
        justify-content: center;
    }
}


/* ==================== RESPONSIVE STYLES ==================== */

@media (max-width: 900px) {
    /* Focus Grid */
    .p7-focus-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .focus-logo-img {
        max-width: 100px;
    }

    .focus-text {
        text-align: left;
        padding: 0 15px;
    }

    .p7-focus-list li {
        font-size: 20px;
        display: block;
        padding-left: 35px;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .p7-list-note {
        font-size: 16px;
        display: block;
        width: 100%;
    }

    .p7-spotify-note {
        font-size: 18px;
        text-align: left;
        margin-left: 15px;
    }

    .logo-cloud-grid {
        flex-direction: column;
    }

    /* Quote */
    .quote-medium {
        font-size: 36px;
    }

    /* Sponsors Grid */
    .p7-sponsors-grid {
        grid-template-columns: 1fr;
        width: 80%;
        margin: 0 auto;
        gap: 25px;
    }

    .p7-sponsor-card {
        padding: 30px 20px;
    }

    .p7-sponsors-title {
        font-size: 26px;
    }

    /* FAQ Section */
    .p7-faq-title {
        font-size: 32px;
    }

    .p7-faq-question {
        font-size: 18px;
    }

    .p7-faq-inner {
        padding-left: 0;
    }

    .p7-faq-inner p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .p7-focus-list li {
        font-size: 18px;
    }

    .p7-sponsor-logo {
        height: 45px;
    }

    .p7-sponsor-tagline {
        font-size: 16px;
    }
}