/* Jolibet Click CSS Styles */
/* All classes use prefix s2c4- to avoid conflicts */

/* CSS Variables for consistent theming */
:root {
    --s2c4-primary: #20B2AA;
    --s2c4-secondary: #A0522D;
    --s2c4-bg-dark: #1A1A1A;
    --s2c4-bg-light: #F5DEB3;
    --s2c4-bg-medium: #DEB887;
    --s2c4-text-light: #CED4DA;
    --s2c4-text-dark: #1A1A1A;
    --s2c4-border: #DEB887;
    --s2c4-shadow: rgba(0, 0, 0, 0.3);
    --s2c4-radius: 8px;
    --s2c4-transition: all 0.3s ease;
}

/* 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, Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--s2c4-text-light);
    background-color: var(--s2c4-bg-dark);
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Utility classes */
.s2c4-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s2c4-wrapper {
    padding-bottom: 8rem;
}

.s2c4-grid {
    display: grid;
    gap: 1.5rem;
}

.s2c4-flex {
    display: flex;
    align-items: center;
}

.s2c4-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s2c4-text-center {
    text-align: center;
}

.s2c4-text-uppercase {
    text-transform: uppercase;
}

/* Header styles */
.s2c4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--s2c4-bg-dark) 0%, var(--s2c4-secondary) 100%);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px var(--s2c4-shadow);
}

.s2c4-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s2c4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--s2c4-bg-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8rem;
}

.s2c4-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
}

.s2c4-header-actions {
    display: flex;
    gap: 1rem;
}

.s2c4-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--s2c4-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s2c4-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.s2c4-btn-primary {
    background: var(--s2c4-primary);
    color: white;
}

.s2c4-btn-primary:hover {
    background: #1a9a92;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.4);
}

.s2c4-btn-secondary {
    background: var(--s2c4-secondary);
    color: white;
}

.s2c4-btn-secondary:hover {
    background: #7a3f1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.4);
}

.s2c4-menu-toggle {
    background: none;
    border: none;
    color: var(--s2c4-bg-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

/* Mobile menu */
.s2c4-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--s2c4-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px var(--s2c4-shadow);
}

.s2c4-mobile-menu.active {
    right: 0;
}

.s2c4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--s2c4-transition);
}

.s2c4-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.s2c4-menu-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--s2c4-secondary) 0%, var(--s2c4-primary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s2c4-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s2c4-menu-nav {
    padding: 1.5rem 0;
}

.s2c4-menu-nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--s2c4-text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(222, 184, 135, 0.1);
    transition: var(--s2c4-transition);
    font-size: 1.6rem;
}

.s2c4-menu-nav a:hover {
    background: rgba(32, 178, 170, 0.1);
    color: var(--s2c4-primary);
    padding-left: 2rem;
}

/* Main content */
.s2c4-main {
    padding-top: 7rem;
    padding-bottom: 2rem;
}

/* Carousel */
.s2c4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--s2c4-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--s2c4-shadow);
}

.s2c4-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.s2c4-carousel-item {
    min-width: 100%;
    position: relative;
}

.s2c4-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.s2c4-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.s2c4-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--s2c4-transition);
}

.s2c4-carousel-indicator.active {
    background: var(--s2c4-primary);
    transform: scale(1.2);
}

/* Game grid */
.s2c4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.s2c4-game-item {
    background: var(--s2c4-bg-dark);
    border-radius: var(--s2c4-radius);
    overflow: hidden;
    transition: var(--s2c4-transition);
    cursor: pointer;
    border: 1px solid var(--s2c4-border);
}

.s2c4-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--s2c4-shadow);
    border-color: var(--s2c4-primary);
}

.s2c4-game-item img {
    width: 100%;
    height: auto;
    display: block;
}

.s2c4-game-name {
    padding: 0.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--s2c4-text-light);
    background: rgba(26, 26, 26, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Section styles */
.s2c4-section {
    margin-bottom: 3rem;
}

.s2c4-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--s2c4-bg-light);
    text-align: center;
}

.s2c4-card {
    background: linear-gradient(135deg, rgba(245, 222, 179, 0.05) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-radius: var(--s2c4-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--s2c4-border);
}

.s2c4-card h3 {
    color: var(--s2c4-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.s2c4-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.s2c4-card ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.s2c4-card li {
    margin-bottom: 0.5rem;
}

/* Links */
.s2c4-link {
    color: var(--s2c4-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--s2c4-transition);
}

.s2c4-link:hover {
    color: var(--s2c4-bg-light);
    text-decoration: underline;
}

/* Bottom navigation */
.s2c4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--s2c4-bg-dark) 0%, var(--s2c4-secondary) 100%);
    border-top: 1px solid var(--s2c4-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    padding: 0.5rem 0;
}

.s2c4-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--s2c4-text-light);
    font-size: 1rem;
    transition: var(--s2c4-transition);
    min-height: 5rem;
    cursor: pointer;
    border: none;
    background: none;
}

.s2c4-bottom-nav-item:hover,
.s2c4-bottom-nav-item.active {
    color: var(--s2c4-primary);
    transform: translateY(-2px);
}

.s2c4-bottom-nav-item i,
.s2c4-bottom-nav-item span {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    transition: var(--s2c4-transition);
}

.s2c4-bottom-nav-item.active i {
    filter: drop-shadow(0 0 8px var(--s2c4-primary));
}

/* Footer */
.s2c4-footer {
    background: linear-gradient(135deg, var(--s2c4-secondary) 0%, var(--s2c4-bg-dark) 100%);
    padding: 2rem 1.5rem 8rem;
    margin-top: 3rem;
}

.s2c4-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s2c4-partner {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--s2c4-radius);
    padding: 0.5rem;
}

.s2c4-partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.s2c4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.s2c4-footer-links a {
    color: var(--s2c4-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--s2c4-transition);
}

.s2c4-footer-links a:hover {
    color: var(--s2c4-primary);
}

.s2c4-copyright {
    text-align: center;
    color: var(--s2c4-text-light);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Responsive design */
@media (min-width: 769px) {
    .s2c4-bottom-nav {
        display: none;
    }

    .s2c4-wrapper {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .s2c4-main {
        padding-bottom: 8rem;
    }
}

/* iOS banner */
.s2c4-ios-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s2c4-primary);
    color: white;
    padding: 1rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.4rem;
}

.s2c4-ios-banner button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes s2c4-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s2c4-fade-in {
    animation: s2c4-fadeIn 0.6s ease forwards;
}

/* Utility for hiding elements */
.s2c4-hidden {
    display: none !important;
}

/* Loading state */
.s2c4-loading {
    position: relative;
    overflow: hidden;
}

.s2c4-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: s2c4-loading 1.5s infinite;
}

@keyframes s2c4-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}