/* Jiliaaa PH Gaming Platform CSS Theme */
/* All classes use g4ba- prefix for namespace isolation */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #EEEEEE; /* Light text color */
    background: linear-gradient(135deg, #3A3A3A 0%, #2A2A2A 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --g4ba-primary: #CD853F; /* Main gold color */
    --g4ba-secondary: #FFF176; /* Light yellow */
    --g4ba-accent: #FF8C00; /* Bright orange */
    --g4ba-light: #FFFFBA; /* Pale yellow */
    --g4ba-dark: #3A3A3A; /* Dark gray */
    --g4ba-darker: #2A2A2A; /* Darker gray */
    --g4ba-text: #EEEEEE; /* Light text */
    --g4ba-text-dark: #333333; /* Dark text */
    --g4ba-border: rgba(205, 133, 63, 0.3);
    --g4ba-shadow: rgba(0, 0, 0, 0.3);
}

/* Typography */
.g4ba-text-xs { font-size: 1rem; }
.g4ba-text-sm { font-size: 1.2rem; }
.g4ba-text-base { font-size: 1.4rem; }
.g4ba-text-lg { font-size: 1.6rem; }
.g4ba-text-xl { font-size: 1.8rem; }
.g4ba-text-2xl { font-size: 2rem; }
.g4ba-text-3xl { font-size: 2.4rem; }
.g4ba-text-4xl { font-size: 3rem; }

.g4ba-font-light { font-weight: 300; }
.g4ba-font-normal { font-weight: 400; }
.g4ba-font-medium { font-weight: 500; }
.g4ba-font-semibold { font-weight: 600; }
.g4ba-font-bold { font-weight: 700; }

/* Layout Utilities */
.g4ba-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g4ba-flex { display: flex; }
.g4ba-flex-col { flex-direction: column; }
.g4ba-flex-row { flex-direction: row; }
.g4ba-flex-wrap { flex-wrap: wrap; }
.g4ba-items-center { align-items: center; }
.g4ba-items-start { align-items: flex-start; }
.g4ba-items-end { align-items: flex-end; }
.g4ba-justify-center { justify-content: center; }
.g4ba-justify-between { justify-content: space-between; }
.g4ba-justify-around { justify-content: space-around; }
.g4ba-gap-1 { gap: 0.5rem; }
.g4ba-gap-2 { gap: 1rem; }
.g4ba-gap-3 { gap: 1.5rem; }
.g4ba-gap-4 { gap: 2rem; }

.g4ba-grid { display: grid; }
.g4ba-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.g4ba-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.g4ba-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.g4ba-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Spacing */
.g4ba-m-0 { margin: 0; }
.g4ba-m-1 { margin: 0.5rem; }
.g4ba-m-2 { margin: 1rem; }
.g4ba-m-3 { margin: 1.5rem; }
.g4ba-m-4 { margin: 2rem; }

.g4ba-p-0 { padding: 0; }
.g4ba-p-1 { padding: 0.5rem; }
.g4ba-p-2 { padding: 1rem; }
.g4ba-p-3 { padding: 1.5rem; }
.g4ba-p-4 { padding: 2rem; }

/* Header Styles */
.g4ba-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g4ba-primary) 0%, var(--g4ba-accent) 100%);
    box-shadow: 0 0.2rem 1rem var(--g4ba-shadow);
    z-index: 1000;
    backdrop-filter: blur(1rem);
}

.g4ba-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 120rem;
    margin: 0 auto;
}

.g4ba-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
}

.g4ba-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.5rem;
}

.g4ba-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g4ba-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.g4ba-btn-primary {
    background: linear-gradient(135deg, var(--g4ba-secondary) 0%, var(--g4ba-light) 100%);
    color: var(--g4ba-text-dark);
    box-shadow: 0 0.2rem 0.5rem rgba(255, 241, 118, 0.3);
}

.g4ba-btn-primary:hover {
    background: linear-gradient(135deg, var(--g4ba-light) 0%, var(--g4ba-secondary) 100%);
    transform: translateY(-0.1rem);
    box-shadow: 0 0.4rem 1rem rgba(255, 241, 118, 0.4);
}

.g4ba-btn-outline {
    background: transparent;
    color: white;
    border: 0.2rem solid white;
}

.g4ba-btn-outline:hover {
    background: white;
    color: var(--g4ba-primary);
}

.g4ba-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g4ba-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 30rem;
    height: 100vh;
    background: linear-gradient(135deg, var(--g4ba-darker) 0%, var(--g4ba-dark) 100%);
    backdrop-filter: blur(1rem);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g4ba-mobile-menu.g4ba-active {
    right: 0;
}

.g4ba-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g4ba-menu-overlay.g4ba-active {
    opacity: 1;
    visibility: visible;
}

.g4ba-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 0.1rem solid var(--g4ba-border);
}

.g4ba-menu-close {
    background: none;
    border: none;
    color: var(--g4ba-text);
    font-size: 2rem;
    cursor: pointer;
}

.g4ba-menu-nav {
    padding: 1.5rem;
}

.g4ba-menu-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--g4ba-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.g4ba-menu-nav a:hover {
    color: var(--g4ba-secondary);
}

/* Main Content */
.g4ba-main {
    padding-top: 7rem; /* Account for fixed header */
    min-height: 100vh;
}

/* Carousel Styles */
.g4ba-carousel {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
    cursor: pointer;
}

.g4ba-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.g4ba-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g4ba-carousel-slide.g4ba-active {
    opacity: 1;
}

.g4ba-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g4ba-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.g4ba-carousel-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.g4ba-carousel-text {
    font-size: 1.4rem;
    opacity: 0.9;
}

.g4ba-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.g4ba-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g4ba-carousel-dot.g4ba-active {
    background: var(--g4ba-secondary);
    transform: scale(1.2);
}

/* Hero Section */
.g4ba-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--g4ba-darker) 0%, var(--g4ba-dark) 100%);
    border-radius: 1rem;
    margin: 2rem 0;
}

.g4ba-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--g4ba-secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.g4ba-hero-text {
    font-size: 1.6rem;
    color: var(--g4ba-text);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Game Categories */
.g4ba-games-section {
    margin: 3rem 0;
}

.g4ba-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--g4ba-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.g4ba-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--g4ba-primary);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g4ba-category-icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--g4ba-accent);
}

/* Game Grid */
.g4ba-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.g4ba-game-card {
    background: linear-gradient(135deg, var(--g4ba-dark) 0%, var(--g4ba-darker) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0.1rem solid var(--g4ba-border);
    position: relative;
    overflow: hidden;
}

.g4ba-game-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 2rem var(--g4ba-shadow);
    border-color: var(--g4ba-primary);
}

.g4ba-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--g4ba-primary) 0%, var(--g4ba-accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.g4ba-game-card:hover::before {
    opacity: 0.1;
}

.g4ba-game-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.g4ba-game-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--g4ba-text);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.g4ba-game-type {
    font-size: 1rem;
    color: var(--g4ba-secondary);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* Content Sections */
.g4ba-content-section {
    background: linear-gradient(135deg, var(--g4ba-dark) 0%, var(--g4ba-darker) 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 0.1rem solid var(--g4ba-border);
}

.g4ba-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g4ba-secondary);
    margin-bottom: 1.5rem;
}

.g4ba-content-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--g4ba-text);
    margin-bottom: 1.5rem;
}

.g4ba-content-list {
    list-style: none;
    padding: 0;
}

.g4ba-content-list li {
    padding: 0.5rem 0;
    border-bottom: 0.1rem solid var(--g4ba-border);
    font-size: 1.4rem;
}

.g4ba-content-list li:last-child {
    border-bottom: none;
}

/* Partners Section */
.g4ba-partners {
    text-align: center;
    padding: 3rem 0;
}

.g4ba-partners-title {
    font-size: 1.8rem;
    color: var(--g4ba-secondary);
    margin-bottom: 2rem;
}

.g4ba-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 2rem;
    align-items: center;
}

.g4ba-partner-logo {
    width: 6rem;
    height: 3rem;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.g4ba-partner-logo:hover {
    filter: brightness(1);
}

/* Footer */
.g4ba-footer {
    background: linear-gradient(135deg, var(--g4ba-darker) 0%, #1A1A1A 100%);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-top: 0.1rem solid var(--g4ba-border);
}

.g4ba-footer-text {
    font-size: 1.2rem;
    color: var(--g4ba-text);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.g4ba-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g4ba-footer-links a {
    color: var(--g4ba-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g4ba-footer-links a:hover {
    color: var(--g4ba-primary);
}

/* Mobile Bottom Navigation */
.g4ba-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g4ba-primary) 0%, var(--g4ba-accent) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    z-index: 1000;
    box-shadow: 0 -0.2rem 1rem var(--g4ba-shadow);
}

.g4ba-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border-radius: 0.5rem;
    position: relative;
}

.g4ba-bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-0.2rem);
}

.g4ba-bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.g4ba-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .g4ba-menu-toggle {
        display: block;
    }

    .g4ba-header-actions {
        gap: 0.5rem;
    }

    .g4ba-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }

    .g4ba-main {
        padding-bottom: 8rem; /* Account for bottom nav */
    }

    .g4ba-carousel {
        height: 20rem;
        margin: 1rem 0;
    }

    .g4ba-hero-title {
        font-size: 2.4rem;
    }

    .g4ba-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
        gap: 1rem;
    }

    .g4ba-game-card {
        padding: 1rem;
    }

    .g4ba-game-icon {
        width: 5rem;
        height: 5rem;
    }

    .g4ba-section-title {
        font-size: 2rem;
    }

    .g4ba-content-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .g4ba-bottom-nav {
        display: flex; /* Show on mobile */
    }
}

@media (min-width: 769px) {
    /* Desktop-specific styles */
    .g4ba-bottom-nav {
        display: none; /* Hide on desktop */
    }

    .g4ba-main {
        padding-bottom: 0; /* Remove bottom padding on desktop */
    }

    .g4ba-container {
        padding: 0 2rem;
    }

    .g4ba-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    }

    .g4ba-carousel {
        height: 30rem;
    }

    .g4ba-hero {
        padding: 4rem 2rem;
    }

    .g4ba-hero-title {
        font-size: 3.6rem;
    }

    .g4ba-content-section {
        padding: 3rem;
    }
}

/* Utility Classes */
.g4ba-text-center { text-align: center; }
.g4ba-text-left { text-align: left; }
.g4ba-text-right { text-align: right; }

.g4ba-hidden { display: none; }
.g4ba-block { display: block; }
.g4ba-inline { display: inline; }
.g4ba-inline-block { display: inline-block; }

.g4ba-rounded { border-radius: 0.5rem; }
.g4ba-rounded-lg { border-radius: 1rem; }
.g4ba-rounded-full { border-radius: 50%; }

.g4ba-shadow { box-shadow: 0 0.2rem 0.5rem var(--g4ba-shadow); }
.g4ba-shadow-lg { box-shadow: 0 0.5rem 2rem var(--g4ba-shadow); }

.g4ba-transition { transition: all 0.3s ease; }
.g4ba-transition-fast { transition: all 0.15s ease; }

/* Loading States */
.g4ba-loading {
    position: relative;
    pointer-events: none;
}

.g4ba-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 0.2rem solid var(--g4ba-border);
    border-top: 0.2rem solid var(--g4ba-primary);
    border-radius: 50%;
    animation: g4ba-spin 1s linear infinite;
}

@keyframes g4ba-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.g4ba-btn:focus,
.g4ba-menu-toggle:focus,
.g4ba-bottom-nav-item:focus {
    outline: 0.2rem solid var(--g4ba-secondary);
    outline-offset: 0.2rem;
}

/* Print Styles */
@media print {
    .g4ba-header,
    .g4ba-bottom-nav,
    .g4ba-mobile-menu,
    .g4ba-menu-overlay {
        display: none !important;
    }

    .g4ba-main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}