/**
 * JL66 Website CSS Module
 * @description Core styles for JL66 gaming platform
 * @version 1.0.0
 * @author JL66 Team
 */

/* CSS Variables with prefix */
:root {
    --g1db-primary: #B0E0E6;
    --g1db-secondary: #1B263B;
    --g1db-accent: #D8BFD8;
    --g1db-bg: #1B263B;
    --g1db-text: #B0E0E6;
    --g1db-text-dark: #1B263B;
    --g1db-light: #D8BFD8;
    --g1db-white: #ffffff;
    --g1db-shadow: rgba(176, 224, 230, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--g1db-bg);
    color: var(--g1db-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Container with prefix */
.g1db-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header with prefix */
.g1db-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g1db-secondary) 0%, #2a3f5f 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 8px var(--g1db-shadow);
    transition: all 0.3s ease;
}

.g1db-header.g1db-scrolled {
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
}

.g1db-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g1db-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g1db-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.g1db-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g1db-primary);
    letter-spacing: 0.5px;
}

.g1db-nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.g1db-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.g1db-btn-primary {
    background: linear-gradient(135deg, var(--g1db-primary) 0%, var(--g1db-light) 100%);
    color: var(--g1db-text-dark);
}

.g1db-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--g1db-shadow);
}

.g1db-btn-secondary {
    background: transparent;
    color: var(--g1db-primary);
    border: 2px solid var(--g1db-primary);
}

.g1db-btn-secondary:hover {
    background: var(--g1db-primary);
    color: var(--g1db-text-dark);
}

.g1db-menu-toggle {
    background: none;
    border: none;
    color: var(--g1db-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g1db-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--g1db-secondary) 0%, #1a2d4a 100%);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g1db-mobile-menu.g1db-active {
    left: 0;
}

.g1db-mobile-menu ul {
    list-style: none;
    margin-top: 3rem;
}

.g1db-mobile-menu li {
    margin-bottom: 1.5rem;
}

.g1db-mobile-menu a {
    color: var(--g1db-text);
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.g1db-mobile-menu a:hover {
    background: rgba(176, 224, 230, 0.1);
}

.g1db-mobile-menu i {
    font-size: 2rem;
    width: 24px;
}

/* Main Content */
main {
    margin-top: 60px;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.g1db-carousel {
    position: relative;
    width: 100%;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 1rem;
}

.g1db-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.g1db-slide:first-child {
    display: block;
}

.g1db-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}

/* Game Grid */
.g1db-game-section {
    padding: 2rem 0;
}

.g1db-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g1db-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.g1db-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g1db-game-card {
    background: rgba(176, 224, 230, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(176, 224, 230, 0.1);
}

.g1db-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--g1db-shadow);
    border-color: var(--g1db-primary);
}

.g1db-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g1db-game-card p {
    padding: 0.5rem;
    font-size: 1.1rem;
    color: var(--g1db-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.g1db-content-section {
    padding: 2rem 0;
    background: rgba(176, 224, 230, 0.03);
    margin: 1.5rem 0;
    border-radius: 1rem;
}

.g1db-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g1db-primary);
    margin-bottom: 1.5rem;
}

.g1db-content-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--g1db-text);
    margin-bottom: 1rem;
}

.g1db-content-text a {
    color: var(--g1db-light);
    text-decoration: underline;
    font-weight: 600;
}

.g1db-content-text a:hover {
    color: var(--g1db-primary);
}

/* Footer */
.g1db-footer {
    background: linear-gradient(180deg, var(--g1db-secondary) 0%, #0f1928 100%);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.g1db-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g1db-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--g1db-text);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.g1db-footer-link:hover {
    color: var(--g1db-primary);
}

.g1db-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin: 2rem 0;
}

.g1db-partner-logo {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g1db-partner-logo:hover {
    opacity: 1;
}

.g1db-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(176, 224, 230, 0.6);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(176, 224, 230, 0.1);
}

/* Mobile Bottom Navigation */
.g1db-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--g1db-secondary) 0%, #0f1928 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--g1db-shadow);
}

@media (min-width: 769px) {
    .g1db-mobile-nav {
        display: none;
    }
}

.g1db-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--g1db-text);
    transition: all 0.3s ease;
    cursor: pointer;
}

.g1db-nav-item:hover,
.g1db-nav-item.g1db-active {
    color: var(--g1db-primary);
    transform: scale(1.1);
}

.g1db-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.g1db-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.g1db-text-center {
    text-align: center;
}

.g1db-mt-2 {
    margin-top: 2rem;
}

.g1db-mb-2 {
    margin-bottom: 2rem;
}

.g1db-hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 430px) {
    html {
        font-size: 58%;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    html {
        font-size: 62.5%;
    }
}
