/* style/slot-games.css */

/* Custom CSS Variables for Tydo88 Slot Games Page */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #000; /* Body background from shared.css */
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark backgrounds */
    --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

/* Base styles for the slot-games page content */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark); /* Ensure consistency */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

/* Global container for content sections */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-slot-games__section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__text-center {
    text-align: center;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-dark) 100%);
    overflow: hidden;
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__hero-image img:hover {
    transform: translateY(-5px);
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-slot-games__main-title {
    font-size: 52px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--background-dark); /* Dark text for gold button */
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
}

.page-slot-games__cta-button:hover {
    background: var(--text-light); /* Lighter on hover */
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-slot-games__cta-button--large {
    padding: 22px 60px;
    font-size: 26px;
}

/* Introduction Section */
.page-slot-games__introduction {
    background-color: var(--background-dark);
    padding-top: 60px;
    padding-bottom: 60px;
}
.page-slot-games__introduction .page-slot-games__section-title {
    color: var(--primary-color);
}
.page-slot-games__introduction .page-slot-games__text-block {
    color: var(--text-light);
}

/* Game Types Section */
.page-slot-games__game-types {
    background: linear-gradient(to bottom, var(--background-dark), #1a1a1a);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-slot-games__game-types .page-slot-games__section-title {
    color: var(--primary-color);
}

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

.page-slot-games__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-slot-games__card {
    background: var(--card-bg-dark-mode); /* Slightly transparent white for dark background */
    border: 1px solid var(--border-color-dark-mode);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-slot-games__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__card-text {
    font-size: 16px;
    color: var(--text-light);
}

/* Advantages Section */
.page-slot-games__advantages {
    background-color: var(--secondary-color); /* Dark Red background */
    color: var(--text-light);
}

.page-slot-games__advantages .page-slot-games__section-title {
    color: var(--primary-color); /* Gold title on dark red background */
}

.page-slot-games__advantages .page-slot-games__text-block {
    color: var(--text-light);
}

.page-slot-games__feature-item {
    background: rgba(0, 0, 0, 0.2); /* Darker background for feature items */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-slot-games__feature-item:hover {
    background: rgba(0, 0, 0, 0.4);
}

.page-slot-games__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Guide Section */
.page-slot-games__guide {
    background-color: var(--background-dark);
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-slot-games__guide .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__guide .page-slot-games__text-block {
    color: var(--text-light);
}

.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
    text-align: left;
    max-width: 900px;
    margin: 30px auto;
    padding-left: 25px; /* Adjust for list markers */
    color: var(--text-light);
    font-size: 17px;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.page-slot-games__ordered-list li strong,
.page-slot-games__unordered-list li strong {
    color: var(--primary-color);
}

.page-slot-games__ordered-list a,
.page-slot-games__unordered-list a,
.page-slot-games__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__ordered-list a:hover,
.page-slot-games__unordered-list a:hover,
.page-slot-games__text-block a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotions {
    background: linear-gradient(to top, var(--background-dark), #1a1a1a);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-slot-games__promotions .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__promotions .page-slot-games__text-block {
    color: var(--text-light);
}

.page-slot-games__card--promotion {
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--border-color-dark-mode);
    padding: 30px;
}

.page-slot-games__card--promotion img {
    height: 250px; /* Fixed height for promo images */
    width: 100%;
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__card--promotion .page-slot-games__card-title {
    font-size: 26px;
    color: var(--primary-color);
}

.page-slot-games__card--promotion .page-slot-games__card-text {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.page-slot-games__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--background-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-slot-games__btn-primary:hover {
    background: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: var(--background-dark);
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-slot-games__faq-section .page-slot-games__section-title {
    color: var(--primary-color);
}

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

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjust padding for consistency */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjust padding for consistency */
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  border-top: 1px solid var(--border-color-dark-mode);
}

.page-slot-games__faq-answer p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

/* 问题样式 */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-question:active {
  background: rgba(255, 255, 255, 0.1);
}

/* 问题标题样式 */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
  text-align: left;
}

/* 切换图标 */
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Rotate for minus sign */
  background: var(--secondary-color);
}

/* Call to Action Section at bottom */
.page-slot-games__call-to-action {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    color: var(--background-dark);
}

.page-slot-games__call-to-action .page-slot-games__section-title {
    color: var(--background-dark);
    text-shadow: none;
}

.page-slot-games__call-to-action .page-slot-games__text-block {
    color: var(--background-dark);
    font-weight: 500;
}

.page-slot-games__call-to-action .page-slot-games__cta-button {
    background: var(--background-dark);
    color: var(--primary-color);
}

.page-slot-games__call-to-action .page-slot-games__cta-button:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

/* --- Responsive Design --- */
/* Mobile first approach, desktop overrides */

@media (max-width: 1024px) {
    .page-slot-games__hero-image img {
        border-radius: 8px;
    }
    .page-slot-games__main-title {
        font-size: 44px;
    }
    .page-slot-games__hero-description {
        font-size: 18px;
    }
    .page-slot-games__cta-button {
        padding: 15px 35px;
        font-size: 20px;
    }
    .page-slot-games__cta-button--large {
        padding: 18px 45px;
        font-size: 22px;
    }
    .page-slot-games__section-title {
        font-size: 32px;
    }
    .page-slot-games__text-block {
        font-size: 17px;
    }
    .page-slot-games__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-slot-games__grid--two-columns {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    .page-slot-games__card {
        padding: 25px;
    }
    .page-slot-games__card img {
        min-width: 200px;
        min-height: 200px;
    }
    .page-slot-games__feature-item img {
        min-width: 200px;
        min-height: 200px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 17px;
    }
    .page-slot-games__faq-toggle {
        font-size: 26px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    /* Fixed header spacing for mobile */
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__section {
        padding: 40px 0;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }

    /* Images responsive for mobile */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    .page-slot-games__hero-image img {
        border-radius: 8px;
    }
    
    .page-slot-games__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .page-slot-games__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .page-slot-games__cta-button,
    .page-slot-games__cta-button--large,
    .page-slot-games__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 25px !important;
        font-size: 18px !important;
        margin-top: 20px;
    }
    
    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .page-slot-games__text-block {
        font-size: 16px;
    }
    
    .page-slot-games__grid,
    .page-slot-games__grid--two-columns {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }
    
    .page-slot-games__card,
    .page-slot-games__feature-item {
        padding: 20px;
    }
    
    .page-slot-games__card-title,
    .page-slot-games__feature-title {
        font-size: 20px;
    }
}
}