/* style/casino.css */

/* Biến và màu sắc */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07; /* Màu cho nút đăng nhập/CTA */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Mặc định cho nền sáng */
}

.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 40px; /* Khoảng cách với phần nội dung bên dưới */
    padding-top: 10px; /* Small top padding */
    background-color: #000; /* Đảm bảo nền tối cho video */
}

.page-casino__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-casino__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Làm tối video để chữ nổi bật */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
    margin-top: 150px; /* Đẩy nội dung xuống dưới header */
}

.page-casino__main-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    max-width: 100%;
}

.page-casino__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 100%;
}

.page-casino__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-casino__btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.page-casino__btn-secondary:hover {
    background-color: #c96d05;
    border-color: #c96d05;
}

.page-casino__btn-tertiary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-casino__btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* General Section Styles */
.page-casino__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-casino__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    max-width: 100%;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    max-width: 100%;
}

.page-casino__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-casino__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__dark-bg .page-casino__section-title {
    color: var(--text-light);
}

.page-casino__dark-bg .page-casino__section-description {
    color: var(--text-light);
}

.page-casino__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
}

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

.page-casino__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;
    padding-bottom: 20px;
    color: var(--text-dark);
}

.page-casino__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__game-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding: 0 15px;
}

.page-casino__game-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-casino__btn-game {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-casino__btn-game:hover {
    background-color: #c96d05;
}

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

.page-casino__promotion-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;
    padding-bottom: 20px;
    color: var(--text-dark);
}

.page-casino__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__promotion-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding: 0 15px;
}

.page-casino__promotion-description {
    font-size: 0.9em;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-casino__btn-promotion {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-casino__btn-promotion:hover {
    background-color: #1e87c0;
}

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

/* Advantages Section */
.page-casino__advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-casino__advantage-item {
    padding: 25px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.page-casino__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-casino__advantage-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-casino__advantage-description {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Guide Section */
.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-casino__guide-step {
    padding: 25px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.page-casino__guide-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-casino__guide-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-casino__guide-description {
    font-size: 0.95em;
    line-height: 1.5;
}

/* FAQ Section */
.page-casino__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-casino__faq-item summary {
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    outline: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-casino__faq-item summary::marker {
    display: none;
}

.page-casino__faq-qtext {
    flex-grow: 1;
    color: var(--text-light);
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.page-casino__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
    color: var(--text-light);
}

/* CTA Section */
.page-casino__cta-section {
    text-align: center;
    padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: 2.2em;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

    .page-casino__hero-content {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-content {
        margin-top: 80px;
        padding: 15px;
    }

    .page-casino__main-title {
        font-size: 1.8em;
    }

    .page-casino__description {
        font-size: 1em;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary {
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__content-area {
        padding: 30px 15px;
    }

    .page-casino__section-title {
        font-size: 1.6em;
    }

    .page-casino__section-description {
        font-size: 0.95em;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__hero-video-wrapper,
    .page-casino__game-card,
    .page-casino__promotion-card,
    .page-casino__advantage-item,
    .page-casino__guide-step,
    .page-casino__faq-item,
    .page-casino__content-area,
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-casino__hero-section {
        padding-top: 10px !important; /* body has padding-top, this is for visual spacing */
        padding-bottom: 20px;
    }
    
    .page-casino__video-section {
        padding-top: 10px !important;
    }

    .page-casino__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

    .page-casino__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 1.5em;
    }

    .page-casino__section-title {
        font-size: 1.4em;
    }

    .page-casino__hero-content {
        margin-top: 60px;
    }
}