/**
 * JL11 - Main Stylesheet
 * All classes use sa34- prefix for namespace isolation
 * Color palette: #1C2833 | #48D1CC | #9AFF9A | #B0E0E6 | #40E0D0
 */

/* CSS Variables */
:root {
    --sa34-primary: #48D1CC;
    --sa34-secondary: #40E0D0;
    --sa34-accent: #9AFF9A;
    --sa34-light: #B0E0E6;
    --sa34-dark: #1C2833;
    --sa34-darker: #0f1820;
    --sa34-text: #ffffff;
    --sa34-text-muted: #B0E0E6;
    --sa34-border: #40E0D0;
    --sa34-shadow: rgba(72, 209, 204, 0.3);
}

/* 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;
    background-color: var(--sa34-dark);
    color: var(--sa34-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.sa34-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.sa34-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--sa34-darker) 0%, var(--sa34-dark) 100%);
    border-bottom: 2px solid var(--sa34-primary);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sa34-shadow);
}

.sa34-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.sa34-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--sa34-text);
    font-weight: 700;
    font-size: 1.8rem;
}

.sa34-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sa34-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.sa34-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;
}

.sa34-btn-register {
    background: linear-gradient(135deg, var(--sa34-primary) 0%, var(--sa34-secondary) 100%);
    color: var(--sa34-dark);
}

.sa34-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--sa34-shadow);
}

.sa34-btn-login {
    background: transparent;
    color: var(--sa34-primary);
    border: 2px solid var(--sa34-primary);
}

.sa34-btn-login:hover {
    background: var(--sa34-primary);
    color: var(--sa34-dark);
}

.sa34-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--sa34-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sa34-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--sa34-darker) 0%, var(--sa34-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 4rem 1.5rem 2rem;
    overflow-y: auto;
    border-left: 2px solid var(--sa34-primary);
}

.sa34-mobile-menu.sa34-menu-open {
    right: 0;
}

.sa34-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--sa34-text);
    font-size: 2rem;
    cursor: pointer;
}

.sa34-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sa34-mobile-menu-link {
    padding: 1rem;
    color: var(--sa34-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.sa34-mobile-menu-link:hover {
    background: var(--sa34-primary);
    color: var(--sa34-dark);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.sa34-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.sa34-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sa34-carousel-slide.sa34-active {
    opacity: 1;
}

.sa34-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa34-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero Section */
.sa34-hero {
    text-align: center;
    padding: 2rem 0;
}

.sa34-hero h1 {
    font-size: 2rem;
    color: var(--sa34-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Game Section */
.sa34-section {
    margin-bottom: 2rem;
}

.sa34-section-title {
    font-size: 1.8rem;
    color: var(--sa34-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sa34-border);
}

/* Game Grid */
.sa34-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.sa34-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--sa34-text);
    transition: transform 0.3s ease;
}

.sa34-game-item:hover {
    transform: scale(1.05);
}

.sa34-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--sa34-darker);
    border: 1px solid var(--sa34-border);
}

.sa34-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa34-game-name {
    font-size: 1rem;
    text-align: center;
    color: var(--sa34-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Card */
.sa34-card {
    background: linear-gradient(135deg, rgba(72, 209, 204, 0.1) 0%, rgba(64, 224, 208, 0.05) 100%);
    border: 1px solid var(--sa34-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sa34-card h3 {
    color: var(--sa34-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.sa34-card p {
    color: var(--sa34-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sa34-card ul {
    list-style: none;
    padding-left: 0;
}

.sa34-card li {
    color: var(--sa34-text-muted);
    font-size: 1.4rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sa34-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--sa34-primary);
}

/* Links */
.sa34-link {
    color: var(--sa34-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sa34-link:hover {
    color: var(--sa34-accent);
    text-decoration: underline;
}

/* Button Styles */
.sa34-btn-promo {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--sa34-primary) 0%, var(--sa34-secondary) 100%);
    color: var(--sa34-dark);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sa34-btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--sa34-shadow);
}

/* Footer */
.sa34-footer {
    background: linear-gradient(180deg, var(--sa34-darker) 0%, var(--sa34-dark) 100%);
    border-top: 2px solid var(--sa34-primary);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.sa34-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sa34-footer-link {
    color: var(--sa34-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sa34-footer-link:hover {
    color: var(--sa34-primary);
}

.sa34-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sa34-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sa34-partner-logo:hover {
    opacity: 1;
}

.sa34-copyright {
    text-align: center;
    color: var(--sa34-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation (Mobile) */
.sa34-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--sa34-darker) 0%, var(--sa34-dark) 100%);
    border-top: 2px solid var(--sa34-primary);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--sa34-shadow);
}

@media (min-width: 769px) {
    .sa34-bottom-nav {
        display: none;
    }
}

.sa34-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    text-decoration: none;
    color: var(--sa34-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.3rem;
}

.sa34-bottom-nav-item:hover,
.sa34-bottom-nav-item.sa34-active {
    color: var(--sa34-primary);
    background: rgba(72, 209, 204, 0.1);
}

.sa34-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 0.2rem;
}

.sa34-bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
    .sa34-menu-toggle {
        display: block;
    }

    .sa34-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .sa34-carousel {
        height: 300px;
    }
}

/* Animations */
@keyframes sa34-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sa34-fade-in {
    animation: sa34-fadeIn 0.5s ease;
}

/* Utility Classes */
.sa34-text-center {
    text-align: center;
}

.sa34-mb-1 {
    margin-bottom: 1rem;
}

.sa34-mb-2 {
    margin-bottom: 2rem;
}

.sa34-text-primary {
    color: var(--sa34-primary);
}

.sa34-text-accent {
    color: var(--sa34-accent);
}

/* Loaded State */
body.sa34-loaded * {
    animation-play-state: running;
}
