/**
 * JILI PG Layout CSS
 * Author: jili pg
 * Description: Mobile-first responsive layout for JILI PG gaming platform
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #E9ECEF;
    background-color: #2C2C2C;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --wdc2a-primary: #DAA520;
    --wdc2a-secondary: #FFBF00;
    --wdc2a-accent: #004D40;
    --wdc2a-bg: #2C2C2C;
    --wdc2a-bg-light: #F0FDFF;
    --wdc2a-text: #E9ECEF;
    --wdc2a-text-dark: #2C2C2C;
    --wdc2a-border: #DAA520;
    --wdc2a-shadow: rgba(218, 165, 32, 0.2);
    --wdc2a-gradient: linear-gradient(135deg, #DAA520, #FFBF00);
    --wdc2a-container-max: 43rem;
    --wdc2a-header-height: 6rem;
    --wdc2a-footer-height: 6rem;
    --wdc2a-touch-size: 4.4rem;
}

/* Container and Layout */
.wdc2a-container {
    max-width: var(--wdc2a-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.wdc2a-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wdc2a-main {
    flex: 1;
    margin-top: var(--wdc2a-header-height);
    margin-bottom: var(--wdc2a-footer-height);
}

/* Header Styles */
.wdc2a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--wdc2a-header-height);
    background: linear-gradient(135deg, var(--wdc2a-bg) 0%, var(--wdc2a-accent) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--wdc2a-shadow);
    z-index: 1000;
    border-bottom: 1px solid var(--wdc2a-border);
}

.wdc2a-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    max-width: var(--wdc2a-container-max);
    margin: 0 auto;
}

.wdc2a-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--wdc2a-primary);
    text-decoration: none;
    cursor: pointer;
}

.wdc2a-logo-icon {
    width: 2.8rem;
    height: 2.8rem;
    margin-right: 0.8rem;
    object-fit: contain;
}

.wdc2a-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wdc2a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--wdc2a-touch-size);
    padding: 0.8rem 1.6rem;
    background: var(--wdc2a-gradient);
    color: var(--wdc2a-text-dark);
    border: none;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--wdc2a-shadow);
}

.wdc2a-btn:hover,
.wdc2a-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--wdc2a-shadow);
}

.wdc2a-btn:active,
.wdc2a-touch-active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--wdc2a-shadow);
}

.wdc2a-btn-outline {
    background: transparent;
    color: var(--wdc2a-primary);
    border: 2px solid var(--wdc2a-primary);
}

.wdc2a-btn-outline:hover {
    background: var(--wdc2a-primary);
    color: var(--wdc2a-text-dark);
}

/* Menu Toggle */
.wdc2a-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: var(--wdc2a-touch-size);
    height: var(--wdc2a-touch-size);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.wdc2a-menu-toggle span {
    width: 2.4rem;
    height: 0.2rem;
    background: var(--wdc2a-primary);
    margin: 0.2rem 0;
    transition: all 0.3s ease;
    border-radius: 0.1rem;
}

.wdc2a-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.wdc2a-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.wdc2a-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Navigation Menu */
.wdc2a-nav-menu {
    position: fixed;
    top: var(--wdc2a-header-height);
    left: 0;
    right: 0;
    background: var(--wdc2a-bg);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px var(--wdc2a-shadow);
    border-bottom: 1px solid var(--wdc2a-border);
}

.wdc2a-nav-menu.wdc2a-active {
    transform: translateY(0);
}

.wdc2a-nav-menu ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
    max-width: var(--wdc2a-container-max);
    margin: 0 auto;
}

.wdc2a-nav-menu li {
    border-bottom: 1px solid var(--wdc2a-accent);
}

.wdc2a-nav-menu li:last-child {
    border-bottom: none;
}

.wdc2a-nav-menu a {
    display: flex;
    align-items: center;
    min-height: var(--wdc2a-touch-size);
    padding: 1rem;
    color: var(--wdc2a-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.wdc2a-nav-menu a:hover,
.wdc2a-nav-menu a:active {
    color: var(--wdc2a-primary);
    background: rgba(218, 165, 32, 0.1);
}

/* Hero Section */
.wdc2a-hero {
    background: var(--wdc2a-gradient);
    color: var(--wdc2a-text-dark);
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.wdc2a-hero h1 {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.wdc2a-hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Carousel */
.wdc2a-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--wdc2a-shadow);
}

.wdc2a-carousel-slide {
    display: none;
    position: relative;
    cursor: pointer;
}

.wdc2a-carousel-slide.active {
    display: block;
}

.wdc2a-carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.wdc2a-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.wdc2a-carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wdc2a-carousel-dot.active {
    background: var(--wdc2a-primary);
}

/* Game Grid */
.wdc2a-game-section {
    margin-bottom: 3rem;
}

.wdc2a-game-section h2 {
    font-size: 2rem;
    color: var(--wdc2a-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.wdc2a-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.wdc2a-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--wdc2a-accent);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--wdc2a-text);
    border: 1px solid var(--wdc2a-border);
}

.wdc2a-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--wdc2a-shadow);
    border-color: var(--wdc2a-primary);
}

.wdc2a-game-icon {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.wdc2a-game-name {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    color: var(--wdc2a-text);
}

/* Content Sections */
.wdc2a-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--wdc2a-accent);
    border-radius: 1rem;
    border: 1px solid var(--wdc2a-border);
}

.wdc2a-section h2 {
    font-size: 2rem;
    color: var(--wdc2a-primary);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.wdc2a-section h3 {
    font-size: 1.6rem;
    color: var(--wdc2a-secondary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.wdc2a-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wdc2a-section ul {
    list-style: none;
    margin-bottom: 1rem;
}

.wdc2a-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.wdc2a-section li:last-child {
    border-bottom: none;
}

/* Footer */
.wdc2a-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wdc2a-bg);
    border-top: 1px solid var(--wdc2a-border);
    z-index: 1000;
}

.wdc2a-footer-content {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--wdc2a-text);
}

.wdc2a-footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wdc2a-footer-links a {
    color: var(--wdc2a-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.wdc2a-footer-links a:hover {
    color: var(--wdc2a-secondary);
}

.wdc2a-partners {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wdc2a-partner-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wdc2a-partner-icon:hover {
    opacity: 1;
}

/* Mobile Bottom Navigation */
.wdc2a-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: var(--wdc2a-bg);
    border-top: 1px solid var(--wdc2a-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 -2px 10px var(--wdc2a-shadow);
}

.wdc2a-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: var(--wdc2a-touch-size);
    min-height: var(--wdc2a-touch-size);
    color: var(--wdc2a-text);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
}

.wdc2a-mobile-nav-item:hover,
.wdc2a-mobile-nav-item.wdc2a-active {
    color: var(--wdc2a-primary);
    transform: translateY(-2px);
}

.wdc2a-mobile-nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.wdc2a-mobile-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Animations */
.wdc2a-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.wdc2a-fade-in.wdc2a-animate {
    opacity: 1;
    transform: translateY(0);
}

.wdc2a-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.wdc2a-slide-up.wdc2a-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wdc2a-main {
        margin-bottom: 8rem; /* Account for mobile bottom nav */
    }
    
    .wdc2a-hero h1 {
        font-size: 2rem;
    }
    
    .wdc2a-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
        gap: 0.8rem;
    }
    
    .wdc2a-game-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .wdc2a-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wdc2a-container {
        padding: 0 0.5rem;
    }
    
    .wdc2a-hero {
        padding: 2rem 1rem;
    }
    
    .wdc2a-hero h1 {
        font-size: 1.8rem;
    }
    
    .wdc2a-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
        gap: 0.5rem;
    }
    
    .wdc2a-game-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .wdc2a-game-name {
        font-size: 1rem;
    }
    
    .wdc2a-section {
        padding: 1rem;
    }
}

/* Utility Classes */
.wdc2a-text-center {
    text-align: center;
}

.wdc2a-text-primary {
    color: var(--wdc2a-primary);
}

.wdc2a-text-secondary {
    color: var(--wdc2a-secondary);
}

.wdc2a-bg-primary {
    background: var(--wdc2a-primary);
}

.wdc2a-bg-secondary {
    background: var(--wdc2a-secondary);
}

.wdc2a-mb-1 {
    margin-bottom: 1rem;
}

.wdc2a-mb-2 {
    margin-bottom: 2rem;
}

.wdc2a-mb-3 {
    margin-bottom: 3rem;
}

.wdc2a-p-1 {
    padding: 1rem;
}

.wdc2a-p-2 {
    padding: 2rem;
}

.wdc2a-hidden {
    display: none;
}

.wdc2a-visible {
    display: block;
}

/* Loading States */
.wdc2a-loading {
    position: relative;
    overflow: hidden;
}

.wdc2a-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Back to Top Button */
.wdc2a-back-to-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--wdc2a-gradient);
    border: none;
    border-radius: 50%;
    color: var(--wdc2a-text-dark);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px var(--wdc2a-shadow);
}

.wdc2a-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.wdc2a-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--wdc2a-shadow);
}

/* Print Styles */
@media print {
    .wdc2a-header,
    .wdc2a-footer,
    .wdc2a-mobile-nav,
    .wdc2a-back-to-top {
        display: none !important;
    }
    
    .wdc2a-main {
        margin: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}