/**
 * JL5 Website Stylesheet
 * All classes use prefix: g8e4-
 * Color palette: #141414 | #B22222 | #BDC3C7 | #C71585
 */

/* CSS Variables */
:root {
    --g8e4-bg-primary: #141414;
    --g8e4-bg-secondary: #1a1a1a;
    --g8e4-bg-tertiary: #222222;
    --g8e4-accent-red: #B22222;
    --g8e4-accent-pink: #C71585;
    --g8e4-text-light: #BDC3C7;
    --g8e4-text-white: #ffffff;
    --g8e4-text-muted: #888888;
    --g8e4-border-color: #333333;
    --g8e4-gradient-main: linear-gradient(135deg, #B22222 0%, #C71585 100%);
    --g8e4-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g8e4-bg-primary);
    color: var(--g8e4-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g8e4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g8e4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g8e4-bg-secondary);
    border-bottom: 1px solid var(--g8e4-border-color);
    transition: all 0.3s ease;
}

.g8e4-header-scrolled {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
}

.g8e4-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.g8e4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g8e4-logo img {
    width: 28px;
    height: 28px;
}

.g8e4-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g8e4-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g8e4-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g8e4-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.g8e4-btn-login {
    background: transparent;
    border: 1px solid var(--g8e4-accent-red);
    color: var(--g8e4-accent-red);
}

.g8e4-btn-login:hover {
    background: var(--g8e4-accent-red);
    color: var(--g8e4-text-white);
}

.g8e4-btn-register {
    background: var(--g8e4-gradient-main);
    color: var(--g8e4-text-white);
}

.g8e4-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
}

.g8e4-menu-toggle {
    background: none;
    border: none;
    color: var(--g8e4-text-light);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g8e4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g8e4-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g8e4-menu-active {
    right: 0;
}

.g8e4-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;
}

.g8e4-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g8e4-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g8e4-border-color);
}

.g8e4-menu-close {
    background: none;
    border: none;
    color: var(--g8e4-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g8e4-menu-nav {
    list-style: none;
}

.g8e4-menu-nav li {
    margin-bottom: 0.5rem;
}

.g8e4-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--g8e4-text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g8e4-menu-nav a:hover {
    background: var(--g8e4-bg-tertiary);
    color: var(--g8e4-accent-pink);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g8e4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.g8e4-slides {
    position: relative;
    height: 180px;
}

.g8e4-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g8e4-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.g8e4-slide-active {
    opacity: 1;
}

.g8e4-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g8e4-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.g8e4-dot-active {
    background: var(--g8e4-accent-pink);
}

/* Section Titles */
.g8e4-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g8e4-text-white);
    margin: 2rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--g8e4-accent-red);
}

/* Game Grid */
.g8e4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g8e4-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g8e4-game-item:hover {
    transform: translateY(-5px);
}

.g8e4-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--g8e4-border-color);
    transition: border-color 0.3s ease;
}

.g8e4-game-item:hover .g8e4-game-img {
    border-color: var(--g8e4-accent-pink);
}

.g8e4-game-name {
    font-size: 1.1rem;
    color: var(--g8e4-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Info Sections */
.g8e4-info-section {
    background: var(--g8e4-bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--g8e4-border-color);
}

.g8e4-info-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g8e4-text-white);
    margin-bottom: 1rem;
}

.g8e4-info-text {
    color: var(--g8e4-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.g8e4-info-text a {
    color: var(--g8e4-accent-pink);
    font-weight: 600;
}

.g8e4-info-text a:hover {
    text-decoration: underline;
}

/* Features List */
.g8e4-features {
    display: grid;
    gap: 1rem;
}

.g8e4-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--g8e4-bg-tertiary);
    border-radius: 8px;
}

.g8e4-feature-icon {
    font-size: 2rem;
    color: var(--g8e4-accent-red);
}

.g8e4-feature-content h4 {
    font-size: 1.4rem;
    color: var(--g8e4-text-white);
    margin-bottom: 0.3rem;
}

.g8e4-feature-content p {
    font-size: 1.2rem;
    color: var(--g8e4-text-muted);
}

/* RTP Section */
.g8e4-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g8e4-rtp-item {
    background: var(--g8e4-bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.g8e4-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--g8e4-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g8e4-rtp-label {
    font-size: 1.1rem;
    color: var(--g8e4-text-muted);
}

/* CTA Button */
.g8e4-cta-btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: var(--g8e4-gradient-main);
    color: var(--g8e4-text-white);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    margin: 2rem 0;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.g8e4-cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(199, 21, 133, 0.4);
}

/* Footer */
.g8e4-footer {
    background: var(--g8e4-bg-secondary);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--g8e4-border-color);
}

.g8e4-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g8e4-footer-links a {
    color: var(--g8e4-text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g8e4-footer-links a:hover {
    color: var(--g8e4-accent-pink);
}

.g8e4-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g8e4-partners img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.g8e4-copyright {
    text-align: center;
    color: var(--g8e4-text-muted);
    font-size: 1.2rem;
}

/* Mobile Bottom Navigation */
.g8e4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--g8e4-bg-secondary);
    border-top: 1px solid var(--g8e4-border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .g8e4-bottom-nav {
        display: none;
    }
}

.g8e4-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;
}

.g8e4-nav-item:hover {
    transform: scale(1.1);
}

.g8e4-nav-icon {
    font-size: 22px;
    color: var(--g8e4-text-muted);
    margin-bottom: 2px;
}

.g8e4-nav-item:hover .g8e4-nav-icon,
.g8e4-nav-item.active .g8e4-nav-icon {
    color: var(--g8e4-accent-pink);
}

.g8e4-nav-text {
    font-size: 10px;
    color: var(--g8e4-text-muted);
}

.g8e4-nav-item:hover .g8e4-nav-text,
.g8e4-nav-item.active .g8e4-nav-text {
    color: var(--g8e4-accent-pink);
}

/* Promo Link Styles */
.g8e4-promo-link {
    color: var(--g8e4-accent-pink);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g8e4-promo-link:hover {
    color: var(--g8e4-accent-red);
    text-decoration: underline;
}

.g8e4-promo-bold {
    font-weight: 700;
    color: var(--g8e4-accent-red);
}

/* FAQ Section */
.g8e4-faq-item {
    background: var(--g8e4-bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.g8e4-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--g8e4-text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g8e4-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--g8e4-text-light);
    line-height: 1.6;
}

/* Achievements */
.g8e4-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.g8e4-achievement {
    text-align: center;
    padding: 1rem;
    background: var(--g8e4-bg-tertiary);
    border-radius: 8px;
}

.g8e4-achievement-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.g8e4-achievement-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g8e4-accent-pink);
}

/* Tricks/Tips */
.g8e4-tricks-list {
    list-style: none;
}

.g8e4-tricks-list li {
    padding: 1rem;
    background: var(--g8e4-bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.g8e4-tricks-list li span:first-child {
    color: var(--g8e4-accent-red);
    font-weight: 700;
}

/* Utilities */
.g8e4-text-center {
    text-align: center;
}

.g8e4-mb-1 {
    margin-bottom: 1rem;
}

.g8e4-mb-2 {
    margin-bottom: 2rem;
}

.g8e4-highlight {
    background: var(--g8e4-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
