/**
 * JL29 PH - Theme Stylesheet
 * All classes use ga0d- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --ga0d-primary: #0000FF;
    --ga0d-secondary: #00BFFF;
    --ga0d-accent: #880E4F;
    --ga0d-dark: #212F3D;
    --ga0d-darker: #1a2530;
    --ga0d-light: #f8f9fa;
    --ga0d-white: #ffffff;
    --ga0d-gray: #6c757d;
    --ga0d-border: #dee2e6;
    --ga0d-shadow: rgba(0, 0, 0, 0.15);
    --ga0d-gradient: linear-gradient(135deg, #0000FF 0%, #00BFFF 100%);
    --ga0d-gradient-accent: linear-gradient(135deg, #880E4F 0%, #212F3D 100%);
}

/* Reset and 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--ga0d-light);
    background-color: var(--ga0d-darker);
    min-height: 100vh;
}

/* Container */
.ga0d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.ga0d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--ga0d-dark) 0%, var(--ga0d-darker) 100%);
    border-bottom: 2px solid var(--ga0d-primary);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--ga0d-shadow);
}

.ga0d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.ga0d-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ga0d-white);
    font-weight: 700;
    font-size: 1.4rem;
}

.ga0d-logo img {
    width: 28px;
    height: 28px;
}

.ga0d-header-actions {
    display: flex;
    gap: 0.5rem;
}

.ga0d-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.ga0d-btn-primary {
    background: var(--ga0d-gradient);
    color: var(--ga0d-white);
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.3);
}

.ga0d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.5);
}

.ga0d-btn-secondary {
    background: transparent;
    color: var(--ga0d-secondary);
    border: 2px solid var(--ga0d-secondary);
}

.ga0d-btn-secondary:hover {
    background: var(--ga0d-secondary);
    color: var(--ga0d-white);
}

.ga0d-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ga0d-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation Menu */
.ga0d-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--ga0d-darker);
    border-bottom: 2px solid var(--ga0d-primary);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ga0d-mobile-menu.ga0d-menu-open {
    display: block;
    max-height: 500px;
    overflow-y: auto;
}

.ga0d-mobile-menu-inner {
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.ga0d-mobile-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--ga0d-light);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    transition: background 0.3s ease;
}

.ga0d-mobile-menu a:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--ga0d-secondary);
}

/* Main Content */
.ga0d-main {
    margin-top: 60px;
    padding: 1.5rem 0;
    padding-bottom: 80px;
    min-height: calc(100vh - 140px);
}

/* Carousel */
.ga0d-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
}

.ga0d-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ga0d-carousel-slide.ga0d-active {
    opacity: 1;
}

.ga0d-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ga0d-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: var(--ga0d-white);
}

.ga0d-carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ga0d-carousel-desc {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Content Sections */
.ga0d-section {
    background: var(--ga0d-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ga0d-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ga0d-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ga0d-section-title i {
    color: var(--ga0d-accent);
}

.ga0d-text {
    color: var(--ga0d-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ga0d-text a {
    color: var(--ga0d-secondary);
    text-decoration: none;
    font-weight: 600;
}

.ga0d-text a:hover {
    text-decoration: underline;
}

/* H1 Title */
.ga0d-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ga0d-white);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Game Grid */
.ga0d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.ga0d-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.ga0d-game-item:hover {
    transform: scale(1.05);
}

.ga0d-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    background: var(--ga0d-darker);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.ga0d-game-item:hover .ga0d-game-icon {
    border-color: var(--ga0d-secondary);
}

.ga0d-game-name {
    font-size: 1rem;
    color: var(--ga0d-light);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.ga0d-category {
    margin-bottom: 2rem;
}

.ga0d-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ga0d-accent);
}

.ga0d-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ga0d-secondary);
}

.ga0d-category-icon {
    color: var(--ga0d-accent);
    font-size: 1.4rem;
}

/* Link Button */
.ga0d-link-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--ga0d-gradient);
    color: var(--ga0d-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.3);
}

.ga0d-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.5);
}

/* Footer */
.ga0d-footer {
    background: linear-gradient(135deg, var(--ga0d-dark) 0%, var(--ga0d-darker) 100%);
    border-top: 2px solid var(--ga0d-primary);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.ga0d-footer-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ga0d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ga0d-footer-links a {
    color: var(--ga0d-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ga0d-footer-links a:hover {
    background: rgba(0, 191, 255, 0.1);
}

.ga0d-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ga0d-partner img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ga0d-partner img:hover {
    opacity: 1;
}

.ga0d-copyright {
    text-align: center;
    color: var(--ga0d-gray);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.ga0d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--ga0d-dark) 0%, var(--ga0d-darker) 100%);
    border-top: 2px solid var(--ga0d-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--ga0d-shadow);
}

.ga0d-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ga0d-light);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.3rem;
}

.ga0d-bottom-nav a:hover,
.ga0d-bottom-nav a.ga0d-active {
    background: rgba(0, 191, 255, 0.15);
    color: var(--ga0d-secondary);
}

.ga0d-bottom-nav i {
    font-size: 22px;
    margin-bottom: 0.2rem;
}

.ga0d-bottom-nav span {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
    .ga0d-bottom-nav {
        display: none;
    }

    .ga0d-main {
        padding-bottom: 1.5rem;
    }

    .ga0d-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .ga0d-bottom-nav {
        display: flex;
    }

    .ga0d-menu-toggle {
        display: block;
    }
}

/* Utility Classes */
.ga0d-mt-1 { margin-top: 1rem; }
.ga0d-mb-1 { margin-bottom: 1rem; }
.ga0d-mt-2 { margin-top: 2rem; }
.ga0d-mb-2 { margin-bottom: 2rem; }
.ga0d-text-center { text-align: center; }
.ga0d-font-bold { font-weight: 700; }
.ga0d-text-accent { color: var(--ga0d-secondary); }
