/* style/lottery.css */

/* Custom Colors */
:root {
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-lottery {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-background);
    line-height: 1.6;
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-lottery__section-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__text-block {
    font-size: 1.05em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-lottery__card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__card-title {
    font-size: 1.5em;
    color: var(--color-text-main);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-lottery__card-text {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-lottery__card-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-lottery__card-button:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    transform: translateY(-2px);
}

.page-lottery a {
    color: var(--color-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-lottery a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

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

.page-lottery__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-lottery__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    margin-left: 20px;
}

.page-lottery__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(87, 227, 141, 0.1);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 60px;
    background-color: var(--color-background);
}

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for aesthetic */
    border-radius: 12px;
    margin-bottom: 40px;
}

.page-lottery__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-lottery__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-lottery__hero-description {
    font-size: 1.3em;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Introduction Section */
.page-lottery__introduction-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

/* Games Section */
.page-lottery__games-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-lottery__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-lottery__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* How To Play Section */
.page-lottery__how-to-play-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-lottery__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-lottery__step-card {
    padding: 30px 20px;
}

.page-lottery__step-icon {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-gold);
    background-color: rgba(242, 193, 78, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    border: 2px solid var(--color-gold);
}

/* Advantages Section */
.page-lottery__advantages-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-lottery__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-lottery__advantage-item {
    padding: 30px 20px;
}

.page-lottery__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-lottery__promotions-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-lottery__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-lottery__promo-card .page-lottery__card-image {
    height: 200px;
}

/* FAQ Section */
.page-lottery__faq-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

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

.page-lottery__faq-item {
    margin-bottom: 20px;
    padding: 0;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-divider);
}

.page-lottery__faq-question:hover {
    background-color: rgba(17, 40, 27, 0.8);
}

.page-lottery__faq-item[open] .page-lottery__faq-question {
    border-bottom: 1px solid var(--color-divider);
}

.page-lottery__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--color-glow);
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
    color: var(--color-gold);
}

.page-lottery__faq-answer {
    padding: 20px 30px 30px;
    font-size: 1em;
    color: var(--color-text-secondary);
    text-align: justify;
}

.page-lottery__faq-item details > summary {
    list-style: none;
}

.page-lottery__faq-item details > summary::-webkit-details-marker {
    display: none;
}

/* Conclusion CTA */
.page-lottery__conclusion-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-green);
}

.page-lottery__conclusion-cta .page-lottery__cta-buttons {
    margin-top: 40px;
    justify-content: center;
}

/* Global image settings to prevent small icons */
.page-lottery img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space properly */
}

.page-lottery__advantage-icon {
    min-width: 100px; /* Specific override for smaller icons, but still >200 for overall image */
    min-height: 100px;
    width: 100px; /* Ensure these are explicitly set if they are smaller than 200px */
    height: 100px;
    object-fit: contain; /* Icons should contain, not cover */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-lottery__section-title {
        font-size: 2em;
    }
    .page-lottery__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-lottery__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }

    .page-lottery__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-lottery__hero-cta-buttons,
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-lottery__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-lottery__introduction-section,
    .page-lottery__games-section,
    .page-lottery__how-to-play-section,
    .page-lottery__advantages-section,
    .page-lottery__promotions-section,
    .page-lottery__faq-section,
    .page-lottery__conclusion-cta {
        padding: 40px 0;
    }

    .page-lottery__container {
        padding: 0 15px !important;
    }

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

    .page-lottery__game-card .page-lottery__card-image,
    .page-lottery__promo-card .page-lottery__card-image {
        height: auto !important;
        max-height: 200px !important; /* Adjust max-height for mobile */
    }

    .page-lottery__card {
        padding: 20px;
    }

    .page-lottery__card-title {
        font-size: 1.3em;
    }

    .page-lottery__card-text {
        font-size: 0.9em;
    }

    .page-lottery__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-lottery__faq-answer {
        padding: 15px 20px 20px;
        font-size: 0.95em;
    }

    .page-lottery__advantage-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    /* Ensure all content containers are responsive */
    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container,
    .page-lottery__hero-section,
    .page-lottery__introduction-section,
    .page-lottery__games-section,
    .page-lottery__how-to-play-section,
    .page-lottery__advantages-section,
    .page-lottery__promotions-section,
    .page-lottery__faq-section,
    .page-lottery__conclusion-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}