/**
 * GBet - General CSS Styles
 * All classes use pg09- prefix for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pg09-primary: #FFCC33;
    --pg09-primary-dark: #E6B800;
    --pg09-secondary: #DEB887;
    --pg09-accent: #A0522D;
    --pg09-bg-dark: #333333;
    --pg09-bg-darker: #1a1a1a;
    --pg09-bg-light: #FAF0E6;
    --pg09-text-dark: #333333;
    --pg09-text-light: #FAF0E6;
    --pg09-gray: #6C757D;
    --pg09-white: #ffffff;
    --pg09-success: #28a745;
    --pg09-danger: #dc3545;
    --pg09-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --pg09-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--pg09-text-dark);
    background-color: var(--pg09-bg-light);
    min-height: 100vh;
    padding-bottom: 80px;
}

body.pg09-loaded * {
    transition: opacity 0.3s ease;
}

/* Container */
.pg09-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg09-wrapper {
    background-color: var(--pg09-white);
    border-radius: 0.8rem;
    box-shadow: var(--pg09-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Header */
.pg09-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg09-bg-dark) 0%, var(--pg09-bg-darker) 100%);
    color: var(--pg09-text-light);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--pg09-shadow-lg);
}

.pg09-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg09-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--pg09-text-light);
}

.pg09-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pg09-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg09-primary);
}

.pg09-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg09-hamburger {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pg09-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--pg09-primary);
    transition: all 0.3s ease;
}

.pg09-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pg09-btn-register {
    background: linear-gradient(135deg, var(--pg09-primary) 0%, var(--pg09-secondary) 100%);
    color: var(--pg09-text-dark);
}

.pg09-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 51, 0.4);
}

.pg09-btn-login {
    background: transparent;
    color: var(--pg09-text-light);
    border: 2px solid var(--pg09-primary);
}

.pg09-btn-login:hover {
    background: var(--pg09-primary);
    color: var(--pg09-text-dark);
}

/* Mobile Menu */
.pg09-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--pg09-bg-dark);
    padding: 1.5rem;
    z-index: 9999;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--pg09-shadow-lg);
    max-width: 430px;
    margin: 0 auto;
 pointer-events: none;}

.pg09-menu-item {
    padding: 1rem 1.5rem;
    color: var(--pg09-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(250, 240, 230, 0.1);
    transition: all 0.3s ease;
}

.pg09-menu-item:hover {
    background: rgba(255, 204, 51, 0.1);
    color: var(--pg09-primary);
    padding-left: 2rem;
}

/* Main Content */
.pg09-main {
    margin-top: 70px;
    padding: 1.5rem 0;
}

/* Carousel */
.pg09-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--pg09-shadow);
}

.pg09-carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.pg09-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg09-carousel-slide.pg09-active {
    display: block;
}

.pg09-carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.pg09-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg09-carousel-dot.pg09-dot-active {
    background-color: var(--pg09-primary);
    transform: scale(1.3);
}

/* Hero Section */
.pg09-hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.pg09-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pg09-text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pg09-hero p {
    font-size: 1.5rem;
    color: var(--pg09-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.pg09-section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--pg09-text-dark);
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--pg09-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg09-section-title i {
    color: var(--pg09-accent);
}

.pg09-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg09-game-card {
    background: var(--pg09-white);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: var(--pg09-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.pg09-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pg09-shadow-lg);
}

.pg09-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pg09-secondary) 0%, var(--pg09-accent) 100%);
}

.pg09-game-name {
    padding: 0.6rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pg09-text-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Modules */
.pg09-card {
    background: var(--pg09-white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--pg09-shadow);
    border-left: 4px solid var(--pg09-primary);
}

.pg09-card h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--pg09-text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg09-card h2 i {
    color: var(--pg09-accent);
}

.pg09-card p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--pg09-gray);
    margin-bottom: 1rem;
}

.pg09-card a {
    color: var(--pg09-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pg09-card a:hover {
    color: var(--pg09-primary);
}

/* FAQ Items */
.pg09-faq-item {
    background: var(--pg09-white);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: var(--pg09-shadow);
    overflow: hidden;
}

.pg09-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg09-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.1) 0%, rgba(222, 184, 135, 0.1) 100%);
}

.pg09-faq-question i {
    color: var(--pg09-accent);
    flex-shrink: 0;
}

.pg09-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pg09-faq-item.active .pg09-faq-answer {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 500px;
}

.pg09-faq-item.active .pg09-faq-question i {
    transform: rotate(180deg);
}

/* List Styles */
.pg09-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pg09-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--pg09-gray);
}

.pg09-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--pg09-primary);
}

/* Footer */
.pg09-footer {
    background: var(--pg09-bg-dark);
    color: var(--pg09-text-light);
    padding: 2.5rem 0 8rem;
    margin-top: 3rem;
}

.pg09-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg09-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg09-footer-link {
    color: var(--pg09-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.pg09-footer-link:hover {
    color: var(--pg09-primary);
}

.pg09-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pg09-partner-img {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg09-partner-img:hover {
    opacity: 1;
}

.pg09-copyright {
    text-align: center;
    font-size: 1.3rem;
    color: var(--pg09-gray);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 240, 230, 0.1);
}

/* Bottom Navigation */
.pg09-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg09-bg-dark) 0%, var(--pg09-bg-darker) 100%);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    max-width: 430px;
    margin: 0 auto;
}

.pg09-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.pg09-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pg09-text-light);
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.pg09-nav-item:hover {
    background: rgba(255, 204, 51, 0.1);
}

.pg09-nav-item.pg09-nav-active {
    color: var(--pg09-primary);
}

.pg09-nav-item.pg09-nav-active .pg09-nav-icon {
    transform: scale(1.2);
}

.pg09-nav-icon {
    font-size: 24px;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.pg09-nav-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Utility Classes */
.pg09-text-center {
    text-align: center;
}

.pg09-mt-1 {
    margin-top: 1rem;
}

.pg09-mb-1 {
    margin-bottom: 1rem;
}

.pg09-mt-2 {
    margin-top: 2rem;
}

.pg09-mb-2 {
    margin-bottom: 2rem;
}

/* Responsive */
@media (min-width: 769px) {
    .pg09-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .pg09-hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .pg09-hamburger {
        display: flex;
    }

    .pg09-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .pg09-partners {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Animations */
@keyframes pg09-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg09-animate-in {
    animation: pg09-fadeIn 0.5s ease forwards;
}
