/* style/index-app-features.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-color: #0A0A0A;
    --card-background-color: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-index-app-features {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Body background is dark, so text is light */
    background-color: var(--background-color);
}

.page-index-app-features__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more at bottom */
    background-color: var(--background-color);
    text-align: center;
}

.page-index-app-features__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-index-app-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-index-app-features__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-index-app-features__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-index-app-features__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

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

.page-index-app-features__btn-primary,
.page-index-app-features__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-app-features__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index-app-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-index-app-features__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-index-app-features__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index-app-features__section {
    padding: 60px 20px;
    text-align: center;
}

.page-index-app-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-index-app-features__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-index-app-features__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-app-features__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-index-app-features__image-left {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-index-app-features__text-content {
    flex: 1.5;
}

.page-index-app-features__content-heading {
    font-size: 1.8em;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-index-app-features__text-block {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-index-app-features__mt-20 {
    margin-top: 20px;
}

.page-index-app-features__gaming-portfolio {
    background-color: var(--card-background-color);
}

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

.page-index-app-features__game-card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-app-features__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index-app-features__card-title {
    font-size: 1.5em;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-index-app-features__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-index-app-features__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index-app-features__btn-text:hover {
    color: var(--secondary-color);
}

.page-index-app-features__centered-cta {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-index-app-features__centered-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-app-features__promo-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-index-app-features__promo-card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-app-features__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

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

.page-index-app-features__feature-card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-app-features__download-cta {
    background-color: var(--card-background-color);
}

.page-index-app-features__download-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-index-app-features__text-area {
    flex: 1.5;
}

.page-index-app-features__image-area {
    flex: 1;
    min-width: 300px;
}

.page-index-app-features__download-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-app-features__download-steps {
    margin-top: 30px;
}

.page-index-app-features__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.page-index-app-features__step-number {
    background: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.page-index-app-features__step-text {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-main-color);
}

.page-index-app-features__faq-section {
    background-color: var(--background-color);
}

.page-index-app-features__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-index-app-features__faq-item {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-app-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--card-background-color);
    transition: background-color 0.3s ease;
}

.page-index-app-features__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-index-app-features__faq-title {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin: 0;
}

.page-index-app-features__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-index-app-features__faq-item.active .page-index-app-features__faq-toggle {
    transform: rotate(45deg);
}

.page-index-app-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-index-app-features__faq-item.active .page-index-app-features__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 30px 30px;
}

.page-index-app-features__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
}

.page-index-app-features__final-cta-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-app-features__image-text-layout {
        flex-direction: column;
        text-align: center;
    }

    .page-index-app-features__image-left {
        max-width: 600px;
        margin: 0 auto;
    }

    .page-index-app-features__text-content {
        margin-top: 30px;
    }

    .page-index-app-features__download-content {
        flex-direction: column-reverse;
    }

    .page-index-app-features__image-area {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-index-app-features__hero-section {
        padding: 10px 15px 40px;
    }

    .page-index-app-features__main-title {
        font-size: 2em;
    }

    .page-index-app-features__hero-description {
        font-size: 1em;
    }

    .page-index-app-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .page-index-app-features__btn-primary,
    .page-index-app-features__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-app-features__section {
        padding: 40px 15px;
    }

    .page-index-app-features__section-title {
        font-size: 2em;
    }

    .page-index-app-features__section-description {
        font-size: 0.95em;
    }

    .page-index-app-features__image-left,
    .page-index-app-features__centered-image,
    .page-index-app-features__promo-image,
    .page-index-app-features__download-image,
    .page-index-app-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    
    .page-index-app-features__container,
    .page-index-app-features__game-card,
    .page-index-app-features__promo-card,
    .page-index-app-features__feature-card,
    .page-index-app-features__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-app-features__faq-question {
        padding: 15px 20px;
    }

    .page-index-app-features__faq-answer {
        padding: 0 20px;
    }

    .page-index-app-features__faq-item.active .page-index-app-features__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-index-app-features__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .page-index-app-features__step-number {
        margin-bottom: 5px;
    }

    .page-index-app-features__step-text {
        font-size: 0.9em;
    }
}