/**
 * WK777 Login Universal CSS Module
 * All classes use g3ba- prefix
 * Color Scheme: #FF1493 (Deep Pink) | #0C0C0C (Almost Black) | #F08080 (Light Coral) | #A0522D (Sienna)
 * Version: 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
    --g3ba-primary: #FF1493;
    --g3ba-secondary: #F08080;
    --g3ba-accent: #A0522D;
    --g3ba-bg-dark: #0C0C0C;
    --g3ba-bg-darker: #060606;
    --g3ba-text-light: #FFFFFF;
    --g3ba-text-gray: #CCCCCC;
    --g3ba-border: rgba(255, 20, 147, 0.2);
    --g3ba-shadow: rgba(255, 20, 147, 0.3);
    --g3ba-transition: all 0.3s ease;
}

/* ===== Base Reset ===== */
* {
    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;
    color: var(--g3ba-text-light);
    background-color: var(--g3ba-bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout Containers ===== */
.g3ba-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.g3ba-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}

.g3ba-main {
    flex: 1;
    padding-top: 70px;
    padding-bottom: 2rem;
}

/* ===== Header Navigation ===== */
.g3ba-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g3ba-bg-darker) 0%, var(--g3ba-bg-dark) 100%);
    border-bottom: 2px solid var(--g3ba-primary);
    box-shadow: 0 4px 12px var(--g3ba-shadow);
}

.g3ba-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    gap: 1rem;
}

.g3ba-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
}

.g3ba-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.g3ba-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g3ba-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g3ba-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g3ba-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g3ba-text-light);
    background: linear-gradient(135deg, var(--g3ba-primary) 0%, var(--g3ba-secondary) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--g3ba-transition);
    white-space: nowrap;
    min-height: 44px;
}

.g3ba-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--g3ba-shadow);
}

.g3ba-btn:active {
    transform: translateY(0);
}

.g3ba-btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    min-height: 36px;
}

.g3ba-hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.g3ba-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--g3ba-primary);
    border-radius: 3px;
    transition: var(--g3ba-transition);
}

.g3ba-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.g3ba-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.g3ba-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Mobile Menu ===== */
.g3ba-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g3ba-transition);
}

.g3ba-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g3ba-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--g3ba-bg-darker);
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    border-left: 2px solid var(--g3ba-primary);
}

.g3ba-menu-active {
    right: 0;
}

.g3ba-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--g3ba-border);
}

.g3ba-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g3ba-primary);
}

.g3ba-menu-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--g3ba-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g3ba-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.g3ba-nav-link {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--g3ba-text-gray);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--g3ba-transition);
}

.g3ba-nav-link:hover,
.g3ba-nav-link.g3ba-active {
    background: rgba(255, 20, 147, 0.1);
    color: var(--g3ba-primary);
}

/* ===== Bottom Navigation (Mobile) ===== */
.g3ba-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(0deg, var(--g3ba-bg-darker) 0%, var(--g3ba-bg-dark) 100%);
    border-top: 2px solid var(--g3ba-primary);
    box-shadow: 0 -4px 12px var(--g3ba-shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0.5rem 0;
}

.g3ba-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 60px;
    min-height: 60px;
    color: var(--g3ba-text-gray);
    text-decoration: none;
    transition: var(--g3ba-transition);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.g3ba-bottom-nav-btn i {
    font-size: 2.4rem;
}

.g3ba-bottom-nav-btn span {
    font-size: 1.1rem;
    font-weight: 500;
}

.g3ba-bottom-nav-btn:hover,
.g3ba-bottom-nav-btn.g3ba-active {
    color: var(--g3ba-primary);
    transform: scale(1.05);
}

@media (min-width: 769px) {
    .g3ba-bottom-nav {
        display: none;
    }
    .g3ba-wrapper {
        padding-bottom: 0;
    }
}

/* ===== Carousel ===== */
.g3ba-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.g3ba-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g3ba-carousel-slide-active {
    opacity: 1;
}

.g3ba-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g3ba-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.g3ba-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g3ba-transition);
    border: none;
    padding: 0;
}

.g3ba-carousel-dot-active {
    background: var(--g3ba-primary);
    width: 24px;
    border-radius: 5px;
}

/* ===== Typography ===== */
.g3ba-heading-1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--g3ba-primary);
    margin-bottom: 1.6rem;
    line-height: 1.3;
}

.g3ba-heading-2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g3ba-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.g3ba-heading-3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g3ba-text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.g3ba-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--g3ba-text-gray);
    margin-bottom: 1rem;
}

.g3ba-link {
    color: var(--g3ba-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--g3ba-transition);
}

.g3ba-link:hover {
    color: var(--g3ba-secondary);
    text-decoration: underline;
}

/* ===== Game Grid ===== */
.g3ba-game-section {
    margin-bottom: 3rem;
}

.g3ba-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--g3ba-border);
}

.g3ba-section-icon {
    font-size: 2.4rem;
    color: var(--g3ba-primary);
}

.g3ba-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.g3ba-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--g3ba-transition);
}

.g3ba-game-card:hover {
    transform: translateY(-4px);
}

.g3ba-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--g3ba-border);
    transition: var(--g3ba-transition);
}

.g3ba-game-card:hover .g3ba-game-icon {
    border-color: var(--g3ba-primary);
    box-shadow: 0 4px 12px var(--g3ba-shadow);
}

.g3ba-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g3ba-game-name {
    font-size: 1.2rem;
    color: var(--g3ba-text-gray);
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}

/* ===== Content Sections ===== */
.g3ba-content-section {
    background: rgba(255, 20, 147, 0.05);
    border: 1px solid var(--g3ba-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.g3ba-card {
    background: rgba(160, 82, 45, 0.1);
    border: 1px solid rgba(160, 82, 45, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.g3ba-list {
    list-style: none;
    padding-left: 0;
}

.g3ba-list-item {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--g3ba-text-gray);
    font-size: 1.5rem;
}

.g3ba-list-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--g3ba-primary);
    font-weight: bold;
}

/* ===== Footer ===== */
.g3ba-footer {
    background: var(--g3ba-bg-darker);
    border-top: 2px solid var(--g3ba-primary);
    padding: 3rem 1.6rem 10rem;
    margin-top: 3rem;
}

.g3ba-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.g3ba-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g3ba-footer-link {
    color: var(--g3ba-text-gray);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--g3ba-transition);
    padding: 0.5rem;
}

.g3ba-footer-link:hover {
    color: var(--g3ba-primary);
}

.g3ba-partners {
    margin: 2rem 0;
}

.g3ba-partners-title {
    font-size: 1.6rem;
    color: var(--g3ba-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.g3ba-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
}

.g3ba-partner-logo {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: var(--g3ba-transition);
    filter: grayscale(100%);
}

.g3ba-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.g3ba-copyright {
    text-align: center;
    color: var(--g3ba-text-gray);
    font-size: 1.3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--g3ba-border);
}

/* ===== Utility Classes ===== */
.g3ba-mt-1 { margin-top: 1rem; }
.g3ba-mt-2 { margin-top: 2rem; }
.g3ba-mt-3 { margin-top: 3rem; }
.g3ba-mb-1 { margin-bottom: 1rem; }
.g3ba-mb-2 { margin-bottom: 2rem; }
.g3ba-mb-3 { margin-bottom: 3rem; }
.g3ba-text-center { text-align: center; }
.g3ba-text-bold { font-weight: 700; }
.g3ba-text-primary { color: var(--g3ba-primary); }
.g3ba-text-secondary { color: var(--g3ba-secondary); }

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .g3ba-main {
        padding-bottom: 80px;
    }
}
