/* Jilli Gaming Platform Styles */
/* CSS Class Prefix: s101- */

/* CSS Variables for Theme */
:root {
    --s101-primary: #1a1a2e;
    --s101-secondary: #16213e;
    --s101-accent: #0f3460;
    --s101-highlight: #e94560;
    --s101-gold: #ffd700;
    --s101-text: #ffffff;
    --s101-text-light: #b8b8b8;
    --s101-border: #2a2a4a;
    --s101-success: #4caf50;
    --s101-warning: #ff9800;
    --s101-error: #f44336;
    --s101-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--s101-gradient);
    color: var(--s101-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.s101-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--s101-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.s101-header.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.s101-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 430px;
    margin: 0 auto;
}

.s101-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--s101-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.s101-logo span {
    margin-left: 8px;
}

.s101-header-actions {
    display: flex;
    gap: 10px;
}

.s101-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.s101-btn-primary {
    background: var(--s101-highlight);
    color: white;
}

.s101-btn-primary:hover {
    background: #d63347;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.s101-btn-secondary {
    background: transparent;
    color: var(--s101-gold);
    border: 2px solid var(--s101-gold);
}

.s101-btn-secondary:hover {
    background: var(--s101-gold);
    color: var(--s101-primary);
}

.s101-menu-toggle {
    background: none;
    border: none;
    color: var(--s101-text);
    font-size: 24px;
    cursor: pointer;
    display: none;
}

/* Navigation */
.s101-nav {
    display: flex;
    gap: 30px;
}

.s101-nav a {
    color: var(--s101-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.s101-nav a:hover {
    color: var(--s101-gold);
}

/* Mobile Menu */
.s101-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--s101-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
}

.s101-mobile-menu.active {
    right: 0;
}

.s101-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;
}

.s101-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.s101-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s101-mobile-nav a {
    color: var(--s101-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.s101-mobile-nav a:hover {
    background: var(--s101-accent);
    color: var(--s101-gold);
}

/* Main Content */
.s101-main {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .s101-main {
        padding-bottom: 140px;
    }
}

/* Hero Section */
.s101-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
}

.s101-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px;
}

.s101-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.s101-carousel-item.active {
    opacity: 1;
}

.s101-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s101-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
}

.s101-carousel-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.s101-carousel-desc {
    font-size: 14px;
    color: var(--s101-text-light);
}

/* Game Categories */
.s101-categories {
    padding: 20px;
}

.s101-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.s101-category-btn {
    padding: 10px 20px;
    background: var(--s101-secondary);
    color: var(--s101-text);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.s101-category-btn.active,
.s101-category-btn:hover {
    background: var(--s101-highlight);
    color: white;
}

/* Game Grid */
.s101-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.s101-game-card {
    background: var(--s101-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.s101-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.s101-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.s101-game-info {
    padding: 15px;
}

.s101-game-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.s101-game-type {
    font-size: 12px;
    color: var(--s101-text-light);
}

.s101-game-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(233, 69, 96, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.s101-game-card:hover .s101-game-play {
    opacity: 1;
}

/* Promotions Section */
.s101-promotions {
    padding: 20px;
}

.s101-promo-card {
    background: var(--s101-secondary);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--s101-border);
    transition: all 0.3s ease;
}

.s101-promo-card:hover {
    border-color: var(--s101-highlight);
    transform: translateX(5px);
}

.s101-promo-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--s101-gold);
    margin-bottom: 10px;
}

.s101-promo-desc {
    font-size: 14px;
    color: var(--s101-text-light);
    margin-bottom: 15px;
}

/* Partners Section */
.s101-partners {
    padding: 20px;
    text-align: center;
}

.s101-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.s101-partner-item {
    background: var(--s101-secondary);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    transition: all 0.3s ease;
}

.s101-partner-item:hover {
    background: var(--s101-accent);
    transform: scale(1.05);
}

.s101-partner-item img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
}

/* Bottom Navigation */
.s101-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s101-primary);
    border-top: 1px solid var(--s101-border);
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .s101-bottom-nav {
        display: block;
    }
}

.s101-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    max-width: 430px;
    margin: 0 auto;
}

.s101-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--s101-text-light);
}

.s101-bottom-nav-item:hover,
.s101-bottom-nav-item.active {
    color: var(--s101-gold);
    transform: translateY(-3px);
}

.s101-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.s101-bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.s101-footer {
    background: var(--s101-secondary);
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--s101-border);
}

.s101-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.s101-footer-section {
    margin-bottom: 30px;
}

.s101-footer-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--s101-gold);
    margin-bottom: 15px;
}

.s101-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.s101-footer-links a {
    color: var(--s101-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.s101-footer-links a:hover {
    color: var(--s101-gold);
}

.s101-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--s101-border);
    color: var(--s101-text-light);
    font-size: 12px;
}

/* Utility Classes */
.s101-text-center { text-align: center; }
.s101-text-gold { color: var(--s101-gold); }
.s101-text-highlight { color: var(--s101-highlight); }
.s101-mb-20 { margin-bottom: 20px; }
.s101-mt-20 { margin-top: 20px; }
.s101-hidden { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
    .s101-menu-toggle {
        display: block;
    }

    .s101-nav {
        display: none;
    }

    .s101-header-container {
        padding: 15px;
    }

    .s101-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .s101-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.s101-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Tooltip */
.s101-tooltip {
    position: fixed;
    background: var(--s101-primary);
    color: var(--s101-gold);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10000;
    pointer-events: none;
    border: 1px solid var(--s101-border);
}

/* Loading State */
.s101-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--s101-border);
    border-radius: 50%;
    border-top-color: var(--s101-highlight);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}