/* style/player-stories.css */

/* Custom Colors */
:root {
    --player-stories-bg-color: #08160F;
    --player-stories-card-bg: #11271B;
    --player-stories-text-main: #F2FFF6;
    --player-stories-text-secondary: #A7D9B8;
    --player-stories-border-color: #2E7A4E;
    --player-stories-glow-color: #57E38D;
    --player-stories-gold-color: #F2C14E;
    --player-stories-divider-color: #1E3A2A;
    --player-stories-deep-green: #0A4B2C;
    --player-stories-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --primary-brand-color: #11A84E;
    --secondary-brand-color: #22C768;
}

/* Base styles for the page content */
.page-player-stories {
    background-color: var(--player-stories-bg-color); /* Dark background */
    color: var(--player-stories-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Main content container for max-width */
.page-player-stories__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-player-stories__section-title {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive H2 */
    color: var(--player-stories-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-player-stories__section-description {
    font-size: 1.1rem;
    color: var(--player-stories-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-player-stories__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--player-stories-deep-green); /* A slightly different dark green for hero background */
}

.page-player-stories__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and content */
}

.page-player-stories__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-player-stories__main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem); /* Responsive H1 */
    color: var(--player-stories-gold-color); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Soft glow */
}

.page-player-stories__hero-description {
    font-size: 1.2rem;
    color: var(--player-stories-text-main);
    margin-bottom: 30px;
}

.page-player-stories__hero-cta {
    margin-top: 30px;
}

/* Primary Button Style */
.page-player-stories__btn-primary {
    display: inline-block;
    background: var(--player-stories-btn-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-player-stories__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Secondary Button Style */
.page-player-stories__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--player-stories-glow-color); /* Use glow color for text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--player-stories-glow-color); /* Border with glow color */
    cursor: pointer;
    margin-left: 20px; /* Space between primary and secondary */
}

.page-player-stories__btn-secondary:hover {
    background: var(--player-stories-glow-color);
    color: var(--player-stories-bg-color); /* Dark text on hover */
    transform: translateY(-2px);
}

/* Video Section */
.page-player-stories__video-section {
    padding: 60px 0;
    background-color: var(--player-stories-bg-color);
    text-align: center;
}

.page-player-stories__video-container {
    width: 100%; /* Desktop width */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-player-stories__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-player-stories__video-wrapper .page-player-stories__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-player-stories__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute; /* Allows video to be clickable */
    top: 0;
    left: 0;
    z-index: 1; /* Ensure link is above video controls */
}

/* Stories Grid Section */
.page-player-stories__stories-grid-section {
    padding: 60px 0;
    background-color: var(--player-stories-card-bg); /* Slightly lighter dark background for this section */
}

.page-player-stories__stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-player-stories__story-card {
    background-color: var(--player-stories-bg-color); /* Darker background for individual cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--player-stories-divider-color);
}

.page-player-stories__story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-player-stories__story-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-player-stories__card-content {
    padding: 25px;
}

.page-player-stories__story-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-player-stories__story-title a {
    color: var(--player-stories-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-player-stories__story-title a:hover {
    color: var(--player-stories-glow-color);
}

.page-player-stories__story-excerpt {
    font-size: 1rem;
    color: var(--player-stories-text-secondary);
    margin-bottom: 20px;
}

.page-player-stories__story-button {
    display: inline-block;
    color: var(--player-stories-glow-color);
    text-decoration: none;
    border: 1px solid var(--player-stories-glow-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-player-stories__story-button:hover {
    background-color: var(--player-stories-glow-color);
    color: var(--player-stories-bg-color);
}

/* Why Zomclub Section */
.page-player-stories__why-zomclub-section {
    padding: 60px 0;
    background-color: var(--player-stories-bg-color);
}

.page-player-stories__why-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-player-stories__why-list {
    flex: 1;
    min-width: 300px;
}

.page-player-stories__why-item {
    background-color: var(--player-stories-card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--player-stories-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-player-stories__why-item-title {
    font-size: 1.3rem;
    color: var(--player-stories-glow-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-player-stories__why-item-text {
    font-size: 1rem;
    color: var(--player-stories-text-secondary);
}

.page-player-stories__why-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Adjust for layout */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

/* CTA Bottom Section */
.page-player-stories__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--player-stories-deep-green); /* Use deep green for a strong CTA */
    text-align: center;
}

.page-player-stories__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* FAQ Section */
.page-player-stories__faq-section {
    padding: 60px 0;
    background-color: var(--player-stories-bg-color);
}

.page-player-stories__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-player-stories__faq-item {
    background-color: var(--player-stories-card-bg);
    border: 1px solid var(--player-stories-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-player-stories__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--player-stories-text-main);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1); /* Slight overlay for summary */
    transition: background-color 0.3s ease;
}

.page-player-stories__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.page-player-stories__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--player-stories-glow-color);
}

/* Style for details/summary native behavior */
.page-player-stories__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-player-stories__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit */
}

.page-player-stories__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--player-stories-text-secondary);
    line-height: 1.7;
}

.page-player-stories__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-player-stories__why-content {
        flex-direction: column;
        text-align: center;
    }
    .page-player-stories__why-image {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-player-stories__hero-section {
        padding-bottom: 40px;
    }

    .page-player-stories__hero-image {
        margin-bottom: 20px;
    }

    .page-player-stories__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-player-stories__hero-description {
        font-size: 1rem;
    }

    .page-player-stories__btn-primary,
    .page-player-stories__btn-secondary,
    .page-player-stories a[class*="button"],
    .page-player-stories a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add vertical spacing */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-player-stories__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0; /* Remove gap when stacked */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-player-stories__cta-buttons a:last-child {
        margin-bottom: 0; /* No bottom margin for the last button */
    }

    .page-player-stories__video-section,
    .page-player-stories__stories-grid-section,
    .page-player-stories__why-zomclub-section,
    .page-player-stories__cta-bottom-section,
    .page-player-stories__faq-section {
        padding: 40px 0;
    }

    .page-player-stories__container,
    .page-player-stories__video-container,
    .page-player-stories__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-player-stories img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-player-stories video,
    .page-player-stories__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-player-stories__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-player-stories__stories-grid {
        grid-template-columns: 1fr;
    }

    .page-player-stories__story-image {
        height: auto; /* Allow image height to adjust for mobile */
    }

    .page-player-stories__why-image {
        max-width: 100%;
    }

    .page-player-stories__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-player-stories__faq-answer {
        padding: 0 20px 15px;
    }
}