/**
 * JL59 - Main Stylesheet
 * Version: 1.0.0
 * Description: Mobile-first responsive styles for JL59 gaming platform
 */

/* CSS Variables */
:root {
    --s803-primary: #FF91A4;
    --s803-secondary: #2C3E50;
    --s803-accent: #FFB3BA;
    --s803-bg-dark: #1a1a2e;
    --s803-bg-light: #f8f9fa;
    --s803-text-light: #ffffff;
    --s803-text-dark: #2C3E50;
    --s803-border: #e0e0e0;
    --s803-shadow: rgba(0, 0, 0, 0.1);
    --s803-gradient: linear-gradient(135deg, #FF91A4 0%, #FFB3BA 100%);
    --s803-transition: all 0.3s ease;
}

/* 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.4rem;
    line-height: 1.5;
    color: var(--s803-text-dark);
    background-color: var(--s803-bg-light);
    overflow-x: hidden;
}

/* Container */
.s803-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.s803-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--s803-secondary);
    color: var(--s803-text-light);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--s803-shadow);
}

.s803-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s803-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--s803-text-light);
}

.s803-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.s803-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s803-primary);
}

.s803-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.s803-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s803-transition);
    text-decoration: none;
    display: inline-block;
}

.s803-btn-primary {
    background-color: var(--s803-primary);
    color: var(--s803-text-light);
}

.s803-btn-secondary {
    background-color: transparent;
    color: var(--s803-text-light);
    border: 1px solid var(--s803-primary);
}

.s803-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--s803-shadow);
}

.s803-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--s803-text-light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.s803-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--s803-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 4rem 1rem 2rem;
}

.s803-mobile-menu.s803-menu-open {
    right: 0;
}

.s803-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--s803-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.s803-menu-list {
    list-style: none;
}

.s803-menu-item {
    margin-bottom: 0.5rem;
}

.s803-menu-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--s803-text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--s803-transition);
    font-size: 1.4rem;
}

.s803-menu-link:hover,
.s803-menu-link.s803-active {
    background-color: var(--s803-primary);
    transform: translateX(5px);
}

/* Main Content */
.s803-main {
    margin-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.s803-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.s803-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.s803-carousel-slide {
    min-width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.s803-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s803-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.s803-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--s803-border);
    cursor: pointer;
    transition: var(--s803-transition);
}

.s803-carousel-indicator.s803-active {
    background-color: var(--s803-primary);
    transform: scale(1.2);
}

/* Section Titles */
.s803-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s803-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.s803-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--s803-gradient);
    border-radius: 2px;
}

/* Game Grid */
.s803-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.s803-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--s803-text-dark);
    transition: var(--s803-transition);
    border-radius: 8px;
    overflow: hidden;
}

.s803-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--s803-shadow);
}

.s803-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.3rem;
}

.s803-game-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Sections */
.s803-content-section {
    background-color: white;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--s803-shadow);
}

.s803-content-section h2 {
    font-size: 1.8rem;
    color: var(--s803-secondary);
    margin-bottom: 1rem;
}

.s803-content-section p {
    margin-bottom: 1rem;
    color: #555;
}

.s803-content-section a {
    color: var(--s803-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--s803-transition);
}

.s803-content-section a:hover {
    text-decoration: underline;
    color: var(--s803-secondary);
}

/* Feature List */
.s803-feature-list {
    list-style: none;
    padding: 0;
}

.s803-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--s803-bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--s803-primary);
}

.s803-feature-icon {
    color: var(--s803-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.s803-feature-text {
    flex: 1;
}

.s803-feature-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--s803-secondary);
}

.s803-feature-desc {
    font-size: 1.2rem;
    color: #666;
}

/* Bottom Navigation */
.s803-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--s803-secondary);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--s803-shadow);
}

.s803-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s803-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--s803-transition);
    padding: 0.5rem;
    border-radius: 4px;
}

.s803-bottom-nav-item:hover,
.s803-bottom-nav-item.s803-active {
    color: var(--s803-primary);
    background-color: rgba(255, 145, 164, 0.1);
    transform: scale(1.05);
}

.s803-bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.s803-bottom-nav-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer */
.s803-footer {
    background-color: var(--s803-secondary);
    color: var(--s803-text-light);
    padding: 3rem 1rem 5rem;
}

.s803-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.s803-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.s803-footer-link {
    color: var(--s803-text-light);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: var(--s803-transition);
    background-color: rgba(255, 255, 255, 0.1);
}

.s803-footer-link:hover {
    background-color: var(--s803-primary);
    transform: translateY(-2px);
}

.s803-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s803-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--s803-transition);
    border-radius: 4px;
}

.s803-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.s803-copyright {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Animations */
@keyframes s803-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s803-animate-on-scroll {
    opacity: 0;
}

.s803-animate-on-scroll.s803-animated {
    animation: s803-fadeIn 0.6s ease forwards;
}

/* Responsive Design */
@media (min-width: 769px) {
    .s803-bottom-nav {
        display: none;
    }

    .s803-main {
        padding-bottom: 2rem;
    }

    .s803-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .s803-menu-toggle {
        display: block;
    }

    .s803-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.s803-text-center {
    text-align: center;
}

.s803-mb-1 {
    margin-bottom: 1rem;
}

.s803-mb-2 {
    margin-bottom: 2rem;
}

.s803-mt-1 {
    margin-top: 1rem;
}

.s803-mt-2 {
    margin-top: 2rem;
}

.s803-py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Touch Feedback */
.s803-touch-active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Link Prominent Styles */
.s803-promo-link {
    color: var(--s803-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(255, 145, 164, 0.1);
    transition: var(--s803-transition);
}

.s803-promo-link:hover {
    background-color: var(--s803-primary);
    color: var(--s803-text-light);
    transform: translateY(-2px);
}

/* Internal Link Styles */
.s803-internal-link {
    color: var(--s803-secondary);
    text-decoration: underline;
    font-weight: 500;
}

.s803-internal-link:hover {
    color: var(--s803-primary);
}
