/**
 * JLJ - Stylesheet
 * All classes use 's9bc-' prefix for namespace isolation
 * Color Palette: Purple (#9966CC), Blonde (#FFEBCD), White, Dark Blue (#2C3E50), Khaki (#F0E68C), Plum (#DDA0DD)
 */

/* CSS Variables */
:root {
    --s9bc-primary: #9966CC;
    --s9bc-secondary: #DDA0DD;
    --s9bc-accent: #F0E68C;
    --s9bc-light: #FFEBCD;
    --s9bc-dark: #2C3E50;
    --s9bc-white: #FFFFFF;
    --s9bc-text-primary: #2C3E50;
    --s9bc-text-light: #FFEBCD;
    --s9bc-text-muted: #666666;
    --s9bc-bg-light: #FFEBCD;
    --s9bc-bg-white: #FFFFFF;
    --s9bc-shadow: rgba(44, 62, 80, 0.15);
    --s9bc-gradient: linear-gradient(135deg, #9966CC 0%, #DDA0DD 100%);
}

/* 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, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--s9bc-text-primary);
    background: var(--s9bc-bg-light);
    min-height: 100vh;
}

/* Container */
.s9bc-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    background: var(--s9bc-bg-light);
}

/* Header */
.s9bc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s9bc-dark);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--s9bc-shadow);
    transition: all 0.3s ease;
}

.s9bc-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.s9bc-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--s9bc-light);
}

.s9bc-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s9bc-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s9bc-light);
}

.s9bc-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.s9bc-btn-header {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.s9bc-btn-register {
    background: var(--s9bc-primary);
    color: var(--s9bc-white);
}

.s9bc-btn-register:hover {
    background: #8855BB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 102, 204, 0.4);
}

.s9bc-btn-login {
    background: var(--s9bc-accent);
    color: var(--s9bc-dark);
}

.s9bc-btn-login:hover {
    background: #D9C060;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 230, 140, 0.4);
}

/* Menu Toggle */
.s9bc-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.s9bc-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--s9bc-light);
    transition: all 0.3s ease;
}

.s9bc-menu-toggle:hover span {
    background: var(--s9bc-primary);
}

/* Mobile Menu */
.s9bc-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--s9bc-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 15px var(--s9bc-shadow);
}

.s9bc-menu-active {
    right: 0 !important;
}

.s9bc-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 235, 205, 0.1);
}

.s9bc-menu-close {
    background: none;
    border: none;
    color: var(--s9bc-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.s9bc-menu-nav {
    padding: 1rem 0;
}

.s9bc-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--s9bc-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 235, 205, 0.05);
    transition: all 0.3s ease;
}

.s9bc-menu-nav a:hover {
    background: rgba(153, 102, 204, 0.2);
    color: var(--s9bc-white);
    padding-left: 2rem;
}

/* Main Content */
main {
    margin-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.s9bc-carousel {
    position: relative;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--s9bc-shadow);
}

.s9bc-carousel-slide {
    display: none;
}

.s9bc-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.s9bc-carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.s9bc-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s9bc-dot-active {
    background: var(--s9bc-primary);
    transform: scale(1.3);
}

/* Hero Section */
.s9bc-hero {
    background: var(--s9bc-gradient);
    color: var(--s9bc-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 15px var(--s9bc-shadow);
}

.s9bc-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.s9bc-hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* Buttons */
.s9bc-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--s9bc-accent);
    color: var(--s9bc-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(240, 230, 140, 0.3);
}

.s9bc-btn:hover {
    background: var(--s9bc-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(240, 230, 140, 0.5);
}

.s9bc-btn-primary {
    background: var(--s9bc-primary);
    color: var(--s9bc-white);
}

.s9bc-btn-primary:hover {
    background: #8855BB;
}

/* Game Grid */
.s9bc-game-section {
    margin: 2rem 0;
}

.s9bc-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s9bc-dark);
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--s9bc-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s9bc-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s9bc-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s9bc-game-item:hover {
    transform: scale(1.08);
}

.s9bc-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--s9bc-shadow);
    margin-bottom: 0.3rem;
}

.s9bc-game-name {
    font-size: 1rem;
    color: var(--s9bc-dark);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Cards */
.s9bc-card {
    background: var(--s9bc-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px var(--s9bc-shadow);
    border-left: 4px solid var(--s9bc-primary);
}

.s9bc-card h2 {
    font-size: 1.8rem;
    color: var(--s9bc-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.s9bc-card p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--s9bc-text-primary);
    margin-bottom: 1rem;
}

/* Accordion */
.s9bc-accordion {
    margin: 1.5rem 0;
}

.s9bc-accordion-item {
    background: var(--s9bc-white);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--s9bc-shadow);
}

.s9bc-accordion-header {
    padding: 1.2rem 1.5rem;
    background: var(--s9bc-white);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s9bc-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.s9bc-accordion-header:hover {
    background: var(--s9bc-light);
}

.s9bc-accordion-active .s9bc-accordion-header {
    background: var(--s9bc-primary);
    color: var(--s9bc-white);
}

.s9bc-accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.s9bc-accordion-active .s9bc-accordion-icon {
    transform: rotate(180deg);
}

.s9bc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.s9bc-accordion-content-inner {
    padding: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--s9bc-text-primary);
}

/* Features List */
.s9bc-features {
    background: var(--s9bc-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px var(--s9bc-shadow);
}

.s9bc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(153, 102, 204, 0.1);
}

.s9bc-feature-item:last-child {
    border-bottom: none;
}

.s9bc-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--s9bc-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s9bc-white);
    font-size: 1.4rem;
}

.s9bc-feature-content h3 {
    font-size: 1.5rem;
    color: var(--s9bc-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.s9bc-feature-content p {
    font-size: 1.3rem;
    color: var(--s9bc-text-muted);
    line-height: 1.5;
}

/* Footer */
.s9bc-footer {
    background: var(--s9bc-dark);
    color: var(--s9bc-light);
    padding: 2rem 1rem 7rem;
    margin-top: 3rem;
}

.s9bc-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s9bc-footer-links a {
    color: var(--s9bc-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 235, 205, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.s9bc-footer-links a:hover {
    background: var(--s9bc-primary);
    color: var(--s9bc-white);
}

.s9bc-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.s9bc-partners img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s9bc-partners img:hover {
    opacity: 1;
}

.s9bc-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 235, 205, 0.7);
    margin-top: 1.5rem;
}

/* Mobile Bottom Nav */
.s9bc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s9bc-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--s9bc-shadow);
    padding: 0 0.5rem;
}

.s9bc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: rgba(255, 235, 205, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.s9bc-nav-item:hover,
.s9bc-nav-item.s9bc-active {
    color: var(--s9bc-primary);
    transform: scale(1.1);
}

.s9bc-nav-item i,
.s9bc-nav-item svg {
    font-size: 24px;
    margin-bottom: 2px;
    display: block;
}

.s9bc-nav-item span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
    .s9bc-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }
}

/* Animations */
.s9bc-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.s9bc-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Link styling */
.s9bc-link {
    color: var(--s9bc-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.s9bc-link:hover {
    color: var(--s9bc-secondary);
    text-decoration: underline;
}

/* Utility classes */
.s9bc-text-center {
    text-align: center;
}

.s9bc-mt-1 {
    margin-top: 1rem;
}

.s9bc-mb-1 {
    margin-bottom: 1rem;
}

.s9bc-mt-2 {
    margin-top: 2rem;
}

.s9bc-mb-2 {
    margin-bottom: 2rem;
}
