/**
 * jilli ph - Main Stylesheet
 * Prefix: s22b-
 * All classes use s22b- prefix to avoid conflicts
 * Color Palette: #0A0A0A | #E8F5E8 | #26A69A | #E0FFFF | #FFA500
 */

/* CSS Variables */
:root {
    --s22b-bg-dark: #0A0A0A;
    --s22b-text-light: #E8F5E8;
    --s22b-primary: #26A69A;
    --s22b-accent: #E0FFFF;
    --s22b-highlight: #FFA500;
    --s22b-bg-secondary: #1A1A1A;
    --s22b-border-color: #333333;
    --s22b-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --s22b-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--s22b-bg-dark);
    color: var(--s22b-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.s22b-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.s22b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--s22b-bg-dark) 0%, #1A1A1A 100%);
    border-bottom: 2px solid var(--s22b-primary);
    z-index: 1000;
    padding: 1rem 1.5rem;
}

.s22b-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s22b-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s22b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.s22b-logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--s22b-primary), var(--s22b-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s22b-header-buttons {
    display: flex;
    gap: 1rem;
}

.s22b-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s22b-transition);
    text-decoration: none;
    display: inline-block;
}

.s22b-btn-primary {
    background: linear-gradient(135deg, var(--s22b-primary), var(--s22b-highlight));
    color: var(--s22b-bg-dark);
}

.s22b-btn-secondary {
    background: transparent;
    border: 2px solid var(--s22b-primary);
    color: var(--s22b-primary);
}

.s22b-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--s22b-shadow);
}

/* Mobile Menu Toggle */
.s22b-menu-toggle {
    background: none;
    border: none;
    color: var(--s22b-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

/* Navigation Menu */
.s22b-nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.s22b-nav-menu a {
    color: var(--s22b-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--s22b-transition);
}

.s22b-nav-menu a:hover {
    color: var(--s22b-highlight);
}

/* Mobile Menu */
.s22b-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s22b-bg-dark);
    border-left: 2px solid var(--s22b-primary);
    padding: 6rem 2rem 2rem;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.s22b-mobile-menu-open {
    right: 0;
}

.s22b-mobile-menu ul {
    list-style: none;
}

.s22b-mobile-menu li {
    margin-bottom: 1.5rem;
}

.s22b-mobile-menu a {
    color: var(--s22b-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--s22b-transition);
}

.s22b-mobile-menu a:hover {
    background: rgba(38, 166, 154, 0.1);
    color: var(--s22b-highlight);
}

.s22b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--s22b-transition);
}

.s22b-overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 8rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Carousel */
.s22b-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.s22b-carousel-slides {
    position: relative;
    width: 100%;
}

.s22b-carousel-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.s22b-carousel-active {
    display: block;
}

.s22b-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.s22b-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.s22b-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s22b-transition);
}

.s22b-dot-active {
    background: var(--s22b-highlight);
}

/* Game Grid */
.s22b-game-section {
    padding: 2rem 0;
}

.s22b-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--s22b-primary), var(--s22b-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s22b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s22b-game-card {
    text-align: center;
    cursor: pointer;
    transition: var(--s22b-transition);
}

.s22b-game-card:hover {
    transform: translateY(-4px);
}

.s22b-game-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--s22b-border-color);
    transition: var(--s22b-transition);
}

.s22b-game-card:hover img {
    border-color: var(--s22b-primary);
    box-shadow: 0 0 15px rgba(38, 166, 154, 0.3);
}

.s22b-game-name {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--s22b-text-light);
    font-weight: 500;
}

/* Modules */
.s22b-module {
    background: var(--s22b-bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--s22b-border-color);
}

.s22b-module-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--s22b-primary);
}

.s22b-module-content {
    line-height: 1.8;
    font-size: 1.5rem;
}

.s22b-module-content p {
    margin-bottom: 1.5rem;
}

.s22b-module-content a {
    color: var(--s22b-highlight);
    text-decoration: none;
    font-weight: 600;
    transition: var(--s22b-transition);
}

.s22b-module-content a:hover {
    color: var(--s22b-primary);
    text-decoration: underline;
}

/* Footer */
.s22b-footer {
    background: var(--s22b-bg-secondary);
    border-top: 2px solid var(--s22b-primary);
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
}

.s22b-footer-content {
    text-align: center;
}

.s22b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.s22b-footer-links a {
    color: var(--s22b-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--s22b-transition);
}

.s22b-footer-links a:hover {
    color: var(--s22b-highlight);
}

.s22b-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s22b-partners img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: var(--s22b-transition);
}

.s22b-partners img:hover {
    opacity: 1;
}

.s22b-copyright {
    font-size: 1.3rem;
    color: var(--s22b-text-light);
    opacity: 0.7;
}

/* Mobile Bottom Navigation */
.s22b-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
    border-top: 2px solid var(--s22b-primary);
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.s22b-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.s22b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--s22b-transition);
    color: var(--s22b-text-light);
}

.s22b-nav-item:hover {
    color: var(--s22b-highlight);
}

.s22b-nav-item i,
.s22b-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.s22b-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.s22b-nav-item.s22b-active {
    color: var(--s22b-primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .s22b-menu-toggle {
        display: block;
    }

    .s22b-nav-menu {
        display: none;
    }

    .s22b-mobile-bottom-nav {
        display: block;
    }

    .s22b-header-buttons {
        gap: 0.8rem;
    }

    .s22b-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }

    .s22b-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .s22b-game-name {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .s22b-mobile-bottom-nav {
        display: none;
    }
}

/* Utility Classes */
.s22b-text-center {
    text-align: center;
}

.s22b-mb-1 {
    margin-bottom: 1rem;
}

.s22b-mb-2 {
    margin-bottom: 2rem;
}

.s22b-mb-3 {
    margin-bottom: 3rem;
}

/* Promotional Links in Content */
.s22b-promo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--s22b-primary), var(--s22b-highlight));
    color: var(--s22b-bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--s22b-transition);
    margin: 1rem 0;
}

.s22b-promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

/* H1 Styling */
h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--s22b-primary), var(--s22b-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* List Styles */
.s22b-module-content ul,
.s22b-module-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.s22b-module-content li {
    margin-bottom: 0.8rem;
}
