/**
 * JL44 Stylesheet - Mobile First Design
 * All classes use prefix: s08f-
 */

/* CSS Variables */
:root {
    --s08f-primary: #FF7F50;
    --s08f-bg: #2C3E50;
    --s08f-bg-dark: #1a252f;
    --s08f-text: #ecf0f1;
    --s08f-text-light: #bdc3c7;
    --s08f-border: #34495e;
    --s08f-white: #ffffff;
    --s08f-gradient: linear-gradient(135deg, #FF7F50 0%, #e6734a 100%);
}

/* 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, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s08f-text);
    background-color: var(--s08f-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--s08f-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--s08f-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s08f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.s08f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--s08f-bg-dark);
    border-bottom: 1px solid var(--s08f-border);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.s08f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.s08f-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--s08f-primary);
}

.s08f-logo-icon {
    width: 28px;
    height: 28px;
}

.s08f-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.s08f-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s08f-btn-primary {
    background: var(--s08f-gradient);
    color: var(--s08f-white);
}

.s08f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
}

.s08f-btn-outline {
    background: transparent;
    color: var(--s08f-primary);
    border: 2px solid var(--s08f-primary);
}

.s08f-btn-outline:hover {
    background: var(--s08f-primary);
    color: var(--s08f-white);
}

.s08f-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--s08f-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.s08f-mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--s08f-bg-dark);
    border-bottom: 1px solid var(--s08f-border);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.s08f-mobile-menu.s08f-menu-open {
    display: block;
    max-height: 500px;
}

.s08f-menu-list {
    list-style: none;
    padding: 1rem;
}

.s08f-menu-item {
    margin-bottom: 0.5rem;
}

.s08f-menu-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--s08f-text);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.s08f-menu-link:hover {
    background-color: var(--s08f-primary);
    color: var(--s08f-white);
}

/* Main Content */
.s08f-main {
    padding-top: 56px;
    padding-bottom: 80px;
}

.s08f-section {
    padding: 2rem 0;
}

.s08f-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--s08f-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Carousel */
.s08f-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 9;
}

.s08f-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.s08f-carousel-slide.s08f-active {
    opacity: 1;
}

.s08f-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Game Grid */
.s08f-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.s08f-game-item {
    background-color: var(--s08f-bg-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.s08f-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(255, 127, 80, 0.3);
}

.s08f-game-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.s08f-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--s08f-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card */
.s08f-card {
    background-color: var(--s08f-bg-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--s08f-border);
}

.s08f-card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--s08f-primary);
    margin-bottom: 1rem;
}

.s08f-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s08f-text-light);
}

/* FAQ */
.s08f-faq-item {
    background-color: var(--s08f-bg-dark);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--s08f-border);
}

.s08f-faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--s08f-primary);
    cursor: pointer;
}

.s08f-faq-answer {
    padding: 0 1.5rem 1rem;
    color: var(--s08f-text-light);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Bottom Navigation */
.s08f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--s08f-bg-dark);
    border-top: 1px solid var(--s08f-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
}

.s08f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--s08f-text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.s08f-nav-item:hover,
.s08f-nav-item.s08f-active {
    color: var(--s08f-primary);
}

.s08f-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.s08f-nav-text {
    font-size: 10px;
}

/* Footer */
.s08f-footer {
    background-color: var(--s08f-bg-dark);
    border-top: 1px solid var(--s08f-border);
    padding: 2rem 0 100px;
    margin-top: 2rem;
}

.s08f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s08f-footer-link {
    color: var(--s08f-text-light);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.s08f-footer-link:hover {
    color: var(--s08f-primary);
}

.s08f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s08f-partner-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.s08f-copyright {
    text-align: center;
    color: var(--s08f-text-light);
    font-size: 1.2rem;
}

/* Utility */
.s08f-text-center {
    text-align: center;
}

.s08f-mt-1 { margin-top: 1rem; }
.s08f-mt-2 { margin-top: 2rem; }
.s08f-mb-1 { margin-bottom: 1rem; }
.s08f-mb-2 { margin-bottom: 2rem; }

.s08f-hidden {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .s08f-bottom-nav {
        display: none;
    }

    .s08f-main {
        padding-bottom: 2rem;
    }

    .s08f-menu-toggle {
        display: block;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .s08f-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .s08f-game-name {
        font-size: 1rem;
        padding: 0.5rem;
    }
}
