/**
 * BET100 APP - Main Stylesheet
 * Mobile-first responsive design
 * Color Palette: #4682B4 | #5F9EA0 | #1A1A1A | #1E90FF
 */

/* CSS Variables */
:root {
    --primary-color: #4682B4;
    --secondary-color: #5F9EA0;
    --dark-bg: #1A1A1A;
    --accent-color: #1E90FF;
    --text-light: #FFFFFF;
    --text-gray: #CCCCCC;
    --border-color: #333333;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.w45bd-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.w45bd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.w45bd-header-scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.w45bd-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w45bd-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w45bd-header-buttons {
    display: flex;
    gap: 10px;
}

.w45bd-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w45bd-btn-register {
    background: var(--accent-color);
    color: var(--text-light);
}

.w45bd-btn-login {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.w45bd-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

.w45bd-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.w45bd-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 9999;
    padding: 60px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.w45bd-menu-active {
    right: 0;
}

.w45bd-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
}

.w45bd-menu-links {
    list-style: none;
    margin-top: 30px;
}

.w45bd-menu-links li {
    margin-bottom: 20px;
}

.w45bd-menu-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.w45bd-menu-links a:hover {
    background: var(--primary-color);
}

/* Main Content */
.w45bd-main {
    margin-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.w45bd-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 20px 0;
    aspect-ratio: 16 / 9;
}

.w45bd-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.w45bd-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.w45bd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.w45bd-section {
    margin: 30px 0;
}

.w45bd-section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.w45bd-section-title span {
    color: var(--accent-color);
}

/* Game Grid */
.w45bd-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.w45bd-game-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.w45bd-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(70, 130, 180, 0.3);
    border-color: var(--primary-color);
}

.w45bd-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w45bd-game-name {
    padding: 8px;
    font-size: 11px;
    text-align: center;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.w45bd-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.w45bd-category-tabs::-webkit-scrollbar {
    display: none;
}

.w45bd-category-tab {
    padding: 8px 16px;
    background: var(--border-color);
    color: var(--text-gray);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.w45bd-category-tab.active,
.w45bd-category-tab:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Content Box */
.w45bd-content-box {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.w45bd-content-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.w45bd-content-box p {
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.w45bd-content-box ul {
    list-style: none;
    padding-left: 0;
}

.w45bd-content-box li {
    color: var(--text-gray);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.w45bd-content-box li:last-child {
    border-bottom: none;
}

.w45bd-content-box li::before {
    content: "▸";
    color: var(--accent-color);
    margin-right: 10px;
}

/* CTA Button */
.w45bd-cta-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    margin: 20px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w45bd-cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.4);
}

/* Footer */
.w45bd-footer {
    background: #0a0a0a;
    padding: 30px 15px 100px;
    margin-top: 40px;
}

.w45bd-footer-content {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
}

.w45bd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.w45bd-footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.w45bd-footer-links a:hover {
    color: var(--primary-color);
}

.w45bd-footer-text {
    color: var(--text-gray);
    font-size: 12px;
    margin-top: 20px;
}

.w45bd-partner-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.w45bd-partner-logo {
    width: 80px;
    height: 40px;
    background: var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-gray);
}

/* Mobile Bottom Navigation */
.w45bd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.98), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.w45bd-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;
    border-radius: 12px;
    padding: 5px;
}

.w45bd-nav-item:hover {
    background: rgba(70, 130, 180, 0.2);
    transform: scale(1.05);
}

.w45bd-nav-item.active {
    color: var(--accent-color);
}

.w45bd-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.w45bd-nav-label {
    font-size: 10px;
    color: var(--text-gray);
}

.w45bd-nav-item.active .w45bd-nav-label {
    color: var(--accent-color);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w45bd-bottom-nav {
        display: none;
    }

    .w45bd-main {
        padding-bottom: 0;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .w45bd-menu-toggle {
        display: block;
    }

    .w45bd-container {
        max-width: 1200px;
    }

    .w45bd-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utilities */
.w45bd-text-center {
    text-align: center;
}

.w45bd-mt-20 {
    margin-top: 20px;
}

.w45bd-mb-20 {
    margin-bottom: 20px;
}
