/**
 * JL29 Gaming Platform - Theme Stylesheet
 * Website: 29jl29.club
 * Class Prefix: g562-
 * Color Palette: #1B263B (Dark Navy) | #BC8F8F (Rose)
 */

/* ========================================
   CSS Variables & Root Styles
======================================== */
:root {
    --g562-primary: #1B263B;
    --g562-secondary: #BC8F8F;
    --g562-accent: #E8D4C4;
    --g562-dark: #0D1B2A;
    --g562-light: #F5F0EB;
    --g562-white: #FFFFFF;
    --g562-gray: #8B9CAD;
    --g562-success: #4CAF50;
    --g562-warning: #FF9800;
    --g562-gradient: linear-gradient(135deg, #1B263B 0%, #2D3E50 100%);
    --g562-gradient-accent: linear-gradient(135deg, #BC8F8F 0%, #D4A9A9 100%);
    --g562-shadow: 0 4px 20px rgba(27, 38, 59, 0.3);
    --g562-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --g562-radius: 12px;
    --g562-radius-sm: 8px;
    --g562-transition: all 0.3s ease;
}

/* ========================================
   Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--g562-light);
    color: var(--g562-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g562-transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Header Styles
======================================== */
.g562-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g562-gradient);
    padding: 12px 16px;
    transition: var(--g562-transition);
}

.g562-header-scrolled {
    background: rgba(27, 38, 59, 0.98);
    box-shadow: var(--g562-shadow);
}

.g562-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g562-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g562-logo-img {
    width: 40px;
    height: 40px;
}

.g562-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g562-white);
    letter-spacing: 1px;
}

.g562-logo-text span {
    color: var(--g562-secondary);
}

.g562-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.g562-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--g562-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--g562-transition);
    font-size: 0.9rem;
}

.g562-btn-login {
    background: transparent;
    border: 2px solid var(--g562-secondary);
    color: var(--g562-secondary);
}

.g562-btn-login:hover {
    background: var(--g562-secondary);
    color: var(--g562-white);
}

.g562-btn-register {
    background: var(--g562-gradient-accent);
    color: var(--g562-white);
}

.g562-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(188, 143, 143, 0.4);
}

.g562-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--g562-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   Navigation Styles
======================================== */
.g562-nav {
    display: none;
}

.g562-nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
}

.g562-nav-link {
    color: var(--g562-white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.g562-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--g562-secondary);
    transition: var(--g562-transition);
}

.g562-nav-link:hover::after {
    width: 100%;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .g562-nav {
        display: block;
    }

    .g562-menu-toggle {
        display: none;
    }
}

/* ========================================
   Mobile Menu
======================================== */
.g562-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--g562-gradient);
    z-index: 9999;
    transition: var(--g562-transition);
    padding: 80px 24px 24px;
    overflow-y: auto;
}

.pro622-menu-active {
    right: 0;
}

.g562-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--g562-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.g562-mobile-nav-list {
    list-style: none;
    padding: 0;
}

.g562-mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g562-mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: var(--g562-white);
    font-size: 1rem;
    transition: var(--g562-transition);
}

.g562-mobile-nav-link:hover {
    color: var(--g562-secondary);
    padding-left: 10px;
}

.g562-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(--g562-transition);
}

.pro622-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
======================================== */
.g562-hero {
    background: var(--g562-gradient);
    padding: 120px 16px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.g562-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(188,143,143,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    animation: g562float 20s linear infinite;
}

@keyframes g562float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.g562-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.g562-hero-title {
    font-size: 2.2rem;
    color: var(--g562-white);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.g562-hero-title span {
    color: var(--g562-secondary);
}

.g562-hero-desc {
    font-size: 1rem;
    color: var(--g562-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.g562-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.g562-btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ========================================
   Main Content
======================================== */
.g562-main {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .g562-main {
        padding-bottom: 80px;
    }
}

/* ========================================
   Section Styles
======================================== */
.g562-section {
    margin-bottom: 40px;
}

.g562-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.g562-section-title {
    font-size: 1.4rem;
    color: var(--g562-primary);
    font-weight: 700;
    position: relative;
    padding-left: 16px;
}

.g562-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--g562-gradient-accent);
    border-radius: 2px;
}

.g562-section-link {
    color: var(--g562-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========================================
   Game Filter
======================================== */
.g562-filter-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.g562-filter-container::-webkit-scrollbar {
    height: 4px;
}

.g562-filter-container::-webkit-scrollbar-thumb {
    background: var(--g562-secondary);
    border-radius: 2px;
}

.pro622-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--g562-primary);
    background: transparent;
    color: var(--g562-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--g562-transition);
}

.pro622-filter-btn:hover,
.pro622-filter-active {
    background: var(--g562-primary);
    color: var(--g562-white);
}

/* ========================================
   Game Grid
======================================== */
.g562-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .g562-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) {
    .g562-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .g562-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.g562-game-card {
    background: var(--g562-white);
    border-radius: var(--g562-radius);
    overflow: hidden;
    box-shadow: var(--g562-shadow-light);
    transition: var(--g562-transition);
    cursor: pointer;
}

.g562-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g562-shadow);
}

.g562-game-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.g562-game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--g562-transition);
}

.g562-game-card:hover .g562-game-img {
    transform: scale(1.1);
}

.g562-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 38, 59, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--g562-transition);
}

.g562-game-card:hover .g562-game-overlay {
    opacity: 1;
}

.g562-game-play-btn {
    padding: 10px 24px;
    background: var(--g562-gradient-accent);
    color: var(--g562-white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--g562-transition);
}

.g562-game-play-btn:hover {
    transform: scale(1.05);
}

.g562-game-info {
    padding: 10px;
    text-align: center;
}

.g562-game-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--g562-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Features Section
======================================== */
.g562-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 769px) {
    .g562-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.g562-feature-card {
    background: var(--g562-white);
    padding: 24px 16px;
    border-radius: var(--g562-radius);
    text-align: center;
    box-shadow: var(--g562-shadow-light);
    transition: var(--g562-transition);
}

.g562-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g562-shadow);
}

.g562-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--g562-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.g562-feature-icon i {
    font-size: 1.5rem;
    color: var(--g562-secondary);
}

.g562-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--g562-primary);
    margin-bottom: 8px;
}

.g562-feature-desc {
    font-size: 0.85rem;
    color: var(--g562-gray);
    line-height: 1.5;
}

/* ========================================
   Promo Banner
======================================== */
.g562-promo-banner {
    background: var(--g562-gradient-accent);
    border-radius: var(--g562-radius);
    padding: 24px;
    text-align: center;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.g562-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: g562pulse 3s ease-in-out infinite;
}

@keyframes g562pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.g562-promo-content {
    position: relative;
    z-index: 1;
}

.g562-promo-title {
    font-size: 1.4rem;
    color: var(--g562-white);
    font-weight: 700;
    margin-bottom: 8px;
}

.g562-promo-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* ========================================
   Accordion Styles
======================================== */
.g562-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.g562-accordion-item {
    background: var(--g562-white);
    border-radius: var(--g562-radius);
    overflow: hidden;
    box-shadow: var(--g562-shadow-light);
}

.g562-accordion-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--g562-transition);
}

.g562-accordion-header:hover {
    background: rgba(188, 143, 143, 0.1);
}

.g562-accordion-title {
    font-weight: 600;
    color: var(--g562-primary);
}

.g562-accordion-icon {
    color: var(--g562-secondary);
    transition: var(--g562-transition);
}

.g562-accordion-active .g562-accordion-icon {
    transform: rotate(180deg);
}

.g562-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.g562-accordion-body {
    padding: 0 20px 20px;
    color: var(--g562-gray);
    line-height: 1.7;
}

/* ========================================
   Footer Styles
======================================== */
.g562-footer {
    background: var(--g562-gradient);
    padding: 40px 16px 20px;
    margin-top: 40px;
}

.g562-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.g562-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .g562-footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

.g562-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.g562-footer-desc {
    color: var(--g562-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.g562-footer-title {
    color: var(--g562-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.g562-footer-links {
    list-style: none;
}

.g562-footer-link {
    display: block;
    padding: 8px 0;
    color: var(--g562-gray);
    font-size: 0.9rem;
    transition: var(--g562-transition);
}

.g562-footer-link:hover {
    color: var(--g562-secondary);
    padding-left: 8px;
}

.g562-partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.g562-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: var(--g562-transition);
}

.g562-partner-logo:hover {
    filter: none;
}

.g562-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.g562-copyright {
    color: var(--g562-gray);
    font-size: 0.85rem;
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.g562-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--g562-gradient);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .g562-bottom-nav {
        display: none;
    }
}

.g562-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    color: var(--g562-gray);
    transition: var(--g562-transition);
    border-radius: 12px;
}

.g562-nav-item:hover,
.g562-nav-item-active {
    color: var(--g562-secondary);
    background: rgba(188, 143, 143, 0.15);
}

.g562-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.g562-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* ========================================
   Toast Notification
======================================== */
.g562-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--g562-primary);
    color: var(--g562-white);
    padding: 12px 24px;
    border-radius: var(--g562-radius-sm);
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--g562-transition);
    z-index: 10000;
}

.g562-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   Animations
======================================== */
@keyframes pro622fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g562-fade-in {
    animation: pro622fadeIn 0.5s ease forwards;
}

/* ========================================
   Utility Classes
======================================== */
.g562-text-center { text-align: center; }
.g562-text-left { text-align: left; }
.g562-text-right { text-align: right; }
.g562-mb-1 { margin-bottom: 8px; }
.g562-mb-2 { margin-bottom: 16px; }
.g562-mb-3 { margin-bottom: 24px; }
.g562-mt-1 { margin-top: 8px; }
.g562-mt-2 { margin-top: 16px; }
.g562-mt-3 { margin-top: 24px; }
.g562-hidden { display: none; }
.g562-visible { display: block; }

/* Help Page Styles */
.g562-help-section {
    background: var(--g562-white);
    border-radius: var(--g562-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--g562-shadow-light);
}

.g562-help-title {
    font-size: 1.2rem;
    color: var(--g562-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.g562-help-content {
    color: var(--g562-gray);
    line-height: 1.8;
}

.g562-help-content p {
    margin-bottom: 12px;
}

.g562-help-content ul,
.g562-help-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.g562-help-content li {
    margin-bottom: 8px;
}

.g562-help-link {
    color: var(--g562-secondary);
    font-weight: 500;
}

.g562-help-link:hover {
    text-decoration: underline;
}

/* Page Header */
.g562-page-header {
    background: var(--g562-gradient);
    padding: 100px 16px 40px;
    text-align: center;
}

.g562-page-title {
    font-size: 1.8rem;
    color: var(--g562-white);
    font-weight: 700;
    margin-bottom: 8px;
}

.g562-page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--g562-gray);
}

.g562-breadcrumb-link {
    color: var(--g562-secondary);
}
