/* style/fortune-mouse.css */

/* Base styles for the page-fortune-mouse scope */
.page-fortune-mouse {
    font-family: 'Roboto', sans-serif; /* Example font */
    line-height: 1.6;
    color: #FFF5E1; /* Text Main color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

.page-fortune-mouse__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-fortune-mouse__section-title {
    font-size: 2.8em;
    color: #FFD86A; /* Gold color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 216, 106, 0.5); /* Subtle glow */
}

.page-fortune-mouse__subsection-title {
    font-size: 2em;
    color: #FFF5E1; /* Text Main color */
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-fortune-mouse p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-fortune-mouse a {
    color: #FFD86A; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fortune-mouse a:hover {
    color: #E6B800; /* Darker gold on hover */
}

/* Buttons */
.page-fortune-mouse__btn-primary,
.page-fortune-mouse__btn-secondary,
.page-fortune-mouse__btn-text {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    max-width: 100%; /* Ensure button does not overflow */
    box-sizing: border-box;
}

.page-fortune-mouse__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: none;
    box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-fortune-mouse__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

.page-fortune-mouse__btn-secondary {
    background-color: transparent;
    color: #FFD86A; /* Gold text */
    border: 2px solid #FFD86A; /* Gold border */
}

.page-fortune-mouse__btn-secondary:hover {
    background-color: #FFD86A;
    color: #7A0E0E; /* Deep Red text on gold hover */
}

.page-fortune-mouse__btn-text {
    background: none;
    border: none;
    padding: 0;
    color: #FFD86A;
    text-decoration: underline;
    font-size: 1em;
}

.page-fortune-mouse__btn-text:hover {
    color: #E6B800;
}

/* Hero Section */
.page-fortune-mouse__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    overflow: hidden;
    min-height: 600px;
}

.page-fortune-mouse__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 70vh; /* Limit hero image height */
}

.page-fortune-mouse__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%); /* Gradient for readability */
    width: 100%;
    box-sizing: border-box;
    position: relative; /* Ensure text is above image but not overlapping its main area */
    z-index: 1;
    margin-top: -100px; /* Pull content slightly over the image for visual flow */
    padding-top: 100px;
}

.page-fortune-mouse__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #FFD86A; /* Gold for H1 */
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 216, 106, 0.7);
    line-height: 1.2;
}

.page-fortune-mouse__hero-description {
    font-size: 1.3em;
    color: #FFF5E1;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

/* General Section Styles */
.page-fortune-mouse__dark-section {
    background-color: #B71C1C; /* Background color for dark sections */
    padding: 60px 0;
}

.page-fortune-mouse__about-game-section,
.page-fortune-mouse__how-to-play-section,
.page-fortune-mouse__profut-experience-section,
.page-fortune-mouse__other-games-section,
.page-fortune-mouse__tips-section,
.page-fortune-mouse__faq-section,
.page-fortune-mouse__cta-section {
    padding: 60px 0;
}

.page-fortune-mouse__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.page-fortune-mouse__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-fortune-mouse__text-block {
    flex: 1;
    min-width: 300px;
}

.page-fortune-mouse__image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fortune-mouse__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Cards */
.page-fortune-mouse__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fortune-mouse__card {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensure cards have similar height */
}

.page-fortune-mouse__card-title {
    font-size: 1.6em;
    color: #FFD86A; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-fortune-mouse__card p {
    color: #FFF5E1;
    font-size: 1em;
    flex-grow: 1;
}

/* Other Games Section */
.page-fortune-mouse__section-description {
    text-align: center;
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #FFF5E1;
}

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

.page-fortune-mouse__game-card {
    background-color: #D32F2F;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.page-fortune-mouse__game-title {
    font-size: 1.5em;
    color: #FFD86A;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-fortune-mouse__game-card p {
    color: #FFF5E1;
    font-size: 1em;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-fortune-mouse__game-card .page-fortune-mouse__btn-text {
    margin-top: auto; /* Push button to bottom */
    margin-bottom: 20px;
    align-self: center;
}

.page-fortune-mouse__cta-buttons--center {
    margin-top: 50px;
}

/* FAQ Section */
.page-fortune-mouse__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fortune-mouse__faq-item {
    background-color: #D32F2F;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-fortune-mouse__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    font-weight: 600;
    color: #FFD86A;
    position: relative;
    transition: background-color 0.3s ease;
}

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

.page-fortune-mouse__faq-item summary:hover {
    background-color: #7A0E0E; /* Deep Red on hover */
}

.page-fortune-mouse__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-fortune-mouse__faq-item[open] .page-fortune-mouse__faq-toggle {
    transform: rotate(45deg);
}

.page-fortune-mouse__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #FFF5E1;
}

.page-fortune-mouse__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Section */
.page-fortune-mouse__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #C91F17; /* Main color */
    border-top: 5px solid #FFD86A; /* Gold border */
    border-bottom: 5px solid #FFD86A;
}

.page-fortune-mouse__cta-title {
    font-size: 3em;
    color: #FFD86A;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 216, 106, 0.6);
}

.page-fortune-mouse__cta-description {
    font-size: 1.4em;
    color: #FFF5E1;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fortune-mouse__hero-title {
        font-size: clamp(2em, 4vw, 3em);
    }

    .page-fortune-mouse__hero-description {
        font-size: 1.1em;
    }

    .page-fortune-mouse__section-title {
        font-size: 2.2em;
    }

    .page-fortune-mouse__subsection-title {
        font-size: 1.8em;
    }

    .page-fortune-mouse__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-fortune-mouse__container {
        padding: 0 15px;
    }

    .page-fortune-mouse__hero-image {
        max-height: 50vh;
    }

    .page-fortune-mouse__hero-content {
        margin-top: -80px;
        padding-top: 80px;
    }

    .page-fortune-mouse__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-fortune-mouse__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fortune-mouse__btn-primary,
    .page-fortune-mouse__btn-secondary,
    .page-fortune-mouse a[class*="button"],
    .page-fortune-mouse a[class*="btn"] {
        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-fortune-mouse__cta-buttons,
    .page-fortune-mouse__button-group,
    .page-fortune-mouse__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure buttons stack */
    }

    .page-fortune-mouse__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-fortune-mouse__subsection-title {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-fortune-mouse p,
    .page-fortune-mouse__section-description,
    .page-fortune-mouse__faq-answer {
        font-size: 1em;
    }

    .page-fortune-mouse__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-fortune-mouse__content-wrapper--reversed {
        flex-direction: column; /* Stack even when reversed */
    }

    .page-fortune-mouse__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fortune-mouse__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fortune-mouse__game-image {
        height: auto; /* Allow height to adjust */
    }

    .page-fortune-mouse__cta-title {
        font-size: 2em;
    }

    .page-fortune-mouse__cta-description {
        font-size: 1.1em;
    }

    .page-fortune-mouse__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    /* Fixed for video sections if they were to exist */
    .page-fortune-mouse__video-section {
        padding-top: 10px !important;
    }
    .page-fortune-mouse video,
    .page-fortune-mouse__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fortune-mouse__video-section,
    .page-fortune-mouse__video-container,
    .page-fortune-mouse__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-fortune-mouse__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure all images follow responsive rules for mobile */
@media (max-width: 768px) {
    .page-fortune-mouse img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fortune-mouse__section,
    .page-fortune-mouse__card,
    .page-fortune-mouse__container,
    .page-fortune-mouse__content-wrapper,
    .page-fortune-mouse__games-grid,
    .page-fortune-mouse__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fortune-mouse__hero-section,
    .page-fortune-mouse__about-game-section,
    .page-fortune-mouse__how-to-play-section,
    .page-fortune-mouse__profut-experience-section,
    .page-fortune-mouse__other-games-section,
    .page-fortune-mouse__tips-section,
    .page-fortune-mouse__faq-section,
    .page-fortune-mouse__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
}