/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    padding-top: var(--header-offset, 120px); /* Ensures content is below the fixed header */
    background-color: #FFFFFF; /* Default light background as per shared.css expectation */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px 40px;
    text-align: center;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
}

.page-faq__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-faq__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-faq__button {
    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, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.page-faq__button--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000;
}

.page-faq__button--primary:hover {
    background-color: #FCBC45; /* Slightly darker yellow */
    transform: translateY(-2px);
}

.page-faq__button--secondary {
    background-color: #FFFFFF; /* Register color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-faq__button--secondary:hover {
    background-color: #FCBC45;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #555555;
}

.page-faq__keyword {
    font-weight: bold;
    color: #FCBC45;
}

.page-faq__text-link {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__text-link:hover {
    color: #FCBC45; /* Darker shade of yellow on hover */
    text-decoration: underline;
}

/* Accordion Styles */
.page-faq__accordion-container {
    margin-top: 40px;
}

.page-faq__accordion-item {
    background-color: #F8F8F8;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-item[open] {
    background-color: #FFFFFF;
    border-color: #FCBC45;
}

.page-faq__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    user-select: none;
    border-bottom: 1px solid transparent; /* Placeholder for open state */
}

.page-faq__accordion-item[open] .page-faq__accordion-header {
    border-bottom-color: #E0E0E0;
}

.page-faq__accordion-title {
    font-size: 1.4em;
    color: #000000;
    margin: 0;
    font-weight: 600;
    flex-grow: 1;
    text-align: left;
}

.page-faq__accordion-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FCBC45' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E"); /* Plus icon */
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.page-faq__accordion-item[open] .page-faq__accordion-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FCBC45' viewBox='0 0 24 24'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E"); /* Minus icon */
    transform: rotate(0deg); /* No rotation needed for separate icons */
}

.page-faq__accordion-content {
    padding: 20px 25px 30px;
    font-size: 1.05em;
    color: #555555;
    border-top: 1px solid #E0E0E0;
}

.page-faq__accordion-content h4.page-faq__sub-title {
    font-size: 1.2em;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-faq__accordion-content p {
    margin-bottom: 15px;
}

.page-faq__accordion-content p:last-child {
    margin-bottom: 0;
}

/* Action Card within Accordion */
.page-faq__action-card {
    background-color: #000000; /* Dark background for call to action */
    color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__action-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

.page-faq__button--install,
.page-faq__button--login,
.page-faq__button--games,
.page-faq__button--promo {
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 6px;
}

.page-faq__button--install:hover,
.page-faq__button--login:hover,
.page-faq__button--games:hover,
.page-faq__button--promo:hover {
    background-color: #FCBC45; /* Darker yellow */
    transform: translateY(-2px);
}

.page-faq__button--info {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 6px;
}

.page-faq__button--info:hover {
    background-color: #FCBC45;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Images within Accordion */
.page-faq__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-faq__image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__image--left {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.page-faq__image--right {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Additional Resources Section */
.page-faq__additional-resources {
    padding: 60px 20px;
    background-color: #F0F0F0;
    margin-top: 60px;
    border-radius: 12px;
    text-align: center;
}

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

.page-faq__resource-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-faq__resource-card:hover {
    transform: translateY(-5px);
}

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

.page-faq__resource-title {
    font-size: 1.2em;
    color: #000000;
    margin: 20px 20px 10px;
    font-weight: 600;
}

.page-faq__resource-title .page-faq__text-link {
    color: #000000;
    text-decoration: none;
}

.page-faq__resource-title .page-faq__text-link:hover {
    color: #FCBC45;
    text-decoration: underline;
}

.page-faq__resource-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px;
    flex-grow: 1; /* Pushes content to bottom */
}

/* Contact Promo Section */
.page-faq__contact-promo {
    background-color: #000000; /* Dark background */
    color: #FFFFFF;
    padding: 60px 20px;
    margin-top: 60px;
    border-radius: 12px;
    text-align: center;
}

.page-faq__contact-promo .page-faq__section-title {
    color: #FCBC45;
}

.page-faq__contact-promo .page-faq__section-intro {
    color: #E0E0E0;
}

.page-faq__contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-faq__button--contact {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
}

.page-faq__button--contact:hover {
    background-color: #FCBC45;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-faq__button--register-bottom {
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
}

.page-faq__button--register-bottom:hover {
    background-color: #FCBC45;
    transform: translateY(-2px);
}

/* Clearfix for floated images */
.page-faq__accordion-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__hero-description {
        font-size: 1.2em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__accordion-title {
        font-size: 1.2em;
    }
    .page-faq__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-faq__image--left,
    .page-faq__image--right {
        float: none;
        margin: 25px auto 0;
        display: block;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px 30px;
    }
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__button {
        width: 100%;
        max-width: 300px;
    }
    .page-faq__content-area,
    .page-faq__additional-resources,
    .page-faq__contact-promo {
        padding: 40px 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
    }
    .page-faq__accordion-header {
        padding: 15px 20px;
    }
    .page-faq__accordion-title {
        font-size: 1.1em;
    }
    .page-faq__accordion-content {
        padding: 15px 20px 20px;
        font-size: 0.95em;
    }
    .page-faq__accordion-content h4.page-faq__sub-title {
        font-size: 1.1em;
    }
    .page-faq__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-faq__contact-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__button--contact,
    .page-faq__button--register-bottom {
        width: 100%;
        max-width: 300px;
    }
    /* Mobile image overflow prevention */
    .page-faq img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure min size on mobile too */
        min-height: 200px; /* Ensure min size on mobile too */
    }
    /* Content area should not cause horizontal scroll */
    .page-faq {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__accordion-title {
        font-size: 1em;
    }
    .page-faq__button {
        font-size: 0.9em;
    }
}