/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0F1419;
    --bg-secondary: #1A1F26;
    --bg-card: #1E2329;
    --accent-primary: #FF3B3B;
    --accent-secondary: #FF6B3B;
    --accent-gold: #FFD700;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B3B8;
    --border-color: #2D3139;
    --success-color: #00E676;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(255, 59, 59, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    display: none;
    gap: 8px;
}

.btn-login-mobile,
.btn-register-mobile {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-login-mobile {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-login-mobile:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-register-mobile {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

.btn-register-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 59, 59, 0.4);
}

.btn-hero {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 16px 40px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-play {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-play:hover {
    transform: scale(1.05);
}

.btn-bonus {
    background: var(--accent-gold);
    color: #000;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
}

.btn-bonus:hover {
    background: #FFC700;
    transform: scale(1.05);
}

.btn-tournament {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    width: 100%;
    margin-top: 15px;
}

.btn-tournament:hover {
    transform: translateY(-2px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: right 0.3s;
    padding: 20px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 30px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent-primary);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn.mobile {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-top: 20px;
}

.hero-swiper {
    border-radius: 16px;
    overflow: hidden;
}

.hero-slide {
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--text-primary);
    width: 30px;
    border-radius: 6px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    color: var(--accent-primary);
    font-size: 28px;
}

.live-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.section-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.section-link:hover {
    gap: 12px;
}

/* ===== GAME CARDS ===== */
.games-swiper {
    overflow: visible;
}

.games-swiper .swiper-slide {
    width: 280px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.game-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.game-provider {
    font-size: 13px;
    color: var(--text-secondary);
}

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
}

.game-badge.live {
    background: var(--accent-primary);
    animation: pulse 2s infinite;
}

.game-rtp {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 230, 118, 0.9);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}

/* ===== HOT GAMES GRID ===== */
/* Hot Games Swiper специфичные стили */
.hot-games-swiper {
    padding: 10px 0;
}

.hot-games-swiper .swiper-slide {
    width: 300px;
}

/* ===== BONUS BANNER ===== */
.bonus-banner {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
    padding: 60px 0;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.bonus-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.bonus-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.bonus-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.bonus-subtitle {
    font-size: 20px;
    opacity: 0.95;
}

/* ===== EDITABLE SECTION ===== */
/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    line-height: 1.8;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.about-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.about-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-warning {
    margin-top: 10px;
    font-size: 13px;
    color: var(--accent-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .nav {
        gap: 18px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .bonus-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-auth-buttons {
        display: flex;
    }

    .header-right .btn-login,
    .header-right .btn-register {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-slide {
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-icon {
        font-size: 20px;
    }

    .games-swiper .swiper-slide {
        width: 180px;
    }

    .hot-games-swiper .swiper-slide {
        width: 240px;
    }

    .bonus-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .bonus-title {
        font-size: 28px;
    }

    .bonus-subtitle {
        font-size: 16px;
    }

    .about-content {
        padding: 25px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    .logo {
        font-size: 18px;
    }

    .hero-slide {
        min-height: 350px;
        padding: 30px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .btn-hero {
        padding: 10px 24px;
        font-size: 13px;
    }

    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 18px;
    }

    .section-icon {
        font-size: 18px;
    }

    .games-swiper .swiper-slide {
        width: 150px;
    }

    .game-card {
        border-radius: 10px;
    }

    .game-title {
        font-size: 13px;
    }

    .game-provider {
        font-size: 11px;
    }

    .hot-games-swiper .swiper-slide {
        width: 150px;
    }

    .bonus-title {
        font-size: 24px;
    }

    .bonus-subtitle {
        font-size: 14px;
    }

    .btn-bonus {
        padding: 12px 28px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* ===== ONLINE STATISTICS WIDGET ===== */
.online-stats-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 59, 59, 0.1) 100%);
    border: 2px solid rgba(255, 59, 59, 0.3);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 59, 59, 0.2);
    backdrop-filter: blur(10px);
    z-index: 999;
    animation: slideInRight 0.5s ease-out, float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.online-stats-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 59, 59, 0.3);
    border-color: rgba(255, 59, 59, 0.5);
}

.stats-icon {
    font-size: 28px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-value {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 16px;
    min-width: 45px;
    text-align: right;
    transition: all 0.3s ease;
}

.stats-value.playing {
    color: var(--success-color);
}

.stats-value.updating {
    animation: numberUpdate 0.3s ease;
}

.stats-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes numberUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--accent-primary);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .online-stats-widget {
        bottom: 20px;
        right: 15px;
        padding: 12px 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .stats-icon {
        font-size: 24px;
    }

    .stats-item {
        font-size: 12px;
    }

    .stats-value {
        font-size: 14px;
        min-width: 40px;
    }

    .stats-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .online-stats-widget {
        bottom: 15px;
        right: 10px;
        padding: 10px 14px;
        gap: 10px;
    }

    .stats-icon {
        font-size: 20px;
    }

    .stats-item {
        font-size: 11px;
        gap: 6px;
    }

    .stats-value {
        font-size: 13px;
        min-width: 35px;
    }
}