/**
 * BL7 Casino - Main Stylesheet
 * All classes use prefix 'g4e3-' to avoid conflicts
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables with prefix */
:root {
    --g4e3-bg-dark: #1A1A1A;
    --g4e3-bg-medium: #34495E;
    --g4e3-bg-light: #495057;
    --g4e3-accent-warm: #A0522D;
    --g4e3-accent-brown: #8B4513;
    --g4e3-accent-gold: #CD853F;
    --g4e3-text-light: #F5F5F5;
    --g4e3-text-muted: #B0B0B0;
    --g4e3-border-color: rgba(205, 133, 63, 0.3);
    --g4e3-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --g4e3-radius: 8px;
    --g4e3-radius-lg: 16px;
    --g4e3-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g4e3-bg-dark);
    color: var(--g4e3-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
}

/* Main Container */
.g4e3-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.g4e3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g4e3-bg-dark) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 1px solid var(--g4e3-border-color);
    padding: 1rem 0;
    transition: var(--g4e3-transition);
}

.g4e3-header-scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--g4e3-shadow);
}

.g4e3-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.g4e3-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g4e3-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g4e3-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g4e3-accent-gold);
    letter-spacing: 1px;
}

.g4e3-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g4e3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--g4e3-radius);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--g4e3-transition);
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.g4e3-btn-primary {
    background: linear-gradient(135deg, var(--g4e3-accent-gold) 0%, var(--g4e3-accent-warm) 100%);
    color: var(--g4e3-bg-dark);
}

.g4e3-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

.g4e3-btn-secondary {
    background: transparent;
    color: var(--g4e3-accent-gold);
    border: 2px solid var(--g4e3-accent-gold);
}

.g4e3-btn-secondary:hover {
    background: var(--g4e3-accent-gold);
    color: var(--g4e3-bg-dark);
}

.g4e3-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.g4e3-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--g4e3-accent-gold);
    transition: var(--g4e3-transition);
}

/* Mobile Menu */
.g4e3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g4e3-bg-medium);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g4e3-menu-active {
    right: 0;
}

.g4e3-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g4e3-transition);
}

.g4e3-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g4e3-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g4e3-border-color);
}

.g4e3-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--g4e3-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g4e3-nav-list {
    list-style: none;
}

.g4e3-nav-item {
    margin-bottom: 0.5rem;
}

.g4e3-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g4e3-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--g4e3-radius);
    transition: var(--g4e3-transition);
}

.g4e3-nav-link:hover {
    background: rgba(205, 133, 63, 0.2);
    color: var(--g4e3-accent-gold);
}

/* Main Content */
.g4e3-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .g4e3-main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.g4e3-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g4e3-radius-lg);
    margin-bottom: 2rem;
}

.g4e3-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g4e3-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.g4e3-slide-active {
    opacity: 1;
    position: relative;
}

.g4e3-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.g4e3-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.g4e3-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g4e3-bg-light);
    cursor: pointer;
    transition: var(--g4e3-transition);
}

.g4e3-dot-active {
    background: var(--g4e3-accent-gold);
    transform: scale(1.2);
}

/* Section Styles */
.g4e3-section {
    padding: 2rem 0;
}

.g4e3-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--g4e3-accent-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.g4e3-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--g4e3-accent-gold);
    margin: 0.8rem auto 0;
}

/* Game Grid */
.g4e3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g4e3-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--g4e3-transition);
    padding: 0.5rem;
    border-radius: var(--g4e3-radius);
}

.g4e3-game-card:hover {
    transform: translateY(-3px);
    background: rgba(205, 133, 63, 0.1);
}

.g4e3-game-card img {
    width: 60px;
    height: 60px;
    border-radius: var(--g4e3-radius);
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.g4e3-game-name {
    font-size: 1.1rem;
    color: var(--g4e3-text-light);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Category Title */
.g4e3-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g4e3-accent-gold);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--g4e3-accent-gold);
}

/* Content Blocks */
.g4e3-content-block {
    background: var(--g4e3-bg-medium);
    border-radius: var(--g4e3-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--g4e3-border-color);
}

.g4e3-content-block h2 {
    font-size: 2rem;
    color: var(--g4e3-accent-gold);
    margin-bottom: 1.5rem;
}

.g4e3-content-block h3 {
    font-size: 1.7rem;
    color: var(--g4e3-accent-gold);
    margin: 1.5rem 0 1rem;
}

.g4e3-content-block p {
    color: var(--g4e3-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.g4e3-content-block ul {
    list-style: none;
    padding-left: 0;
}

.g4e3-content-block li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--g4e3-text-muted);
}

.g4e3-content-block li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--g4e3-accent-gold);
}

/* Promo Links */
.g4e3-promo-link {
    color: var(--g4e3-accent-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--g4e3-transition);
}

.g4e3-promo-link:hover {
    color: var(--g4e3-text-light);
    text-decoration: underline;
}

/* Bottom Navigation */
.g4e3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--g4e3-bg-medium) 0%, var(--g4e3-bg-dark) 100%);
    border-top: 1px solid var(--g4e3-border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .g4e3-bottom-nav {
        display: none;
    }
}

.g4e3-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g4e3-text-muted);
    cursor: pointer;
    transition: var(--g4e3-transition);
    text-decoration: none;
    padding: 0.5rem;
}

.g4e3-nav-btn:hover,
.g4e3-nav-btn:focus {
    color: var(--g4e3-accent-gold);
    transform: scale(1.1);
}

.g4e3-nav-btn.active {
    color: var(--g4e3-accent-gold);
}

.g4e3-nav-btn i,
.g4e3-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.g4e3-nav-btn span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.g4e3-footer {
    background: var(--g4e3-bg-medium);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--g4e3-border-color);
}

@media (max-width: 768px) {
    .g4e3-footer {
        padding-bottom: 80px;
    }
}

.g4e3-footer-section {
    margin-bottom: 2rem;
}

.g4e3-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g4e3-accent-gold);
    margin-bottom: 1rem;
}

.g4e3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.g4e3-footer-link {
    color: var(--g4e3-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--g4e3-transition);
}

.g4e3-footer-link:hover {
    color: var(--g4e3-accent-gold);
}

.g4e3-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.g4e3-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--g4e3-transition);
}

.g4e3-partner-logo:hover {
    opacity: 1;
}

.g4e3-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g4e3-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--g4e3-border-color);
}

/* Utility Classes */
.g4e3-text-center {
    text-align: center;
}

.g4e3-mt-2 {
    margin-top: 2rem;
}

.g4e3-mb-2 {
    margin-bottom: 2rem;
}

.g4e3-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .g4e3-hidden-mobile {
        display: block;
    }
}

/* Animation Classes */
@keyframes g4e3-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g4e3-animate-in {
    animation: g4e3-fadeIn 0.5s ease forwards;
}

/* RTP Display */
.g4e3-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g4e3-rtp-item {
    background: rgba(205, 133, 63, 0.1);
    padding: 1rem;
    border-radius: var(--g4e3-radius);
    text-align: center;
}

.g4e3-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g4e3-accent-gold);
}

.g4e3-rtp-label {
    font-size: 1.2rem;
    color: var(--g4e3-text-muted);
}

/* Achievement Cards */
.g4e3-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(205, 133, 63, 0.1);
    padding: 1rem;
    border-radius: var(--g4e3-radius);
    margin-bottom: 1rem;
}

.g4e3-achievement-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g4e3-accent-gold);
    border-radius: 50%;
    color: var(--g4e3-bg-dark);
    font-size: 2rem;
}

.g4e3-achievement-text h4 {
    font-size: 1.4rem;
    color: var(--g4e3-text-light);
    margin-bottom: 0.3rem;
}

.g4e3-achievement-text p {
    font-size: 1.2rem;
    color: var(--g4e3-text-muted);
    margin: 0;
}

/* Security Section */
.g4e3-security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g4e3-security-icon {
    color: var(--g4e3-accent-gold);
    font-size: 2rem;
    flex-shrink: 0;
}

.g4e3-security-text h4 {
    font-size: 1.5rem;
    color: var(--g4e3-text-light);
    margin-bottom: 0.5rem;
}

.g4e3-security-text p {
    font-size: 1.3rem;
    color: var(--g4e3-text-muted);
    margin: 0;
}
