/**
 * TBJili Website CSS Styles
 * All classes use prefix: g184-
 * Color Palette: #708090 | #0E1621 | #FF9500 | #4A4A4A | #696969
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g184-primary: #FF9500;
    --g184-secondary: #708090;
    --g184-bg-dark: #0E1621;
    --g184-bg-card: #1a2530;
    --g184-text-light: #ffffff;
    --g184-text-gray: #696969;
    --g184-text-muted: #4A4A4A;
    --g184-border: rgba(255, 149, 0, 0.3);
    --g184-gradient: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g184-bg-dark);
    color: var(--g184-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g184-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.g184-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #0E1621 0%, rgba(14, 22, 33, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--g184-border);
}

.g184-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.g184-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g184-logo img {
    width: 28px;
    height: 28px;
}

.g184-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g184-primary);
}

.g184-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g184-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.g184-btn-primary {
    background: var(--g184-gradient);
    color: var(--g184-bg-dark);
}

.g184-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
}

.g184-btn-outline {
    background: transparent;
    border: 1px solid var(--g184-primary);
    color: var(--g184-primary);
}

.g184-btn-outline:hover {
    background: var(--g184-primary);
    color: var(--g184-bg-dark);
}

.g184-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.4rem;
}

.g184-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--g184-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.g184-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g184-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    border-left: 1px solid var(--g184-border);
}

.g184-menu-active {
    right: 0;
}

.g184-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.g184-mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--g184-text-light);
    font-size: 1.4rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.g184-mobile-menu a:hover {
    background: rgba(255, 149, 0, 0.1);
    color: var(--g184-primary);
}

.g184-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g184-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Carousel */
.g184-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.8rem;
    margin-top: 1rem;
}

.g184-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g184-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.g184-slide-active {
    opacity: 1;
    position: relative;
}

.g184-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0.8rem;
}

/* Section Styles */
.g184-section {
    padding: 2rem 0;
}

.g184-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g184-primary);
    margin-bottom: 1.2rem;
    text-align: center;
}

.g184-section-subtitle {
    font-size: 1.3rem;
    color: var(--g184-text-gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.g184-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g184-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g184-game-item:hover {
    transform: scale(1.05);
}

.g184-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.8rem;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid var(--g184-border);
}

.g184-game-name {
    font-size: 1rem;
    color: var(--g184-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Category Section */
.g184-category {
    margin-bottom: 2rem;
}

.g184-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--g184-border);
}

.g184-category-icon {
    font-size: 1.6rem;
    color: var(--g184-primary);
}

.g184-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g184-text-light);
}

/* Cards */
.g184-card {
    background: var(--g184-bg-card);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 149, 0, 0.1);
}

.g184-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g184-primary);
    margin-bottom: 0.8rem;
}

.g184-card-text {
    font-size: 1.2rem;
    color: var(--g184-text-gray);
    line-height: 1.6;
}

/* Features List */
.g184-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.g184-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.g184-feature-icon {
    font-size: 2rem;
    color: var(--g184-primary);
    min-width: 2.5rem;
}

.g184-feature-content h4 {
    font-size: 1.3rem;
    color: var(--g184-text-light);
    margin-bottom: 0.3rem;
}

.g184-feature-content p {
    font-size: 1.1rem;
    color: var(--g184-text-gray);
}

/* Promotional Link Styles */
.g184-promo-link {
    color: var(--g184-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g184-promo-link:hover {
    text-decoration: underline;
}

.g184-promo-btn {
    display: inline-block;
    background: var(--g184-gradient);
    color: var(--g184-bg-dark);
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.g184-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

/* Footer */
.g184-footer {
    background: linear-gradient(180deg, var(--g184-bg-card) 0%, var(--g184-bg-dark) 100%);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--g184-border);
}

.g184-footer-content {
    text-align: center;
}

.g184-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g184-footer-links a {
    font-size: 1.2rem;
    color: var(--g184-text-gray);
    transition: color 0.3s ease;
}

.g184-footer-links a:hover {
    color: var(--g184-primary);
}

.g184-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g184-partners img {
    width: 40px;
    height: 40px;
    border-radius: 0.4rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g184-partners img:hover {
    opacity: 1;
}

.g184-copyright {
    font-size: 1.1rem;
    color: var(--g184-text-muted);
}

/* Bottom Navigation */
.g184-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.98) 0%, #0E1621 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--g184-border);
    display: none;
}

.g184-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 430px;
    margin: 0 auto;
}

.g184-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g184-nav-item:hover {
    transform: scale(1.1);
}

.g184-nav-item.active {
    color: var(--g184-primary);
}

.g184-nav-item .material-icons,
.g184-nav-item .fas,
.g184-nav-item .far,
.g184-nav-item ion-icon,
.g184-nav-item .bi {
    font-size: 22px;
    margin-bottom: 2px;
}

.g184-nav-item span {
    font-size: 10px;
    color: var(--g184-text-gray);
}

.g184-nav-item.active span {
    color: var(--g184-primary);
}

/* Mobile Bottom Nav Visible */
@media (max-width: 768px) {
    .g184-bottom-nav {
        display: block;
    }

    main {
        padding-bottom: 80px;
    }

    .g184-container {
        padding: 0 1rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .g184-bottom-nav {
        display: none;
    }

    .g184-container {
        max-width: 768px;
    }

    .g184-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g184-menu-toggle {
        display: none;
    }
}

/* H1 Title */
.g184-h1-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g184-text-light);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.4;
}

/* RTP Section */
.g184-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.g184-rtp-item {
    background: var(--g184-bg-card);
    border-radius: 0.6rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--g184-border);
}

.g184-rtp-game {
    font-size: 1.1rem;
    color: var(--g184-text-light);
    margin-bottom: 0.4rem;
}

.g184-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g184-primary);
}

/* FAQ Section */
.g184-faq-item {
    background: var(--g184-bg-card);
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.g184-faq-question {
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g184-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g184-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--g184-text-gray);
    line-height: 1.6;
}

/* Achievements */
.g184-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--g184-bg-card);
    padding: 1rem;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
}

.g184-achievement-icon {
    font-size: 2.5rem;
}

.g184-achievement-info h4 {
    font-size: 1.2rem;
    color: var(--g184-primary);
}

.g184-achievement-info p {
    font-size: 1.1rem;
    color: var(--g184-text-gray);
}

/* Tricks Section */
.g184-trick {
    background: var(--g184-bg-card);
    padding: 1.2rem;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--g184-primary);
}

.g184-trick h4 {
    font-size: 1.3rem;
    color: var(--g184-primary);
    margin-bottom: 0.5rem;
}

.g184-trick p {
    font-size: 1.1rem;
    color: var(--g184-text-gray);
    line-height: 1.5;
}

/* Utility Classes */
.g184-text-center {
    text-align: center;
}

.g184-mb-1 {
    margin-bottom: 1rem;
}

.g184-mb-2 {
    margin-bottom: 2rem;
}

.g184-mt-2 {
    margin-top: 2rem;
}

.g184-hidden {
    display: none;
}
