/* 37jl Premium VIP Gaming Platform - Core Stylesheet */
/* All classes prefixed with g35b- for namespace isolation */

/* === CSS Variables === */
:root {
    --g35b-primary: #A0522D;
    --g35b-bg: #34495E;
    --g35b-text: #F8F8FF;
    --g35b-accent: #7B68EE;
    --g35b-warm: #A0522D;
    --g35b-dark: #2C3E50;
    --g35b-light: #ECF0F1;
    --g35b-gold: #D4A574;
    --g35b-radius: 8px;
    --g35b-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g35b-transition: all 0.3s ease;
    font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g35b-bg);
    color: var(--g35b-text);
    font-size: 1.6rem;
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--g35b-accent);
    text-decoration: none;
    transition: var(--g35b-transition);
}

a:hover {
    color: var(--g35b-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Header === */
.g35b-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--g35b-dark) 0%, #1a252f 100%);
    z-index: 1000;
    padding: 1rem 1.2rem;
    box-shadow: var(--g35b-shadow);
}

.g35b-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g35b-logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g35b-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--g35b-primary);
}

.g35b-site-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g35b-gold);
    letter-spacing: 0.5px;
}

.g35b-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g35b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: var(--g35b-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--g35b-transition);
    min-height: 44px;
    min-width: 44px;
}

.g35b-btn-register {
    background: linear-gradient(135deg, var(--g35b-primary) 0%, #c4623a 100%);
    color: var(--g35b-text);
}

.g35b-btn-register:hover {
    background: linear-gradient(135deg, #c4623a 0%, var(--g35b-primary) 100%);
    transform: scale(1.05);
}

.g35b-btn-login {
    background: transparent;
    color: var(--g35b-accent);
    border: 1.5px solid var(--g35b-accent);
}

.g35b-btn-login:hover {
    background: var(--g35b-accent);
    color: var(--g35b-text);
}

.g35b-menu-toggle {
    background: none;
    border: none;
    color: var(--g35b-gold);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Mobile Menu === */
.g35b-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--g35b-dark) 0%, #1a252f 100%);
    z-index: 9999;
    transition: right 0.35s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.g35b-menu-active {
    right: 0;
}

.g35b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g35b-transition);
}

.g35b-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g35b-menu-close {
    background: none;
    border: none;
    color: var(--g35b-gold);
    font-size: 2.8rem;
    cursor: pointer;
    float: right;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g35b-menu-links {
    list-style: none;
    margin-top: 2rem;
    clear: both;
}

.g35b-menu-links li {
    border-bottom: 1px solid rgba(248, 248, 255, 0.1);
}

.g35b-menu-links a {
    display: block;
    padding: 1.2rem 0;
    color: var(--g35b-text);
    font-size: 1.5rem;
    transition: var(--g35b-transition);
}

.g35b-menu-links a:hover {
    color: var(--g35b-gold);
    padding-left: 1rem;
}

/* === Main Content === */
.g35b-main {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* === Carousel === */
.g35b-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g35b-radius);
    margin-bottom: 2rem;
}

.g35b-carousel-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.g35b-slide-active {
    display: block;
}

.g35b-carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.g35b-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.g35b-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(248, 248, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: var(--g35b-transition);
}

.g35b-dot-active {
    background: var(--g35b-gold);
    transform: scale(1.3);
}

/* === Sections === */
.g35b-section {
    padding: 1.5rem 1.2rem;
}

.g35b-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--g35b-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--g35b-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g35b-section-title i,
.g35b-section-title .material-icons {
    color: var(--g35b-accent);
}

/* === Game Grid === */
.g35b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g35b-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--g35b-transition);
    border-radius: var(--g35b-radius);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.g35b-game-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.g35b-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g35b-radius);
    margin-bottom: 0.4rem;
}

.g35b-game-name {
    font-size: 1.1rem;
    color: var(--g35b-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Content Modules === */
.g35b-content-block {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.8) 0%, rgba(44, 62, 80, 0.9) 100%);
    border-radius: var(--g35b-radius);
    padding: 2rem 1.5rem;
    margin: 1.5rem 1.2rem;
    border: 1px solid rgba(160, 82, 45, 0.3);
}

.g35b-content-block h2 {
    font-size: 2rem;
    color: var(--g35b-gold);
    margin-bottom: 1rem;
}

.g35b-content-block h3 {
    font-size: 1.7rem;
    color: var(--g35b-accent);
    margin: 1.2rem 0 0.6rem;
}

.g35b-content-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: rgba(248, 248, 255, 0.9);
}

.g35b-content-block ul, .g35b-content-block ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.g35b-content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* === CTA / Promo Buttons === */
.g35b-cta {
    display: block;
    width: 100%;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--g35b-primary) 0%, #c4623a 100%);
    color: var(--g35b-text);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: var(--g35b-radius);
    border: none;
    cursor: pointer;
    transition: var(--g35b-transition);
    margin: 1.5rem 0;
    min-height: 50px;
}

.g35b-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4);
}

.g35b-cta-accent {
    background: linear-gradient(135deg, var(--g35b-accent) 0%, #5b4fcf 100%);
}

.g35b-cta-accent:hover {
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

/* === Footer === */
.g35b-footer {
    background: linear-gradient(180deg, var(--g35b-dark) 0%, #1a252f 100%);
    padding: 2rem 1.2rem 3rem;
    border-top: 2px solid var(--g35b-primary);
}

.g35b-footer-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(248, 248, 255, 0.1);
}

.g35b-footer-intro p {
    font-size: 1.3rem;
    color: rgba(248, 248, 255, 0.7);
    line-height: 1.6;
}

.g35b-footer-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.g35b-footer-btn {
    padding: 0.7rem 1.2rem;
    background: rgba(123, 104, 238, 0.2);
    border: 1px solid var(--g35b-accent);
    color: var(--g35b-text);
    border-radius: 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--g35b-transition);
}

.g35b-footer-btn:hover {
    background: var(--g35b-accent);
}

.g35b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.g35b-footer-links a {
    font-size: 1.3rem;
    color: rgba(248, 248, 255, 0.6);
}

.g35b-footer-links a:hover {
    color: var(--g35b-gold);
}

.g35b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(248, 248, 255, 0.4);
    margin-top: 1.5rem;
}

/* === Bottom Navigation === */
.g35b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, var(--g35b-dark) 0%, #141d26 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(160, 82, 45, 0.4);
}

.g35b-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(248, 248, 255, 0.6);
    cursor: pointer;
    min-width: 60px;
    min-height: 60px;
    transition: var(--g35b-transition);
    padding: 0.4rem;
    gap: 0.2rem;
}

.g35b-nav-btn i,
.g35b-nav-btn .material-icons,
.g35b-nav-btn ion-icon {
    font-size: 22px;
}

.g35b-nav-btn span {
    font-size: 1rem;
}

.g35b-nav-btn:hover,
.g35b-nav-btn.g35b-nav-active {
    color: var(--g35b-gold);
}

.g35b-nav-btn.g35b-nav-active i,
.g35b-nav-btn.g35b-nav-active .material-icons,
.g35b-nav-btn.g35b-nav-active ion-icon {
    transform: scale(1.15);
}

/* === FAQ Section === */
.g35b-faq-item {
    border-bottom: 1px solid rgba(248, 248, 255, 0.1);
    padding: 1.2rem 0;
}

.g35b-faq-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g35b-gold);
    margin-bottom: 0.5rem;
}

.g35b-faq-answer {
    font-size: 1.4rem;
    color: rgba(248, 248, 255, 0.8);
    line-height: 1.6;
}

/* === Help Page Styles === */
.g35b-page-header {
    background: linear-gradient(135deg, var(--g35b-dark) 0%, #1a252f 100%);
    padding: 2rem 1.2rem;
    text-align: center;
    border-bottom: 2px solid var(--g35b-primary);
}

.g35b-page-header h1 {
    font-size: 2.4rem;
    color: var(--g35b-gold);
    margin-bottom: 0.5rem;
}

.g35b-page-header p {
    font-size: 1.4rem;
    color: rgba(248, 248, 255, 0.7);
}

.g35b-breadcrumb {
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    color: rgba(248, 248, 255, 0.5);
}

.g35b-breadcrumb a {
    color: var(--g35b-accent);
}

/* === Desktop Hidden / Mobile Padding === */
@media (min-width: 769px) {
    .g35b-bottom-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .g35b-main {
        padding-bottom: 80px;
    }
}

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

.g35b-text-gold {
    color: var(--g35b-gold);
}

.g35b-text-accent {
    color: var(--g35b-accent);
}

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

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

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

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

/* === Lazy Load Placeholder === */
.g35b-lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.g35b-lazy-img[src] {
    opacity: 1;
}
