/* style/game-bai.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --body-bg: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-game-bai {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main); /* Text color for the entire page, contrasting with dark body-bg */
    background-color: var(--body-bg);
}

.page-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-game-bai__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-game-bai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--deep-orange), var(--secondary-color));
    border-radius: 2px;
}

.page-game-bai__text-block {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main);
    text-align: center;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: var(--body-bg);
}

.page-game-bai__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.page-game-bai__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-game-bai__hero-title {
    font-size: 52px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

.page-game-bai__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping by default */
    box-sizing: border-box;
    max-width: 100%;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-game-bai__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-game-bai__hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-game-bai__main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-game-bai__intro-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Popular Games Section (Tabbed) */
.page-game-bai__popular-games-section {
    padding: 60px 0;
}

.page-game-bai__game-tabs {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-game-bai__tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.page-game-bai__tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.page-game-bai__tab-button.is-active {
    color: var(--primary-color);
}

.page-game-bai__tab-button.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-game-bai__tab-button:hover:not(.is-active) {
    color: var(--secondary-color);
}

.page-game-bai__game-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-game-bai__game-panel.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.page-game-bai__game-card {
    background-color: var(--body-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-game-bai__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.page-game-bai__game-card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-game-bai__game-card-description {
    font-size: 16px;
    color: var(--text-main);
    margin: 0 15px 20px;
    line-height: 1.5;
}

.page-game-bai__game-card-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
}

.page-game-bai__game-card-button:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
}

/* Guide Section */
.page-game-bai__guide-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-game-bai__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__guide-step {
    text-align: center;
    background-color: var(--body-bg);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__guide-step-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Strategy Section */
.page-game-bai__strategy-section {
    padding: 60px 0;
}

.page-game-bai__strategy-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-game-bai__strategy-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__strategy-text {
    flex: 1;
    min-width: 300px;
}

.page-game-bai__strategy-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-game-bai__strategy-list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-main);
}

.page-game-bai__strategy-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

/* Promo Section */
.page-game-bai__promo-section {
    padding: 60px 0;
}

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

.page-game-bai__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-game-bai__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
}