/* style/index.css */

/* Custom Colors as CSS Variables (for easier management and consistency) */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --site-bg-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast against dark body background */
.page-index {
    background-color: var(--site-bg-dark);
    color: var(--text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-index__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--divider-color);
}

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

.page-index__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-index__section-text {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Card styling */
.page-index__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

/* Button styling */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__cta-button,
.page-index__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-index__cta-button:hover,
.page-index__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-index__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__btn-text {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.page-index__btn-text:hover {
    color: var(--secondary-color);
}

.page-index__button-center {
    text-align: center;
    margin-top: 40px;
}

/* HERO Section */
.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-index__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.page-index__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-index__hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Quick Access Section */
.page-index__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Games Section */
.page-index__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index__game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-index__game-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-index__game-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-index__promo-item {
    text-align: center;
}

.page-index__promo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-index__promo-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-index__promo-description {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Security & Support Section */
.page-index__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__feature-item {
    text-align: center;
}

.page-index__feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-index__feature-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-index__feature-description {
    font-size: 16px;
    color: var(--text-secondary);
}

/* FAQ Section */
details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
}

details.page-index__faq-item summary.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
    display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
    background: rgba(var(--primary-color), 0.1);
}

.page-index__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
    padding: 0 25px 20px;
    background: rgba(var(--deep-green), 0.3);
    border-radius: 0 0 8px 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

.page-index__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

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

.page-index__blog-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-index__blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.page-index__blog-content {
    padding: 0 5px;
}

.page-index__blog-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.page-index__blog-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
    color: var(--gold-color);
}

.page-index__blog-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-index__blog-summary {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__section-title {
        font-size: 32px;
    }
    .page-index__hero-title {
        font-size: 40px;
    }
    .page-index__hero-description {
        font-size: 18px;
    }
    .page-index__game-list,
    .page-index__promo-list,
    .page-index__features-grid,
    .page-index__blog-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-index__section {
        padding: 40px 15px;
    }
    .page-index__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-index__section-text {
        font-size: 15px;
    }
    .page-index__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-index__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-index__cta-button,
    .page-index__btn-primary,
    .page-index__btn-secondary,
    .page-index a[class*="button"],
    .page-index 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-index__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__game-card img,
    .page-index__promo-item img,
    .page-index__feature-item img,
    .page-index__blog-card img {
        
    }
    .page-index__game-title,
    .page-index__promo-title,
    .page-index__feature-title,
    .page-index__blog-title {
        font-size: 20px;
    }
    .page-index__game-description,
    .page-index__promo-description,
    .page-index__feature-description,
    .page-index__blog-summary {
        font-size: 15px;
    }
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__section,
    .page-index__card,
    .page-index__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-index__faq-item summary.page-index__faq-question {
        padding: 15px;
    }
    .page-index__faq-qtext {
        font-size: 16px;
    }
    .page-index__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-index__faq-item .page-index__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 28px;
    }
    .page-index__hero-description {
        font-size: 15px;
    }
    .page-index__cta-button,
    .page-index__btn-primary,
    .page-index__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-index__game-list,
    .page-index__promo-list,
    .page-index__features-grid,
    .page-index__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}