/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-color: #C30808;
    --login-btn-color: #C30808;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --link-color: #017439;
    --border-color: #e0e0e0;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-on-light-bg);
    background-color: var(--background-color, var(--secondary-color)); /* Fallback to white if shared.css not loaded */
}

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

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-slot-games__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-on-light-bg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    color: var(--text-on-dark-bg);
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px 0;
    max-width: 900px;
    box-sizing: border-box;
}

.page-slot-games__hero-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
    max-width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-slot-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-on-dark-bg);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: var(--register-btn-color);
    color: var(--text-on-dark-bg);
    border: 2px solid var(--register-btn-color);
}

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--register-btn-color), 10%); /* Placeholder for darken */
    border-color: darken(var(--register-btn-color), 10%); /* Placeholder for darken */
    opacity: 0.9;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--text-on-dark-bg);
    border: 2px solid var(--text-on-dark-bg);
}

.page-slot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-on-dark-bg);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

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

/* Features Section */
.page-slot-games__features-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

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

.page-slot-games__feature-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.page-slot-games__feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-slot-games__feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-on-light-bg);
}

/* Games Showcase Section */
.page-slot-games__games-showcase {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

.page-slot-games__games-showcase .page-slot-games__section-title,
.page-slot-games__games-showcase .page-slot-games__section-description {
    color: var(--text-on-dark-bg);
}

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

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-on-light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-slot-games__game-title {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 15px 10px;
    color: var(--primary-color);
}

.page-slot-games__game-desc {
    font-size: 15px;
    line-height: 1.5;
    padding: 0 15px 20px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

.page-slot-games__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-slot-games__promo-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding: 0 15px;
}

.page-slot-games__promo-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-on-light-bg);
    padding: 0 15px;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

.page-slot-games__how-to-play-section .page-slot-games__section-title,
.page-slot-games__how-to-play-section .page-slot-games__section-description {
    color: var(--text-on-dark-bg);
}

.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-slot-games__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-on-light-bg);
    position: relative;
    text-align: center;
}

.page-slot-games__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-slot-games__step-item strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-slot-games__step-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-on-light-bg);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}

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

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

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-on-light-bg);
  font-size: 16px;
  line-height: 1.6;
}

.page-slot-games__faq-answer p {
    margin: 0;
}

/* General image and container responsiveness */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__container,
.page-slot-games__hero-section,
.page-slot-games__features-section,
.page-slot-games__games-showcase,
.page-slot-games__promotions-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-slot-games__section-title {
        font-size: 32px;
    }

    .page-slot-games__features-grid,
    .page-slot-games__game-list,
    .page-slot-games__promo-cards,
    .page-slot-games__steps-list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-slot-games__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-slot-games__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-slot-games__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    /* Buttons */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games 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;
        font-size: 16px;
    }

    .page-slot-games__hero-cta-buttons,
    .page-slot-games__cta-center,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Section Titles and Descriptions */
    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-slot-games__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Features Section */
    .page-slot-games__features-section {
        padding: 40px 0;
    }

    .page-slot-games__feature-card {
        padding: 25px;
    }

    .page-slot-games__feature-title {
        font-size: 20px;
    }

    .page-slot-games__feature-description {
        font-size: 15px;
    }

    /* Games Showcase Section */
    .page-slot-games__games-showcase {
        padding: 40px 0;
    }

    .page-slot-games__game-thumbnail {
        height: 180px;
    }

    .page-slot-games__game-title {
        font-size: 20px;
    }

    .page-slot-games__game-desc {
        font-size: 14px;
    }

    /* Promotions Section */
    .page-slot-games__promotions-section {
        padding: 40px 0;
    }

    .page-slot-games__promo-image {
        height: 200px;
    }

    .page-slot-games__promo-title {
        font-size: 20px;
    }

    .page-slot-games__promo-desc {
        font-size: 15px;
    }

    /* How to Play Section */
    .page-slot-games__how-to-play-section {
        padding: 40px 0;
    }

    .page-slot-games__steps-list {
        gap: 20px;
    }

    .page-slot-games__step-item {
        padding: 25px;
    }

    .page-slot-games__step-item strong {
        font-size: 18px;
    }

    .page-slot-games__step-item p {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-slot-games__faq-section {
        padding: 40px 0;
    }

    details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
    .page-slot-games__faq-qtext { font-size: 16px; }
    .page-slot-games__faq-toggle { font-size: 20px; width: 24px; margin-left: 10px; }
    details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; font-size: 15px; }

    /* General image and container responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__features-section,
    .page-slot-games__games-showcase,
    .page-slot-games__promotions-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}