/* style/download.css */

/* General styles for the page-download scope */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the main content against dark body bg */
    background-color: transparent; /* Main content will be transparent to show body background */
}

.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-download__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast enforcement based on body background (#0a0a0a - dark) */
/* Light text on dark backgrounds, dark text on light backgrounds */
.page-download__dark-bg {
    background-color: #26A9E0; /* Brand primary color - dark enough */
    color: #ffffff;
    padding: 60px 0;
}

.page-download__light-bg {
    background-color: #ffffff; /* Auxiliary color - light */
    color: #333333;
    padding: 60px 0;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    padding: 10px 0 60px 0; /* body handles header offset, this is decorative top padding */
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-download__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-sizing: border-box;
}

.page-download__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-download__description {
    font-size: clamp(1.1em, 2vw, 1.3em);
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-download__cta-buttons--center {
    margin-top: 40px;
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-download__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-download__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-download__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Features Section */
.page-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-download__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust size as needed for visual balance */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-download__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-download__feature-text {
    font-size: 1em;
    color: #555555;
}

/* How to Download Section */
.page-download__how-to-download-section .page-download__section-title,
.page-download__how-to-download-section .page-download__section-description {
    color: #ffffff;
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-download__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-download__step-text {
    font-size: 0.95em;
    color: #d0d0d0;
}

/* Games Overview Section */
.page-download__games-overview-section .page-download__section-title,
.page-download__games-overview-section .page-download__section-description {
    color: #333333;
}

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

.page-download__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

.page-download__game-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 15px 15px 5px 15px;
    color: #26A9E0;
}

.page-download__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-download__game-title a:hover {
    text-decoration: underline;
}

.page-download__game-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 15px 15px;
}

/* Security Section */
.page-download__security-section .page-download__section-title,
.page-download__security-section .page-download__section-description {
    color: #ffffff;
}

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

.page-download__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__security-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-download__security-text {
    font-size: 0.95em;
    color: #d0d0d0;
}

/* FAQ Section */
.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-description {
    color: #333333;
}

.page-download__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__faq-item {
    background-color: #f8f8f8;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-download__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0;
}

.page-download__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-download__faq-qtext {
    flex-grow: 1;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-download__faq-answer {
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 1em;
    color: #555555;
}

/* Final CTA Section */
.page-download__final-cta-section .page-download__section-title,
.page-download__final-cta-section .page-download__section-description {
    color: #ffffff;
}

.page-download__cta-content {
    text-align: center;
    padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-section {
        min-height: 500px;
    }
    .page-download__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-download__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }

    /* General container padding for mobile */
    .page-download__container {
        padding: 0 15px;
    }

    .page-download__hero-section {
        padding: 10px 0 40px 0;
        min-height: 400px;
    }

    .page-download__hero-content {
        padding: 15px;
    }

    .page-download__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-download__description {
        font-size: clamp(1em, 4vw, 1.1em);
        margin-bottom: 25px;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-download__section-title {
        font-size: 1.8em;
    }

    .page-download__section-description {
        font-size: 1em;
    }

    .page-download__features-grid,
    .page-download__download-steps,
    .page-download__games-grid,
    .page-download__security-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile image responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers for images/videos/buttons are responsive */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-section,
    .page-download__features-section,
    .page-download__how-to-download-section,
    .page-download__games-overview-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__final-cta-section,
    .page-download__cta-buttons,
    .page-download__features-grid,
    .page-download__download-steps,
    .page-download__games-grid,
    .page-download__security-points,
    .page-download__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific overrides for padding if sections have 0 padding-left/right by default */
    .page-download__hero-section,
    .page-download__features-section,
    .page-download__how-to-download-section,
    .page-download__games-overview-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__final-cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-download__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-download__features-grid > *,
    .page-download__download-steps > *,
    .page-download__games-grid > *,
    .page-download__security-points > * {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-download__faq-item summary {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness - if any */
    .page-download video,
    .page-download__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-download__video-section {
        padding-top: 10px !important; /* body already has padding-top */
    }
}

/* Ensure all images have width/height attributes in HTML for CLS */
/* This CSS ensures they respect their container and are not tiny */
.page-download img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* default for content images */
}

/* No CSS filter allowed for images */
.page-download img {
    filter: none;
}

/* Content area image size lower bound */
.page-download__features-section img,
.page-download__how-to-download-section img,
.page-download__games-overview-section img,
.page-download__security-section img {
  min-width: 200px;
  min-height: 200px;
}