/* style/index-hot-games.css */

/* Base styles and variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-dark: #08160F;
    --card-background: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-index-hot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--background-dark); /* Inherited from shared.css body */
}

.page-index-hot-games__section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-index-hot-games__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-index-hot-games__section-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-index-hot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hero Section */
.page-index-hot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--background-dark);
}

.page-index-hot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.page-index-hot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-index-hot-games__hero-content {
    text-align: center;
    padding: 40px 20px 0;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.page-index-hot-games__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-index-hot-games__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-hot-games__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index-hot-games__cta-buttons--center {
    margin-top: 50px;
}

.page-index-hot-games__btn-primary,
.page-index-hot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-index-hot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-index-hot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-index-hot-games__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-index-hot-games__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Intro Section */
.page-index-hot-games__intro-section {
    background-color: var(--background-dark);
}

.page-index-hot-games__text-block {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: justify;
}

.page-index-hot-games__text-block p {
    margin-bottom: 20px;
}

.page-index-hot-games__grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-index-hot-games__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-index-hot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index-hot-games__card-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index-hot-games__card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Games Section */
.page-index-hot-games__games-section {
    background-color: var(--deep-green);
}

.page-index-hot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hot-games__game-category {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-index-hot-games__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.page-index-hot-games__game-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index-hot-games__game-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-index-hot-games__game-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-index-hot-games__game-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-index-hot-games__game-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-index-hot-games__game-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--gold-color);
}

/* Promotions Section */
.page-index-hot-games__promotions-section {
    background-color: var(--background-dark);
}

.page-index-hot-games__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hot-games__promo-card {
    text-align: center;
    padding: 25px;
}

.page-index-hot-games__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-index-hot-games__promo-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-index-hot-games__promo-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Guide Section */
.page-index-hot-games__guide-section {
    background-color: var(--deep-green);
}

.page-index-hot-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hot-games__guide-item {
    text-align: center;
    padding: 30px;
}

.page-index-hot-games__guide-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index-hot-games__guide-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Security Section */
.page-index-hot-games__security-section {
    background-color: var(--background-dark);
}

.page-index-hot-games__security-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Conclusion Section */
.page-index-hot-games__conclusion-section {
    background-color: var(--deep-green);
    text-align: center;
}

.page-index-hot-games__conclusion-section .page-index-hot-games__section-description {
    margin-bottom: 50px;
}

.page-index-hot-games__conclusion-section .page-index-hot-games__section-description a {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-index-hot-games__conclusion-section .page-index-hot-games__section-description a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hot-games__grid-2-cols,
    .page-index-hot-games__grid-3-cols,
    .page-index-hot-games__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-index-hot-games__section-title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .page-index-hot-games__main-title {
        font-size: clamp(28px, 6vw, 48px);
    }

    .page-index-hot-games__hero-description {
        font-size: clamp(16px, 2.5vw, 20px);
    }

    .page-index-hot-games__game-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-index-hot-games__section {
        padding: 40px 15px;
    }

    .page-index-hot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-index-hot-games__hero-content {
        padding: 30px 15px 0;
    }

    .page-index-hot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-hot-games__btn-primary,
    .page-index-hot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-index-hot-games__card {
        padding: 25px;
    }

    .page-index-hot-games__game-image {
        height: 200px;
    }

    .page-index-hot-games__promo-image {
        height: 150px;
    }

    /* Mobile specific image and container sizing */
    .page-index-hot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index-hot-games__section,
    .page-index-hot-games__card,
    .page-index-hot-games__container,
    .page-index-hot-games__hero-image-wrapper,
    .page-index-hot-games__cta-buttons,
    .page-index-hot-games__button-group,
    .page-index-hot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-index-hot-games__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Ensure button text wraps */
    .page-index-hot-games__btn-primary,
    .page-index-hot-games__btn-secondary,
    .page-index-hot-games a[class*="button"],
    .page-index-hot-games a[class*="btn"] {
      white-space: normal !important;
      word-wrap: break-word !important;
    }

    .page-index-hot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-index-hot-games__section-title {
        font-size: clamp(22px, 6vw, 36px);
    }
    .page-index-hot-games__main-title {
        font-size: clamp(26px, 7vw, 40px);
    }
    .page-index-hot-games__card-title,
    .page-index-hot-games__game-title,
    .page-index-hot-games__promo-title,
    .page-index-hot-games__guide-title {
        font-size: 20px;
    }
}