/**
 * SportsPLUS Layout Styles
 * All classes use s55e- prefix for namespace isolation
 * Mobile-first responsive design with max-width 430px
 */

/* CSS Variables with s55e prefix */
:root {
    --s55e-primary: #FF4500;
    --s55e-secondary: #FA8072;
    --s55e-accent: #80CBC4;
    --s55e-dark: #273746;
    --s55e-darker: #1a2530;
    --s55e-light: #E0E0E0;
    --s55e-white: #FFFFFF;
    --s55e-red: #B22222;
    --s55e-success: #80CBC4;
    --s55e-warning: #FA8072;
    --s55e-border: #3a4a5c;
    --s55e-shadow: rgba(0, 0, 0, 0.3);
    --s55e-gradient: linear-gradient(135deg, #FF4500 0%, #FA8072 100%);
    --s55e-overlay: rgba(39, 55, 70, 0.95);
}

/* 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(--s55e-light);
    background-color: var(--s55e-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.s55e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.s55e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--s55e-darker);
    border-bottom: 2px solid var(--s55e-primary);
    z-index: 1000;
    transition: all 0.3s ease;
}

.s55e-header-scrolled {
    box-shadow: 0 2px 10px var(--s55e-shadow);
}

.s55e-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.s55e-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--s55e-white);
}

.s55e-logo-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 5px;
}

.s55e-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s55e-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.s55e-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.s55e-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.s55e-btn-primary {
    background: var(--s55e-gradient);
    color: var(--s55e-white);
}

.s55e-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.s55e-btn-secondary {
    background-color: transparent;
    color: var(--s55e-white);
    border: 2px solid var(--s55e-primary);
}

.s55e-btn-secondary:hover {
    background-color: var(--s55e-primary);
    color: var(--s55e-white);
}

/* Menu Toggle Button */
.s55e-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--s55e-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Overlay */
.s55e-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.s55e-overlay-show {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.s55e-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--s55e-overlay);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
}

.s55e-menu-open {
    right: 0;
}

.s55e-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--s55e-white);
    font-size: 2.5rem;
    cursor: pointer;
}

.s55e-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.s55e-menu-link {
    color: var(--s55e-light);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.s55e-menu-link:hover {
    background-color: var(--s55e-primary);
    color: var(--s55e-white);
    transform: translateX(5px);
}

/* Main Content */
.s55e-main {
    padding-top: 6rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

/* Carousel */
.s55e-carousel {
    position: relative;
    width: 100%;
    height: 18rem;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.s55e-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.s55e-carousel-slide {
    min-width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.s55e-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s55e-slide-active {
    z-index: 1;
}

/* Headings */
.s55e-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--s55e-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.s55e-h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s55e-secondary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s55e-primary);
}

.s55e-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s55e-accent);
    margin: 1.5rem 0 0.8rem;
}

/* Sections */
.s55e-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.s55e-game-section {
    margin-bottom: 2rem;
}

.s55e-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.s55e-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s55e-primary);
}

.s55e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s55e-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.s55e-game-item:active {
    transform: scale(0.95);
}

.s55e-game-item.s55e-touch-active {
    transform: scale(0.95);
}

.s55e-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.s55e-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s55e-game-name {
    font-size: 1rem;
    color: var(--s55e-light);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Cards */
.s55e-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--s55e-primary);
}

.s55e-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s55e-secondary);
    margin-bottom: 0.8rem;
}

.s55e-card-content {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--s55e-light);
}

.s55e-card-content p {
    margin-bottom: 0.8rem;
}

.s55e-card-content a {
    color: var(--s55e-primary);
    text-decoration: none;
    font-weight: 600;
}

.s55e-card-content a:hover {
    text-decoration: underline;
}

/* FAQ Items */
.s55e-faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.s55e-faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s55e-accent);
    margin-bottom: 0.5rem;
}

.s55e-faq-answer {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--s55e-light);
}

/* Promo Links */
.s55e-promo-link {
    color: var(--s55e-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.s55e-promo-link:hover {
    text-decoration: underline;
}

/* Footer */
.s55e-footer {
    background-color: var(--s55e-darker);
    padding: 2rem 1rem;
    border-top: 2px solid var(--s55e-primary);
}

.s55e-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.s55e-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.s55e-footer-link {
    color: var(--s55e-primary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    background-color: rgba(255, 69, 0, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.s55e-footer-link:hover {
    background-color: var(--s55e-primary);
    color: var(--s55e-white);
}

.s55e-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s55e-partner-icon {
    width: 4rem;
    height: 2.5rem;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.s55e-partner-icon:hover {
    opacity: 1;
}

.s55e-copyright {
    text-align: center;
    color: var(--s55e-light);
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Bottom Navigation (Mobile) */
.s55e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--s55e-darker) 0%, var(--s55e-dark) 100%);
    border-top: 2px solid var(--s55e-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--s55e-shadow);
}

.s55e-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 6rem;
    min-height: 6rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--s55e-light);
}

.s55e-nav-btn:hover {
    background-color: rgba(255, 69, 0, 0.1);
    transform: scale(1.05);
}

.s55e-nav-btn.s55e-nav-active {
    color: var(--s55e-primary);
}

.s55e-nav-icon {
    font-size: 2.2rem;
}

.s55e-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
    .s55e-bottom-nav {
        display: none;
    }

    .s55e-main {
        padding-bottom: 2rem;
    }

    .s55e-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .s55e-menu-toggle {
        display: block;
    }
}

/* Utility Classes */
.s55e-text-center {
    text-align: center;
}

.s55e-mt-1 {
    margin-top: 1rem;
}

.s55e-mb-1 {
    margin-bottom: 1rem;
}

.s55e-mt-2 {
    margin-top: 2rem;
}

.s55e-mb-2 {
    margin-bottom: 2rem;
}
