/**
 * 693jl-click Main CSS File
 * Mobile-first gaming website styles
 * All classes use prefix: sb5f-
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #E9ECEF;
    background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
    overflow-x: hidden;
}

/* Color Palette Variables */
:root {
    --sb5f-primary: #00CED1;
    --sb5f-secondary: #0097A7;
    --sb5f-accent: #40E0D0;
    --sb5f-highlight: #CC99FF;
    --sb5f-dark: #34495E;
    --sb5f-darker: #2C3E50;
    --sb5f-light: #E9ECEF;
    --sb5f-gray: #95A5A6;
    --sb5f-success: #27AE60;
    --sb5f-warning: #F39C12;
    --sb5f-error: #E74C3C;
    --sb5f-shadow: rgba(0, 0, 0, 0.3);
    --sb5f-gradient: linear-gradient(135deg, var(--sb5f-primary) 0%, var(--sb5f-secondary) 100%);
}

/* Utility Classes */
.sb5f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sb5f-text-center { text-align: center; }
.sb5f-text-left { text-align: left; }
.sb5f-text-right { text-align: right; }

.sb5f-mb-1 { margin-bottom: 1rem; }
.sb5f-mb-2 { margin-bottom: 2rem; }
.sb5f-mb-3 { margin-bottom: 3rem; }
.sb5f-mt-1 { margin-top: 1rem; }
.sb5f-mt-2 { margin-top: 2rem; }
.sb5f-mt-3 { margin-top: 3rem; }

.sb5f-hidden { display: none; }
.sb5f-block { display: block; }
.sb5f-inline { display: inline; }
.sb5f-flex { display: flex; }
.sb5f-grid { display: grid; }

/* Header Navigation */
.sb5f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--sb5f-darker);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sb5f-primary);
    padding: 1rem 0;
}

.sb5f-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sb5f-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--sb5f-accent);
    text-decoration: none;
}

.sb5f-logo-icon {
    width: 2.4rem;
    height: 2.4rem;
    background: var(--sb5f-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sb5f-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sb5f-nav-button {
    padding: 0.8rem 1.5rem;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.sb5f-register-btn {
    background: var(--sb5f-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.sb5f-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.6);
}

.sb5f-login-btn {
    background: transparent;
    color: var(--sb5f-accent);
    border: 2px solid var(--sb5f-accent);
}

.sb5f-login-btn:hover {
    background: var(--sb5f-accent);
    color: var(--sb5f-darker);
}

.sb5f-menu-toggle {
    background: none;
    border: none;
    color: var(--sb5f-accent);
    font-size: 2.4rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.sb5f-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--sb5f-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.sb5f-menu-active {
    right: 0;
}

.sb5f-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: all 0.3s ease;
}

.sb5f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sb5f-body-lock {
    overflow: hidden;
}

.sb5f-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--sb5f-accent);
    font-size: 2.4rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.sb5f-menu-list {
    list-style: none;
    margin-top: 4rem;
}

.sb5f-menu-item {
    margin-bottom: 1rem;
}

.sb5f-menu-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--sb5f-light);
    text-decoration: none;
    font-size: 1.6rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.sb5f-menu-link:hover {
    background: rgba(0, 206, 209, 0.1);
    color: var(--sb5f-accent);
}

/* Main Content */
.sb5f-main {
    margin-top: 7rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .sb5f-main {
        padding-bottom: 8rem; /* Space for bottom nav */
    }
}

/* Carousel */
.sb5f-carousel {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--sb5f-shadow);
}

.sb5f-carousel-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sb5f-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sb5f-carousel-active {
    opacity: 1;
}

.sb5f-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb5f-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.sb5f-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.sb5f-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb5f-carousel-dot.sb5f-active {
    background: var(--sb5f-accent);
    width: 24px;
    border-radius: 4px;
}

/* Typography */
.sb5f-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--sb5f-accent);
    text-align: center;
}

.sb5f-section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--sb5f-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sb5f-section-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: var(--sb5f-gradient);
    border-radius: 2px;
}

.sb5f-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--sb5f-gray);
    margin-bottom: 1.5rem;
}

.sb5f-link {
    color: var(--sb5f-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sb5f-link:hover {
    color: var(--sb5f-primary);
}

/* Game Grid */
.sb5f-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.sb5f-game-card {
    background: rgba(52, 73, 94, 0.6);
    border-radius: 1.2rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 100px;
}

.sb5f-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--sb5f-accent);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.3);
}

.sb5f-game-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.sb5f-game-name {
    font-size: 1.2rem;
    color: var(--sb5f-light);
    font-weight: 500;
    line-height: 1.3;
}

/* Sections */
.sb5f-section {
    background: rgba(52, 73, 94, 0.4);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.sb5f-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sb5f-feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.sb5f-feature-item:hover {
    background: rgba(0, 206, 209, 0.2);
    transform: translateY(-2px);
}

.sb5f-feature-icon {
    font-size: 2.4rem;
    color: var(--sb5f-accent);
    margin-bottom: 1rem;
}

.sb5f-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sb5f-light);
    margin-bottom: 0.5rem;
}

.sb5f-feature-desc {
    font-size: 1.2rem;
    color: var(--sb5f-gray);
}

/* Partner Icons */
.sb5f-partners {
    margin: 3rem 0;
    text-align: center;
}

.sb5f-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.sb5f-partner-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sb5f-partner-icon:hover {
    opacity: 1;
}

/* Footer */
.sb5f-footer {
    background: var(--sb5f-darker);
    border-top: 1px solid var(--sb5f-primary);
    padding: 2rem 0;
    margin-top: 3rem;
}

.sb5f-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sb5f-footer-link {
    color: var(--sb5f-gray);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.sb5f-footer-link:hover {
    color: var(--sb5f-accent);
}

.sb5f-copyright {
    text-align: center;
    color: var(--sb5f-gray);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 206, 209, 0.2);
}

/* Mobile Bottom Navigation */
.sb5f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: var(--sb5f-darker);
    border-top: 1px solid var(--sb5f-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

@media (min-width: 769px) {
    .sb5f-bottom-nav {
        display: none;
    }
}

.sb5f-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--sb5f-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 1rem;
}

.sb5f-bottom-nav-item:hover {
    color: var(--sb5f-accent);
    background: rgba(0, 206, 209, 0.1);
}

.sb5f-nav-active {
    color: var(--sb5f-accent);
    background: rgba(0, 206, 209, 0.2);
}

.sb5f-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.sb5f-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Touch States */
.sb5f-touch-active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sb5f-header-actions .sb5f-nav-button {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }

    .sb5f-title {
        font-size: 2rem;
    }

    .sb5f-section-title {
        font-size: 1.8rem;
    }

    .sb5f-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sb5f-partners-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .sb5f-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sb5f-partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sb5f-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.sb5f-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sb5f-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.sb5f-nav-button:focus,
.sb5f-menu-toggle:focus,
.sb5f-menu-link:focus,
.sb5f-bottom-nav-item:focus,
.sb5f-game-card:focus {
    outline: 2px solid var(--sb5f-accent);
    outline-offset: 2px;
}

/* Animation Classes */
@keyframes sb5f-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sb5f-fade-in {
    animation: sb5f-fadeIn 0.6s ease forwards;
}

@keyframes sb5f-slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.sb5f-slide-in {
    animation: sb5f-slideIn 0.3s ease forwards;
}