/* mobile.css - Стили для мобильных устройств */

/* Общие стили для мобильных устройств */
@media (max-width: 992px) {
    /* Стили для планшетов и небольших ноутбуков */
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        padding: 1.5rem;
    }

    .hero-content {
        text-align: center;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .game-carousel .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .providers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .live-game-info h3 {
        font-size: 1rem;
    }

    .payment-methods-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .payment-method-name {
        font-size: 0.9rem;
    }

    .benefit-item {
        padding: 0.8rem;
    }
    
    /* Стили для дашборда */
    .dashboard-header {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .dashboard-stats {
        width: 100%;
    }
    
    .stat-card {
        flex: 1;
    }
}

/* Стили для планшетов в портретном режиме и больших мобильных телефонов */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    /* Мобильная навигация - левая кнопка полностью удалена */
    .toggle-sidebar {
        display: none !important; /* Принудительно скрываем левую кнопку */
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transition: transform 0.3s ease;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        transform: translateX(280px);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(3px);
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
        animation: fadeIn 0.3s ease-out;
    }

    /* Основной контент */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: fixed;
        width: 100%;
        left: 0;
        top: 70px;
        border-radius: 0;
        z-index: 900;
    }

    /* Секция героя */
    .hero-content {
        padding: 30px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }

    /* Игровые карточки */
    .game-carousel .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .live-game-card {
        width: 100%;
    }

    /* Провайдеры */
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Методы оплаты */
    .payment-methods-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    /* Категории игр */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Модальные окна */
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    /* Дашборд */
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    /* Страницы */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .challenges-grid,
    .vip-benefits-grid,
    .promo-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .challenge-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .challenge-progress {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vip-levels {
        flex-direction: column;
    }
    
    .promo-code-form .form-group {
        flex-direction: column;
    }
    
    /* Социальные сети */
    .social-links {
        justify-content: flex-start;
    }
}

/* Стили для мобильных телефонов */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Заголовки */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    /* Промо-секция */
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .promo-text h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Игровые карточки */
    .game-carousel .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    /* Провайдеры */
    .providers-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    /* Методы оплаты */
    .payment-methods-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.8rem;
    }

    /* Боковая панель */
    .sidebar {
        width: 85%;
        padding: 1.2rem 0.8rem;
    }

    /* Кнопки авторизации */
    .auth-buttons {
        gap: 8px;
    }

    .auth-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Кнопка мобильного меню */
    .toggle-sidebar {
        top: 10px;
        right: 10px;
    }
    
    /* Страницы */
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .game-filters {
        flex-direction: column;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .challenges-grid,
    .vip-benefits-grid,
    .promo-cards {
        grid-template-columns: 1fr;
    }
    
    /* Дашборд */
    .dashboard-welcome h1 {
        font-size: 2rem;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Стили для очень маленьких мобильных экранов */
@media (max-width: 380px) {
    body {
        font-size: 13px;
    }

    /* Заголовки */
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    /* Навигационная панель */
    .navbar {
        padding: 0.5rem 0.7rem;
    }
    
    .logo-text-short {
        font-size: 1.3rem;
        font-weight: 900;
    }
    
    .auth-buttons {
        gap: 5px;
    }
    
    .btn-login, .btn-register {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }

    /* Преимущества */
    .benefit-item {
        padding: 0.6rem;
    }

    .benefit-item i {
        font-size: 1rem;
    }

    /* Заголовки секций */
    .section-header h2 {
        font-size: 1.3rem;
    }

    /* Навигация */
    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Пользовательские элементы */
    .user-dropdown-btn, .user-balance {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    /* Боковая панель */
    .sidebar {
        width: 90%;
    }

    /* Кнопки авторизации */
    .auth-buttons {
        gap: 5px;
    }
    
    /* Игровые карточки */
    .game-carousel .carousel-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

/* Анимации для мобильного UX */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
