/**
 * responsive.css - Адаптивные стили для NeonSatoshi Casino
 * Обеспечивает корректное отображение на всех устройствах
 */

/* Общие адаптивные стили */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
    
    .game-carousel .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .animated-benefits {
        justify-content: center;
    }
    
    .game-categories .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-methods-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .game-categories .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Dashboard специфичные стили */
    .dashboard-header {
        flex-direction: column;
    }
    
    .dashboard-welcome {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .dashboard-stats {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header-right {
        display: none;
    }
    
    .header-right-mobile {
        display: flex;
    }
    
    .game-categories .category-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-banner .promo-content {
        flex-direction: column;
    }
    
    .promo-banner .promo-text {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .promo-banner .promo-action {
        width: 100%;
        justify-content: center;
    }
    
    /* Модальные окна */
    .modal-content {
        width: 95%;
        max-width: 450px;
    }
    
    /* Профиль пользователя */
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .profile-content {
        width: 100%;
    }
    
    /* Депозит */
    .deposit-methods {
        grid-template-columns: 1fr;
    }
    
    /* Поддержка */
    .support-container {
        flex-direction: column;
    }
    
    .support-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .support-content {
        width: 100%;
    }
    
    /* Live Chat */
    .chat-container {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .chat-content {
        width: 100%;
    }
    
    /* Dashboard специфичные стили */
    .stat-card {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .animated-title {
        font-size: 28px;
    }
    
    .animated-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .animated-benefits {
        flex-direction: column;
    }
    
    .benefit-item {
        width: 100%;
        margin: 5px 0;
    }
    
    .payment-methods-container {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
    }
    
    .section-header .view-all {
        margin-top: 10px;
    }
    
    /* Модальные окна */
    .modal-content {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Профиль пользователя */
    .profile-stats {
        flex-direction: column;
    }
    
    .profile-stat-card {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Промо акции */
    .promo-card {
        flex-direction: column;
    }
    
    .promo-image {
        width: 100%;
    }
    
    .promo-details {
        width: 100%;
        padding: 15px;
    }
}

/* Исправление проблемы с пропаданием элементов при скролле в dashboard */
.main-content > section {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
}

/* Фиксированная анимация для всех страниц */
.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Дополнительные стили для обеспечения стабильности анимаций */
.animated-title, 
.animated-subtitle, 
.benefit-item, 
.hero-buttons, 
.section-header, 
.game-card, 
.live-game-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Стили для мобильной навигации */
.mobile-nav-toggle {
    display: none;
}

@media screen and (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: var(--accent);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-nav-toggle i {
        font-size: 18px;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    body.sidebar-open .sidebar-backdrop {
        display: block;
    }
}
