/* style/promotions-daily-rebate.css */

/* Custom properties from provided color scheme */
:root {
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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;
}

/* Base styles for the page content */
.page-promotions-daily-rebate {
    background-color: var(--color-background); /* Using custom background color */
    color: var(--color-text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
    /* body already handles padding-top from shared.css */
}

/* Hero Section */
.page-promotions-daily-rebate__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-deep-green); /* Fallback/container color */
    overflow: hidden;
}

.page-promotions-daily-rebate__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
    /* HTML width/height attributes are 1920x1080, CSS will make it responsive */
}

.page-promotions-daily-rebate__hero-content {
    max-width: 900px;
    margin: 40px auto 60px auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions-daily-rebate__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gold); /* Using gold for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-promotions-daily-rebate__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary); /* Secondary text color */
    margin-bottom: 30px;
}

.page-promotions-daily-rebate__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Buttons */
.page-promotions-daily-rebate__btn-primary,
.page-promotions-daily-rebate__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: inline-block; /* For proper padding and width */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-promotions-daily-rebate__btn-primary {
    background: var(--color-button-gradient); /* Custom button gradient */
    color: var(--color-text-main); /* Light text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-promotions-daily-rebate__btn-secondary {
    background-color: transparent;
    color: var(--color-glow); /* Glow color for secondary button text */
    border: 2px solid var(--color-glow);
}

.page-promotions-daily-rebate__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background); /* Dark text on glow background */
    transform: translateY(-3px);
}

/* General Section Styling */
.page-promotions-daily-rebate__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions-daily-rebate__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 600;
    color: var(--color-glow);
    margin-top: 30px;
    margin-bottom: 20px;
}

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

.page-promotions-daily-rebate__intro-section,
.page-promotions-daily-rebate__how-it-works-section,
.page-promotions-daily-rebate__eligible-games-section,
.page-promotions-daily-rebate__benefits-section,
.page-promotions-daily-rebate__terms-section,
.page-promotions-daily-rebate__faq-section,
.page-promotions-daily-rebate__cta-section {
    padding: 60px 0;
    text-align: left;
}

/* Dark section for contrast */
.page-promotions-daily-rebate__dark-section {
    background-color: var(--color-deep-green); /* Deep green background */
    color: var(--color-text-main); /* Light text */
}

.page-promotions-daily-rebate__text-block {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--color-text-main);
}

.page-promotions-daily-rebate__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Lists */
.page-promotions-daily-rebate__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions-daily-rebate__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text-main);
    font-size: 1rem;
}

.page-promotions-daily-rebate__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--color-glow);
}

/* Table styles */
.page-promotions-daily-rebate__table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling for tables on small screens */
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.page-promotions-daily-rebate__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is wide enough for content */
}

.page-promotions-daily-rebate__table th,
.page-promotions-daily-rebate__table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-divider);
    color: var(--color-text-main);
}

.page-promotions-daily-rebate__table th {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
    font-weight: 600;
}

.page-promotions-daily-rebate__table tbody tr:last-child td {
    border-bottom: none;
}

.page-promotions-daily-rebate__table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle stripe */
}

/* Game Categories */
.page-promotions-daily-rebate__game-category {
    background-color: var(--color-card-bg); /* Card background color */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-promotions-daily-rebate__game-title {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-promotions-daily-rebate__game-description {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

/* FAQ Section */
.page-promotions-daily-rebate__faq-list {
    margin-top: 30px;
}

.page-promotions-daily-rebate__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions-daily-rebate__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-glow);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--color-divider);
}

.page-promotions-daily-rebate__faq-question:hover {
    background-color: var(--color-deep-green); /* Keep consistent hover */
}

/* Hide default details marker */
.page-promotions-daily-rebate__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions-daily-rebate__faq-item summary {
    list-style: none; /* For Firefox */
}

.page-promotions-daily-rebate__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--color-gold);
}

.page-promotions-daily-rebate__faq-item[open] .page-promotions-daily-rebate__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-promotions-daily-rebate__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg); /* Card background for answer */
}

.page-promotions-daily-rebate__faq-answer p {
    margin-bottom: 0;
}

/* CTA Section */
.page-promotions-daily-rebate__cta-container {
    text-align: center;
}

/* Text link style */
.page-promotions-daily-rebate__text-link {
    color: var(--color-glow); /* Use glow color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions-daily-rebate__text-link:hover {
    color: var(--color-gold); /* Gold on hover */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-promotions-daily-rebate__hero-content {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .page-promotions-daily-rebate__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-promotions-daily-rebate__hero-content {
        margin: 30px auto 40px auto;
        padding: 0 15px;
    }

    .page-promotions-daily-rebate__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-promotions-daily-rebate__description {
        font-size: 1rem;
    }

    .page-promotions-daily-rebate__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-promotions-daily-rebate__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-promotions-daily-rebate__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .page-promotions-daily-rebate__container {
        padding: 0 15px;
    }

    .page-promotions-daily-rebate__intro-section,
    .page-promotions-daily-rebate__how-it-works-section,
    .page-promotions-daily-rebate__eligible-games-section,
    .page-promotions-daily-rebate__benefits-section,
    .page-promotions-daily-rebate__terms-section,
    .page-promotions-daily-rebate__faq-section,
    .page-promotions-daily-rebate__cta-section {
        padding: 40px 0;
    }

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

    .page-promotions-daily-rebate__table {
        min-width: unset; /* Allow table to shrink */
        width: 100%; /* Make table 100% width of its container */
    }

    .page-promotions-daily-rebate__table-wrapper {
        padding: 0; /* Remove padding for table wrapper on mobile */
        border: none;
    }

    .page-promotions-daily-rebate__game-category {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-promotions-daily-rebate__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-promotions-daily-rebate__faq-answer {
        padding: 15px;
    }
}