/**
 * JL7 Website - Main Stylesheet
 * Version: 1.0.0
 * Mobile-First Responsive Design
 * Color Palette: #0D1117 (Background), #00FF7F (Accent)
 */

/* ===== CSS Variables ===== */
:root {
    --gb29-bg-primary: #0D1117;
    --gb29-bg-secondary: #161b22;
    --gb29-bg-tertiary: #21262d;
    --gb29-accent: #00FF7F;
    --gb29-accent-hover: #00cc66;
    --gb29-text-primary: #ffffff;
    --gb29-text-secondary: #8b949e;
    --gb29-text-muted: #6e7681;
    --gb29-border: #30363d;
    --gb29-shadow: rgba(0, 0, 0, 0.3);
    --gb29-gradient: linear-gradient(135deg, #00FF7F 0%, #00cc66 100%);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--gb29-bg-primary);
    color: var(--gb29-text-primary);
    overflow-x: hidden;
}

/* ===== Container & Layout ===== */
.gb29-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gb29-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-top: 80px;
        padding-bottom: 40px;
    }
}

/* ===== Header Styles ===== */
.gb29-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--gb29-bg-secondary);
    border-bottom: 1px solid var(--gb29-border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.gb29-header.gb29-header-scrolled {
    box-shadow: 0 2px 10px var(--gb29-shadow);
}

.gb29-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
}

.gb29-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gb29-text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.gb29-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.gb29-header-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.gb29-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gb29-btn-primary {
    background: var(--gb29-gradient);
    color: var(--gb29-bg-primary);
}

.gb29-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

.gb29-btn-secondary {
    background: transparent;
    color: var(--gb29-accent);
    border: 1px solid var(--gb29-accent);
}

.gb29-btn-secondary:hover {
    background: var(--gb29-accent);
    color: var(--gb29-bg-primary);
}

.gb29-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.gb29-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gb29-accent);
    transition: all 0.3s ease;
}

.gb29-menu-toggle:hover span {
    background-color: var(--gb29-accent-hover);
}

@media (min-width: 769px) {
    .gb29-menu-toggle {
        display: none;
    }
}

/* ===== Mobile Menu ===== */
.gb29-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gb29-bg-secondary);
    z-index: 9999;
    padding: 2rem 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.gb29-mobile-menu.gb29-menu-active {
    transform: translateX(0);
}

.gb29-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gb29-menu-item {
    padding: 1.5rem 2rem;
    color: var(--gb29-text-primary);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--gb29-border);
    transition: background-color 0.3s ease;
}

.gb29-menu-item:hover {
    background-color: var(--gb29-bg-tertiary);
    color: var(--gb29-accent);
}

.gb29-menu-item:last-child {
    border-bottom: none;
}

/* ===== Carousel ===== */
.gb29-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.gb29-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gb29-slide.gb29-slide-active {
    opacity: 1;
}

.gb29-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Section Styles ===== */
.gb29-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gb29-border);
}

.gb29-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gb29-text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gb29-section-title i {
    color: var(--gb29-accent);
}

/* ===== Game Grid ===== */
.gb29-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gb29-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gb29-game-item:hover {
    transform: scale(1.05);
}

.gb29-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gb29-bg-tertiary);
}

.gb29-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb29-game-name {
    font-size: 1.1rem;
    color: var(--gb29-text-primary);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Card Styles ===== */
.gb29-card {
    background-color: var(--gb29-bg-secondary);
    border: 1px solid var(--gb29-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.gb29-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gb29-accent);
}

.gb29-card-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--gb29-text-secondary);
}

.gb29-card-content p {
    margin-bottom: 1rem;
}

.gb29-card-content p:last-child {
    margin-bottom: 0;
}

/* ===== Link Styles ===== */
.gb29-link {
    color: var(--gb29-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gb29-link:hover {
    color: var(--gb29-accent-hover);
    text-decoration: underline;
}

/* ===== Bottom Navigation ===== */
.gb29-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--gb29-bg-secondary);
    border-top: 1px solid var(--gb29-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .gb29-bottom-nav {
        display: none;
    }
}

.gb29-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    text-decoration: none;
    color: var(--gb29-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.gb29-nav-item:hover {
    color: var(--gb29-accent);
}

.gb29-nav-item.gb29-nav-active {
    color: var(--gb29-accent);
}

.gb29-nav-icon {
    font-size: 22px;
    line-height: 1;
}

.gb29-nav-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

/* Touch feedback */
.gb29-nav-item:active {
    transform: scale(0.95);
}

.gb29-nav-item.gb29-touch-active {
    transform: scale(0.95);
}

/* ===== Footer ===== */
.gb29-footer {
    background-color: var(--gb29-bg-secondary);
    border-top: 1px solid var(--gb29-border);
    padding: 3rem 0 8rem 0;
}

@media (min-width: 769px) {
    .gb29-footer {
        padding-bottom: 3rem;
    }
}

.gb29-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gb29-footer-link {
    color: var(--gb29-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.gb29-footer-link:hover {
    color: var(--gb29-accent);
}

.gb29-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gb29-partner-logo {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gb29-partner-logo:hover {
    opacity: 1;
}

.gb29-copyright {
    text-align: center;
    color: var(--gb29-text-muted);
    font-size: 1.2rem;
}

/* ===== Utility Classes ===== */
.gb29-text-center {
    text-align: center;
}

.gb29-text-accent {
    color: var(--gb29-accent);
}

.gb29-mb-1 { margin-bottom: 1rem; }
.gb29-mb-2 { margin-bottom: 2rem; }
.gb29-mb-3 { margin-bottom: 3rem; }

.gb29-mt-1 { margin-top: 1rem; }
.gb29-mt-2 { margin-top: 2rem; }
.gb29-mt-3 { margin-top: 3rem; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 380px) {
    .gb29-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
