/**
 * SportPlus Core Stylesheet
 * Version: 1.0.0
 * Prefix: s1a9-
 * Color Palette: #FFEFD5 | #262626 | #D3D3D3 | #FAF0E6
 */

/* Root Variables */
:root {
    --s1a9-primary: #FFEFD5;
    --s1a9-bg-dark: #262626;
    --s1a9-text-light: #D3D3D3;
    --s1a9-bg-cream: #FAF0E6;
    --s1a9-accent: #FFD700;
    --s1a9-accent-hover: #FFC107;
    --s1a9-gradient-start: #1a1a1a;
    --s1a9-gradient-end: #2d2d2d;
    --s1a9-card-bg: rgba(255, 239, 213, 0.08);
    --s1a9-border: rgba(255, 239, 213, 0.15);
    --s1a9-shadow: rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--s1a9-gradient-start), var(--s1a9-gradient-end));
    color: var(--s1a9-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.s1a9-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.s1a9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s1a9-bg-dark);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--s1a9-border);
}

.s1a9-header-scrolled {
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(10px);
}

.s1a9-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.s1a9-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.s1a9-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.s1a9-logo-text {
    color: var(--s1a9-primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.s1a9-header-btns {
    display: flex;
    gap: 0.6rem;
}

.s1a9-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.s1a9-btn-primary {
    background: var(--s1a9-accent);
    color: var(--s1a9-bg-dark);
}

.s1a9-btn-primary:hover {
    background: var(--s1a9-accent-hover);
    transform: translateY(-1px);
}

.s1a9-btn-secondary {
    background: transparent;
    color: var(--s1a9-primary);
    border: 1px solid var(--s1a9-primary);
}

.s1a9-btn-secondary:hover {
    background: rgba(255, 239, 213, 0.1);
}

/* Menu Toggle */
.s1a9-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.s1a9-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--s1a9-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.s1a9-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s1a9-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.s1a9-menu-active {
    right: 0;
}

.s1a9-mobile-menu ul {
    list-style: none;
}

.s1a9-mobile-menu li {
    border-bottom: 1px solid var(--s1a9-border);
}

.s1a9-mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--s1a9-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.s1a9-mobile-menu a:hover {
    color: var(--s1a9-primary);
}

.s1a9-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s1a9-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 5.5rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s1a9-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.s1a9-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s1a9-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s1a9-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s1a9-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.s1a9-dot-active {
    background: var(--s1a9-accent);
    transform: scale(1.2);
}

/* Section Styles */
.s1a9-section {
    padding: 1.5rem 0;
}

.s1a9-section-title {
    color: var(--s1a9-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s1a9-accent);
    display: inline-block;
}

.s1a9-section-desc {
    color: var(--s1a9-text-light);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Game Grid */
.s1a9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.s1a9-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.s1a9-game-item:hover {
    transform: scale(1.05);
}

.s1a9-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    background: var(--s1a9-card-bg);
}

.s1a9-game-name {
    font-size: 1rem;
    color: var(--s1a9-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.s1a9-category-title {
    color: var(--s1a9-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s1a9-category-title i {
    color: var(--s1a9-accent);
}

/* Card Styles */
.s1a9-card {
    background: var(--s1a9-card-bg);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1rem 0;
    border: 1px solid var(--s1a9-border);
}

.s1a9-card-title {
    color: var(--s1a9-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Info List */
.s1a9-info-list {
    list-style: none;
}

.s1a9-info-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--s1a9-border);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s1a9-info-list li:last-child {
    border-bottom: none;
}

.s1a9-info-list i {
    color: var(--s1a9-accent);
    width: 18px;
}

/* Promo Link */
.s1a9-promo-link {
    color: var(--s1a9-accent);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.s1a9-promo-link:hover {
    color: var(--s1a9-accent-hover);
    text-decoration: underline;
}

/* Footer */
.s1a9-footer {
    background: var(--s1a9-bg-dark);
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--s1a9-border);
}

.s1a9-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.s1a9-footer-links a {
    color: var(--s1a9-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.s1a9-footer-links a:hover {
    color: var(--s1a9-primary);
}

.s1a9-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1rem 0;
}

.s1a9-partners img {
    width: 40px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.s1a9-partners img:hover {
    opacity: 1;
}

.s1a9-copyright {
    text-align: center;
    color: var(--s1a9-text-light);
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Bottom Navigation */
.s1a9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #1f1f1f, #141414);
    border-top: 1px solid var(--s1a9-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.s1a9-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--s1a9-text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.s1a9-nav-item:hover,
.s1a9-nav-item.s1a9-nav-active {
    color: var(--s1a9-accent);
}

.s1a9-nav-item i,
.s1a9-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.s1a9-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s1a9-bottom-nav {
        display: none;
    }
}

/* Promo Banner */
.s1a9-promo-banner {
    background: linear-gradient(135deg, var(--s1a9-accent), #ff9800);
    color: var(--s1a9-bg-dark);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.s1a9-promo-banner:hover {
    transform: scale(1.02);
}

.s1a9-promo-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.s1a9-promo-banner p {
    font-size: 1.1rem;
}

/* Stats Grid */
.s1a9-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.s1a9-stat-item {
    background: var(--s1a9-card-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--s1a9-border);
}

.s1a9-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s1a9-accent);
}

.s1a9-stat-label {
    font-size: 1rem;
    color: var(--s1a9-text-light);
    margin-top: 0.3rem;
}

/* FAQ Accordion */
.s1a9-faq-item {
    background: var(--s1a9-card-bg);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--s1a9-border);
}

.s1a9-faq-question {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--s1a9-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s1a9-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.1rem;
    color: var(--s1a9-text-light);
    line-height: 1.5;
}

/* Feature List */
.s1a9-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--s1a9-card-bg);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--s1a9-border);
}

.s1a9-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--s1a9-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s1a9-bg-dark);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.s1a9-feature-content h4 {
    color: var(--s1a9-primary);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.s1a9-feature-content p {
    color: var(--s1a9-text-light);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .s1a9-menu-toggle {
        display: none;
    }

    .s1a9-desktop-nav {
        display: flex;
        gap: 1.5rem;
    }

    .s1a9-desktop-nav a {
        color: var(--s1a9-text-light);
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.2s;
    }

    .s1a9-desktop-nav a:hover {
        color: var(--s1a9-primary);
    }
}

@media (max-width: 768px) {
    .s1a9-desktop-nav {
        display: none;
    }
}

/* Utility Classes */
.s1a9-text-center {
    text-align: center;
}

.s1a9-mt-1 {
    margin-top: 1rem;
}

.s1a9-mb-1 {
    margin-bottom: 1rem;
}

.s1a9-hidden {
    display: none;
}
