/**
 * Arena Plus - Layout & Styles
 * Mobile-first responsive design
 * All classes use prefix 'gd8c-' to avoid conflicts
 */

/* ========== ROOT & RESET ========== */
:root {
    --gd8c-primary: #F08080;
    --gd8c-secondary: #CED4DA;
    --gd8c-dark: #1C2833;
    --gd8c-light: #F8F9FA;
    --gd8c-accent: #FF6B6B;
    --gd8c-success: #51CF66;
    --gd8c-warning: #FFD43B;
    --gd8c-bg-primary: #1C2833;
    --gd8c-bg-secondary: #2C3E50;
    --gd8c-text-light: #CED4DA;
    --gd8c-text-white: #FFFFFF;
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--gd8c-text-light);
    background-color: var(--gd8c-bg-primary);
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== HEADER & NAVIGATION ========== */
.gd8c-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--gd8c-bg-secondary) 0%, var(--gd8c-dark) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gd8c-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gd8c-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.gd8c-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gd8c-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd8c-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gd8c-btn-register,
.gd8c-btn-login {
    min-height: 44px;
    min-width: 80px;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gd8c-btn-register {
    background: linear-gradient(135deg, var(--gd8c-primary) 0%, var(--gd8c-accent) 100%);
    color: var(--gd8c-text-white);
}

.gd8c-btn-register:active {
    transform: scale(0.95);
}

.gd8c-btn-login {
    background: transparent;
    color: var(--gd8c-text-light);
    border: 2px solid var(--gd8c-primary);
}

.gd8c-btn-login:active {
    background: var(--gd8c-primary);
    color: var(--gd8c-text-white);
}

.gd8c-hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 10000;
}

.gd8c-hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--gd8c-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gd8c-hamburger.gd8c-active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.gd8c-hamburger.gd8c-active span:nth-child(2) {
    opacity: 0;
}

.gd8c-hamburger.gd8c-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.gd8c-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gd8c-bg-secondary);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 8rem 2rem 2rem;
}

.gd8c-mobile-menu.gd8c-menu-active {
    transform: translateX(0);
}

.gd8c-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gd8c-mobile-menu a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gd8c-text-light);
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--gd8c-dark);
    transition: all 0.3s ease;
}

.gd8c-mobile-menu a:active {
    background: var(--gd8c-primary);
    color: var(--gd8c-text-white);
    transform: scale(0.98);
}

/* ========== BOTTOM NAVIGATION (MOBILE) ========== */
.gd8c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--gd8c-bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.gd8c-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    color: var(--gd8c-text-light);
    transition: all 0.3s ease;
    flex: 1;
}

.gd8c-bottom-nav-btn i {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.gd8c-bottom-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

.gd8c-bottom-nav-btn:active,
.gd8c-bottom-nav-btn.gd8c-active {
    color: var(--gd8c-primary);
    transform: scale(1.05);
}

@media (min-width: 769px) {
    .gd8c-bottom-nav {
        display: none;
    }
}

/* ========== MAIN CONTENT ========== */
.gd8c-container {
    padding: 1.5rem;
    padding-bottom: 80px; /* Space for bottom nav on mobile */
}

@media (min-width: 769px) {
    .gd8c-container {
        padding-bottom: 2rem;
    }
}

.gd8c-section {
    margin-bottom: 3rem;
}

.gd8c-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gd8c-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gd8c-section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gd8c-text-light);
    margin-bottom: 1rem;
}

/* ========== CAROUSEL ========== */
.gd8c-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

.gd8c-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.gd8c-carousel-slide {
    min-width: 100%;
    cursor: pointer;
}

.gd8c-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

/* ========== GAME GRID ========== */
.gd8c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gd8c-game-card {
    background: var(--gd8c-bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gd8c-game-card:active {
    transform: scale(0.95);
}

.gd8c-game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gd8c-game-name {
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
    color: var(--gd8c-text-light);
    font-weight: 500;
    line-height: 1.2;
}

/* ========== BUTTONS ========== */
.gd8c-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    min-height: 44px;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd8c-btn-primary {
    background: linear-gradient(135deg, var(--gd8c-primary) 0%, var(--gd8c-accent) 100%);
    color: var(--gd8c-text-white);
    box-shadow: 0 4px 15px rgba(240, 128, 128, 0.4);
}

.gd8c-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(240, 128, 128, 0.4);
}

.gd8c-btn-secondary {
    background: var(--gd8c-bg-secondary);
    color: var(--gd8c-text-light);
    border: 2px solid var(--gd8c-primary);
}

.gd8c-btn-block {
    display: block;
    width: 100%;
    margin: 1rem 0;
}

/* ========== FOOTER ========== */
.gd8c-footer {
    background: var(--gd8c-bg-secondary);
    padding: 3rem 1.5rem 8rem;
    margin-top: 4rem;
}

.gd8c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gd8c-footer-link {
    color: var(--gd8c-text-light);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.gd8c-footer-link:active {
    color: var(--gd8c-primary);
}

.gd8c-partners {
    margin: 2rem 0;
}

.gd8c-partners-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gd8c-text-light);
    margin-bottom: 1rem;
}

.gd8c-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.gd8c-partner-logo {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gd8c-partner-logo:active {
    opacity: 1;
}

.gd8c-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gd8c-secondary);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(206, 212, 218, 0.2);
}

/* ========== UTILITY CLASSES ========== */
.gd8c-text-center {
    text-align: center;
}

.gd8c-text-primary {
    color: var(--gd8c-primary);
}

.gd8c-mt-1 { margin-top: 1rem; }
.gd8c-mt-2 { margin-top: 2rem; }
.gd8c-mb-1 { margin-bottom: 1rem; }
.gd8c-mb-2 { margin-bottom: 2rem; }

.gd8c-loaded {
    animation: gd8c-fadeIn 0.5s ease;
}

@keyframes gd8c-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
