/**
 * JL11 Gaming Platform - Design Stylesheet
 * All classes use prefix: sf96-
 * Website: jl11.sbs
 */

/* ===== CSS Variables ===== */
:root {
    --sf96-primary: #3CB371;
    --sf96-light: #F5F5F5;
    --sf96-dark: #1E1E1E;
    --sf96-accent: #FFA500;
    --sf96-secondary: #004D40;
    --sf96-highlight: #B2DFDB;
    --sf96-white: #FFFFFF;
    --sf96-black: #000000;
    --sf96-gray: #888888;
    --sf96-shadow: rgba(0, 0, 0, 0.3);
    --sf96-header-height: 60px;
    --sf96-bottom-nav-height: 64px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sf96-dark);
    color: var(--sf96-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Header Styles ===== */
.sf96-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sf96-header-height);
    background: linear-gradient(135deg, var(--sf96-dark) 0%, var(--sf96-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sf96-shadow);
    transition: all 0.3s ease;
}

.sf96-header.sf96-scrolled {
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
}

.sf96-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf96-logo img {
    width: 32px;
    height: 32px;
}

.sf96-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--sf96-primary);
    text-shadow: 0 0 10px rgba(60, 179, 113, 0.5);
}

.sf96-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf96-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sf96-btn-login {
    background: transparent;
    color: var(--sf96-light);
    border: 2px solid var(--sf96-primary);
}

.sf96-btn-login:hover {
    background: var(--sf96-primary);
    color: var(--sf96-white);
}

.sf96-btn-register {
    background: linear-gradient(135deg, var(--sf96-primary) 0%, var(--sf96-accent) 100%);
    color: var(--sf96-white);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.sf96-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

.sf96-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--sf96-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ===== Mobile Menu ===== */
.sf96-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sf96-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.sf96-mobile-menu.sf96-active {
    right: 0;
}

.sf96-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sf96-menu-overlay.sf96-active {
    opacity: 1;
    visibility: visible;
}

.sf96-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf96-mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--sf96-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.sf96-mobile-menu a:hover {
    background: var(--sf96-primary);
    color: var(--sf96-white);
}

/* ===== Main Content ===== */
.sf96-main {
    padding-top: var(--sf96-header-height);
    min-height: 100vh;
}

.sf96-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Hero Section ===== */
.sf96-hero {
    background: linear-gradient(135deg, var(--sf96-secondary) 0%, var(--sf96-dark) 100%);
    padding: 40px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sf96-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(60, 179, 113, 0.2) 0%, transparent 50%);
}

.sf96-hero-content {
    position: relative;
    z-index: 1;
}

.sf96-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--sf96-white);
    text-shadow: 0 2px 10px var(--sf96-shadow);
}

.sf96-hero p {
    font-size: 16px;
    color: var(--sf96-highlight);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sf96-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.sf96-btn-hero {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
}

/* ===== Categories Section ===== */
.sf96-categories {
    background: var(--sf96-dark);
    padding: 20px 0;
    position: sticky;
    top: var(--sf96-header-height);
    z-index: 100;
    border-bottom: 1px solid rgba(60, 179, 113, 0.3);
}

.sf96-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sf96-category-tabs::-webkit-scrollbar {
    display: none;
}

.sf96-category-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: var(--sf96-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sf96-category-tab.sf96-active,
.sf96-category-tab:hover {
    background: var(--sf96-primary);
    color: var(--sf96-white);
}

/* ===== Games Grid ===== */
.sf96-games-section {
    padding: 30px 16px;
}

.sf96-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sf96-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf96-section-title i {
    color: var(--sf96-accent);
}

.sf96-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.sf96-game-card {
    background: linear-gradient(145deg, #252525 0%, var(--sf96-dark) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(60, 179, 113, 0.2);
}

.sf96-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 179, 113, 0.3);
    border-color: var(--sf96-primary);
}

.sf96-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sf96-game-card .sf96-game-name {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf96-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Features Section ===== */
.sf96-features {
    padding: 40px 16px;
    background: linear-gradient(180deg, var(--sf96-dark) 0%, var(--sf96-secondary) 100%);
}

.sf96-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sf96-feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.sf96-feature-item:hover {
    background: rgba(60, 179, 113, 0.15);
    transform: translateY(-3px);
}

.sf96-feature-item i {
    font-size: 36px;
    color: var(--sf96-primary);
    margin-bottom: 12px;
}

.sf96-feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--sf96-white);
}

.sf96-feature-item p {
    font-size: 13px;
    color: var(--sf96-gray);
}

/* ===== Info Section ===== */
.sf96-info-section {
    padding: 40px 16px;
    background: var(--sf96-dark);
}

.sf96-info-content {
    max-width: 800px;
    margin: 0 auto;
}

.sf96-info-content h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--sf96-primary);
}

.sf96-info-content p {
    margin-bottom: 16px;
    color: var(--sf96-light);
    font-size: 15px;
    line-height: 1.8;
}

.sf96-info-content ul {
    list-style: none;
    margin-bottom: 16px;
}

.sf96-info-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--sf96-light);
}

.sf96-info-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--sf96-primary);
}

/* ===== Footer ===== */
.sf96-footer {
    background: linear-gradient(180deg, var(--sf96-dark) 0%, #0a0a0a 100%);
    padding: 40px 16px 100px;
    border-top: 1px solid rgba(60, 179, 113, 0.2);
}

.sf96-partners {
    margin-bottom: 30px;
}

.sf96-partners-title {
    font-size: 14px;
    color: var(--sf96-gray);
    margin-bottom: 12px;
    text-align: center;
}

.sf96-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sf96-partners-grid img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sf96-partners-grid img:hover {
    opacity: 1;
}

.sf96-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.sf96-footer-links a {
    color: var(--sf96-gray);
    font-size: 13px;
    transition: color 0.3s ease;
}

.sf96-footer-links a:hover {
    color: var(--sf96-primary);
}

.sf96-copyright {
    text-align: center;
    color: var(--sf96-gray);
    font-size: 12px;
}

/* ===== Bottom Navigation ===== */
.sf96-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--sf96-bottom-nav-height);
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(0, 77, 64, 0.98) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 20px var(--sf96-shadow);
    border-top: 2px solid var(--sf96-primary);
}

.sf96-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--sf96-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    padding: 4px 8px;
}

.sf96-bottom-nav-item:hover,
.sf96-bottom-nav-item.sf96-active {
    color: var(--sf96-accent);
    background: rgba(255, 165, 0, 0.1);
}

.sf96-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.sf96-bottom-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

/* ===== Toast Notification ===== */
.sf96-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--sf96-dark);
    color: var(--sf96-light);
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--sf96-shadow);
}

.sf96-toast.sf96-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sf96-toast.sf96-toast-success {
    background: var(--sf96-primary);
}

.sf96-toast.sf96-toast-error {
    background: #dc3545;
}

/* ===== Animations ===== */
.sf96-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.sf96-animate.sf96-animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Desktop Styles ===== */
@media (min-width: 769px) {
    .sf96-header {
        padding: 0 40px;
    }

    .sf96-menu-toggle {
        display: none;
    }

    .sf96-bottom-nav {
        display: none;
    }

    .sf96-main {
        padding-bottom: 0;
    }

    .sf96-hero {
        padding: 80px 40px;
    }

    .sf96-hero h1 {
        font-size: 48px;
    }

    .sf96-hero p {
        font-size: 18px;
    }

    .sf96-games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .sf96-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sf96-footer {
        padding-bottom: 40px;
    }
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    .sf96-header-actions .sf96-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .sf96-menu-toggle {
        display: block;
    }

    .sf96-main {
        padding-bottom: 80px;
    }

    .sf96-hero h1 {
        font-size: 28px;
    }

    .sf96-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .sf96-game-card .sf96-game-name {
        font-size: 11px;
        padding: 8px;
    }

    .sf96-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sf96-feature-item {
        padding: 16px;
    }

    .sf96-feature-item i {
        font-size: 28px;
    }

    .sf96-feature-item h3 {
        font-size: 14px;
    }
}

/* ===== Utility Classes ===== */
.sf96-text-center { text-align: center; }
.sf96-text-primary { color: var(--sf96-primary); }
.sf96-text-accent { color: var(--sf96-accent); }
.sf96-mt-20 { margin-top: 20px; }
.sf96-mb-20 { margin-bottom: 20px; }
.sf96-hidden { display: none !important; }
