/* PlusAce Core Stylesheet - Mobile First Design */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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;
    color: #ffffff;
    background-color: #273746;
    min-height: 100vh;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --g2b2-primary: #9932CC;
    --g2b2-secondary: #BA55D3;
    --g2b2-accent: #8B008B;
    --g2b2-bg: #273746;
    --g2b2-bg-light: #2C3E50;
    --g2b2-text: #ECF0F1;
    --g2b2-text-muted: #BDC3C7;
    --g2b2-border: #34495E;
    --g2b2-shadow: rgba(0, 0, 0, 0.3);
}

/* Container and Layout */
.g2b2-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.g2b2-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.g2b2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g2b2-primary), var(--g2b2-accent));
    box-shadow: 0 2px 10px var(--g2b2-shadow);
    padding: 0.8rem 1rem;
}

.g2b2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.g2b2-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--g2b2-text);
    font-size: 1.8rem;
    font-weight: 700;
}

.g2b2-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g2b2-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.g2b2-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.g2b2-btn-primary {
    background: var(--g2b2-bg-light);
    color: var(--g2b2-primary);
}

.g2b2-btn-secondary {
    background: transparent;
    color: var(--g2b2-text);
    border: 2px solid var(--g2b2-text);
}

.g2b2-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--g2b2-shadow);
}

.g2b2-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.g2b2-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--g2b2-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.g2b2-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--g2b2-bg);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
    box-shadow: 2px 0 10px var(--g2b2-shadow);
}

.g2b2-menu-active {
    left: 0;
}

.g2b2-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g2b2-menu-active + .g2b2-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.g2b2-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.g2b2-menu-close {
    background: none;
    border: none;
    color: var(--g2b2-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.g2b2-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.g2b2-menu-nav a {
    padding: 1rem;
    color: var(--g2b2-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    font-size: 1.4rem;
}

.g2b2-menu-nav a:hover {
    background: var(--g2b2-bg-light);
}

/* Main Content */
main {
    margin-top: 60px;
    margin-bottom: 80px;
    flex: 1;
}

@media (min-width: 769px) {
    main {
        margin-bottom: 2rem;
    }
}

.g2b2-content {
    padding: 1.5rem 0;
}

/* Carousel */
.g2b2-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.g2b2-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g2b2-slide-active {
    opacity: 1;
}

.g2b2-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--g2b2-primary);
    margin: 1.5rem 0;
}

h2 {
    font-size: 1.8rem;
    color: var(--g2b2-secondary);
    margin: 1.2rem 0;
}

h3 {
    font-size: 1.6rem;
    color: var(--g2b2-text);
    margin: 1rem 0;
}

/* Game Grid */
.g2b2-game-section {
    margin: 2rem 0;
}

.g2b2-section-title {
    font-size: 1.8rem;
    color: var(--g2b2-primary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--g2b2-secondary);
}

.g2b2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.g2b2-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--g2b2-text);
    transition: transform 0.3s ease;
}

.g2b2-game-item:hover {
    transform: scale(1.05);
}

.g2b2-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 8px var(--g2b2-shadow);
}

.g2b2-game-name {
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Cards */
.g2b2-card {
    background: var(--g2b2-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px var(--g2b2-shadow);
}

.g2b2-card-title {
    font-size: 1.6rem;
    color: var(--g2b2-primary);
    margin-bottom: 1rem;
}

.g2b2-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--g2b2-text);
}

.g2b2-card-content p {
    margin-bottom: 1rem;
}

/* Links */
.g2b2-link {
    color: var(--g2b2-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.g2b2-link:hover {
    color: var(--g2b2-primary);
    text-decoration: underline;
}

.g2b2-promo-link {
    color: var(--g2b2-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(153, 50, 204, 0.1);
    border-radius: 6px;
    margin: 0.2rem;
    transition: all 0.3s ease;
}

.g2b2-promo-link:hover {
    background: rgba(153, 50, 204, 0.2);
    transform: translateY(-2px);
}

/* Bottom Navigation */
.g2b2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g2b2-accent), var(--g2b2-primary));
    box-shadow: 0 -2px 10px var(--g2b2-shadow);
    padding: 0.5rem 0;
}

.g2b2-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.g2b2-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--g2b2-text);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g2b2-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.g2b2-nav-active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.g2b2-nav-icon {
    font-size: 24px;
}

.g2b2-nav-text {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 769px) {
    .g2b2-bottom-nav {
        display: none;
    }
}

/* Footer */
.g2b2-footer {
    background: var(--g2b2-bg-light);
    padding: 2rem 0 6rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .g2b2-footer {
        padding-bottom: 2rem;
    }
}

.g2b2-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.g2b2-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.g2b2-footer-links a {
    color: var(--g2b2-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.g2b2-footer-links a:hover {
    color: var(--g2b2-primary);
    background: rgba(153, 50, 204, 0.1);
}

.g2b2-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g2b2-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.g2b2-partner-logo:hover {
    opacity: 1;
}

.g2b2-copyright {
    text-align: center;
    color: var(--g2b2-text-muted);
    font-size: 1.2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--g2b2-border);
}

/* Utility Classes */
.g2b2-text-center {
    text-align: center;
}

.g2b2-mt-1 { margin-top: 1rem; }
.g2b2-mt-2 { margin-top: 2rem; }
.g2b2-mb-1 { margin-bottom: 1rem; }
.g2b2-mb-2 { margin-bottom: 2rem; }

.g2b2-hidden {
    display: none;
}

/* Loading State */
body:not(.g2b2-loaded) {
    opacity: 0;
}

body.g2b2-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .g2b2-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .g2b2-container {
        max-width: 100%;
    }

    main {
        margin-top: 80px;
    }

    .g2b2-header {
        padding: 1rem 2rem;
    }

    .g2b2-carousel {
        height: 300px;
    }
}
