/**
 * jl56 Website CSS Module
 * All classes use g784- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g784-primary: #BDC3C7;
    --g784-bg: #1A1A2E;
    --g784-text: #D3D3D3;
    --g784-accent: #E74C3C;
    --g784-accent-hover: #C0392B;
    --g784-gold: #F1C40F;
    --g784-card-bg: #16213E;
    --g784-border: #2C3E50;
    --g784-gradient: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    --g784-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--g784-bg);
    color: var(--g784-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    color: var(--g784-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--g784-gold);
}

/* Container */
.g784-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g784-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--g784-gradient);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--g784-shadow);
}

.g784-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.g784-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g784-logo img {
    width: 32px;
    height: 32px;
}

.g784-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g784-gold);
}

.g784-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.g784-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.g784-btn-login {
    background: transparent;
    color: var(--g784-primary);
    border: 1px solid var(--g784-primary);
}

.g784-btn-login:hover {
    background: var(--g784-primary);
    color: var(--g784-bg);
}

.g784-btn-register {
    background: var(--g784-accent);
    color: #fff;
}

.g784-btn-register:hover {
    background: var(--g784-accent-hover);
    transform: scale(1.05);
}

.g784-menu-toggle {
    background: none;
    border: none;
    color: var(--g784-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g784-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g784-card-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g784-menu-active {
    right: 0;
}

.g784-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;
}

.g784-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g784-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--g784-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.g784-menu-list {
    list-style: none;
    margin-top: 3rem;
}

.g784-menu-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--g784-border);
}

.g784-menu-link {
    font-size: 1.4rem;
    color: var(--g784-text);
    display: block;
}

.g784-menu-link:hover {
    color: var(--g784-gold);
}

/* Main Content */
main {
    padding-top: 7rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Carousel */
.g784-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin: 1rem 0;
}

.g784-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g784-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.g784-slide-active {
    opacity: 1;
    position: relative;
}

.g784-slide img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    cursor: pointer;
}

.g784-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.g784-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.g784-dot-active {
    background: var(--g784-gold);
}

/* Section Titles */
.g784-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g784-gold);
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.g784-subtitle {
    font-size: 1.4rem;
    color: var(--g784-primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.g784-game-section {
    padding: 1rem 0;
}

.g784-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g784-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g784-game-item:hover {
    transform: scale(1.05);
}

.g784-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid var(--g784-border);
}

.g784-game-name {
    font-size: 1.1rem;
    color: var(--g784-text);
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Label */
.g784-category-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g784-gold);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--g784-accent);
}

/* Info Cards */
.g784-info-card {
    background: var(--g784-card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--g784-shadow);
}

.g784-info-card h3 {
    font-size: 1.6rem;
    color: var(--g784-gold);
    margin-bottom: 1rem;
}

.g784-info-card p {
    font-size: 1.3rem;
    color: var(--g784-text);
    line-height: 1.8rem;
    margin-bottom: 1rem;
}

.g784-info-card ul {
    list-style: none;
    padding-left: 1rem;
}

.g784-info-card li {
    font-size: 1.3rem;
    color: var(--g784-text);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.g784-info-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--g784-accent);
}

/* FAQ Section */
.g784-faq-item {
    background: var(--g784-card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.g784-faq-q {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g784-gold);
    margin-bottom: 0.8rem;
}

.g784-faq-a {
    font-size: 1.3rem;
    color: var(--g784-text);
    line-height: 1.6rem;
}

/* CTA Button */
.g784-cta-btn {
    display: inline-block;
    background: var(--g784-accent);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.g784-cta-btn:hover {
    background: var(--g784-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Footer */
.g784-footer {
    background: var(--g784-card-bg);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.g784-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g784-footer-link {
    font-size: 1.2rem;
    color: var(--g784-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--g784-bg);
}

.g784-footer-link:hover {
    color: var(--g784-gold);
}

.g784-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.g784-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.g784-partner-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.g784-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g784-primary);
    margin-top: 1.5rem;
}

/* Mobile Bottom Navigation */
.g784-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--g784-card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .g784-bottom-nav {
        display: none;
    }
}

.g784-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;
    color: var(--g784-primary);
}

.g784-nav-item:hover,
.g784-nav-item-active {
    color: var(--g784-gold);
    transform: scale(1.1);
}

.g784-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.g784-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Link Style */
.g784-promo-link {
    color: var(--g784-accent);
    font-weight: 600;
    cursor: pointer;
}

.g784-promo-link:hover {
    color: var(--g784-gold);
    text-decoration: underline;
}

/* RTP Bar */
.g784-rtp-bar {
    background: var(--g784-card-bg);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
}

.g784-rtp-label {
    font-size: 1.2rem;
    color: var(--g784-primary);
    margin-bottom: 0.5rem;
}

.g784-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g784-gold);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .g784-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g784-btn {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
}
