/* style/fortune-mouse.css */

/* Base Styles for page-fortune-mouse */
.page-fortune-mouse {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333); /* Default text color from palette */
    background-color: var(--bg-color, #F5F7FA); /* Default background color from palette */
}

/* Contrast Fixes based on section background */
.page-fortune-mouse__dark-bg {
    background-color: #E53935; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-fortune-mouse__dark-bg .page-fortune-mouse__section-title {
    color: #ffffff; /* Ensure titles are white on dark backgrounds */
}

/* Hero Section */
.page-fortune-mouse__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small decorative top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #E53935; /* Fallback background for hero */
}

.page-fortune-mouse__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for aesthetic reasons */
    filter: none; /* No CSS filter */
}

.page-fortune-mouse__hero-content {
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 0 20px;
}

.page-fortune-mouse__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    color: #ffffff; /* White title on hero section */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-fortune-mouse__description {
    font-size: 1.1rem;
    color: #f0f0f0; /* Slightly off-white for description */
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-fortune-mouse__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fortune-mouse__btn-primary,
.page-fortune-mouse__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-fortune-mouse__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-fortune-mouse__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-fortune-mouse__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-fortune-mouse__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Video Section */
.page-fortune-mouse__video-section {
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--bg-color, #F5F7FA);
}

.page-fortune-mouse__video-container {
    width: 100%; /* Ensure width: 100% is present for desktop */
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fortune-mouse__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #000;
}

.page-fortune-mouse__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    filter: none; /* No CSS filter */
}

.page-fortune-mouse__video-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* Content Sections */
.page-fortune-mouse__content-section {
    padding: 60px 20px;
}

.page-fortune-mouse__content-area {
    max-width: 1200px;
    margin: 0 auto;
}

.page-fortune-mouse__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #E53935; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-fortune-mouse__content-area p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

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

.page-fortune-mouse__feature-card {
    background-color: var(--card-bg, #FFFFFF);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fortune-mouse__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below */
    filter: none; /* No CSS filter */
}

.page-fortune-mouse__feature-title {
    font-size: 1.5rem;
    color: #E53935;
    margin-bottom: 15px;
}

/* Advantages List */
.page-fortune-mouse__advantages-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-fortune-mouse__advantages-list li {
    background-color: var(--card-bg, #FFFFFF);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    color: #333333;
}

.page-fortune-mouse__advantages-list li::before {
    content: '✓';
    color: #FF5A4F;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Guide List */
.page-fortune-mouse__guide-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-fortune-mouse__guide-list li {
    background-color: var(--card-bg, #FFFFFF);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    color: #333333;
}

.page-fortune-mouse__guide-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter) ".";
    color: #E53935;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Game Cards */
.page-fortune-mouse__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-fortune-mouse__game-card {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fortune-mouse__game-card a {
    text-decoration: none;
    color: inherit;
}

.page-fortune-mouse__game-image {
    width: 100%;
    height: 180px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
    filter: none; /* No CSS filter */
}

.page-fortune-mouse__game-title {
    font-size: 1.3rem;
    color: #E53935;
    margin: 15px 10px 10px;
}

.page-fortune-mouse__game-card p {
    font-size: 0.95rem;
    color: #666666;
    padding: 0 15px 20px;
    margin: 0;
}


/* FAQ Section */
.page-fortune-mouse__faq-section {
    padding: 60px 20px;
}

.page-fortune-mouse__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-fortune-mouse__faq-item {
    background-color: var(--card-bg, #FFFFFF);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.page-fortune-mouse__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-fortune-mouse__faq-question::-webkit-details-marker {
    display: none;
}

.page-fortune-mouse__faq-item[open] > .page-fortune-mouse__faq-question {
    background-color: #E53935;
    color: #ffffff;
    border-bottom-color: #E53935;
}

.page-fortune-mouse__faq-item[open] > .page-fortune-mouse__faq-question .page-fortune-mouse__faq-toggle {
    color: #ffffff;
}

.page-fortune-mouse__faq-question:hover {
    background-color: #FF5A4F;
    color: #ffffff;
}

.page-fortune-mouse__faq-question:hover .page-fortune-mouse__faq-toggle {
    color: #ffffff;
}

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

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

.page-fortune-mouse__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #555555;
    background-color: #ffffff;
}

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

/* Final CTA Section */
.page-fortune-mouse__cta-final-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #E53935;
    color: #ffffff;
}

.page-fortune-mouse__cta-final-section .page-fortune-mouse__section-title {
    color: #ffffff;
}

.page-fortune-mouse__cta-final-section .page-fortune-mouse__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fortune-mouse__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-fortune-mouse__section-title {
        font-size: 1.8rem;
    }
}

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

    .page-fortune-mouse__hero-section {
        padding-bottom: 40px;
    }

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

    .page-fortune-mouse__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-fortune-mouse__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .page-fortune-mouse__btn-primary,
    .page-fortune-mouse__btn-secondary {
        padding: 12px 20px;
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fortune-mouse__video-section,
    .page-fortune-mouse__content-section,
    .page-fortune-mouse__faq-section,
    .page-fortune-mouse__cta-final-section {
        padding: 40px 15px; /* Adjust padding for mobile */
    }
    
    .page-fortune-mouse__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-fortune-mouse__feature-grid,
    .page-fortune-mouse__game-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fortune-mouse__feature-image,
    .page-fortune-mouse__game-image {
        height: 200px; /* Adjust image height for mobile */
    }

    .page-fortune-mouse__advantages-list li,
    .page-fortune-mouse__guide-list li,
    .page-fortune-mouse__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-fortune-mouse__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image adaptation */
    .page-fortune-mouse img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fortune-mouse__section,
    .page-fortune-mouse__card,
    .page-fortune-mouse__container,
    .page-fortune-mouse__hero-section,
    .page-fortune-mouse__video-section,
    .page-fortune-mouse__content-section,
    .page-fortune-mouse__faq-section,
    .page-fortune-mouse__cta-final-section,
    .page-fortune-mouse__video-container,
    .page-fortune-mouse__video-wrapper,
    .page-fortune-mouse__cta-buttons,
    .page-fortune-mouse__button-group,
    .page-fortune-mouse__btn-container,
    .page-fortune-mouse__feature-grid,
    .page-fortune-mouse__game-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Crucial for preventing horizontal scroll */
    }

    /* Video specific mobile adaptation */
    .page-fortune-mouse video,
    .page-fortune-mouse__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure flex-wrap for button groups if they are horizontal */
    .page-fortune-mouse__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px; /* Adjust gap for mobile */
    }
}

/* No CSS filters for images */
.page-fortune-mouse img {
    filter: none;
}