/*
Theme Name: Zoome Casino
Theme URI: https://ozgamefinder.com/
Author: ZoomeThemes
Author URI: https://ozgamefinder.com/
Description: A modern WordPress theme designed for casinos and gambling sites.
Version: 1.5.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zoome-casino
Tags: one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, casino, gambling
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #fee600;
    --primary-hover: #e6cf00;
    --secondary-color: #1a1427;
    --secondary-light: #29233a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --bg-dark: #120f1a;
    --rose-button: rgba(236, 72, 153, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Убедимся, что изображения не выходят за пределы контейнера */
img {
    max-width: 100%;
    height: auto;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: var(--secondary-light);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: #342c47;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 18rem;
    background-color: var(--secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
    display: none;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    width: 180px;
    height: auto;
}

.nav-group {
    margin-bottom: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-separator {
    height: 1px;
    background-color: rgba(107, 114, 128, 0.3);
    margin: 0.75rem 0;
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.6rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-dropdown-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chevron-down {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.nav-dropdown.active .chevron-down {
    transform: rotate(-135deg);
}

.nav-dropdown-content {
    display: none;
    margin-top: 0.25rem;
}

.nav-dropdown.active .nav-dropdown-content {
    display: block;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0 0.5rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-subitem:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-subicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    font-size: 1.25rem;
}

.nav-sublabel {
    font-size: 1rem;
    font-weight: normal;
}

.grid-icon {
    display: grid;
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
    gap: 2px;
    width: 1rem;
    height: 1rem;
}

.grid-icon::before,
.grid-icon::after {
    content: "";
    grid-column: 1;
    background: purple;
    border-radius: 2px;
}

.grid-icon::before {
    grid-row: 1;
}

.grid-icon::after {
    grid-row: 2;
}

.slots-icon {
    background: linear-gradient(to bottom, #d53f8c, #7e22ce);
    border-radius: 4px;
    color: #f0e68c;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.live-icon {
    background: linear-gradient(to bottom, #4a5568, #1a202c);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-icon::after {
    content: "";
    width: 1rem;
    height: 0.5rem;
    background: white;
    border-radius: 2px;
    position: relative;
}

.live-icon::before {
    content: "";
    position: absolute;
    width: 0.25rem;
    height: 0.75rem;
    background: black;
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

.sidebar-footer {
    margin-top: auto;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.casino-time {
    background-color: var(--secondary-light);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.install-app-button {
    background: linear-gradient(to right, var(--primary-color), #fd7e14);
    color: #000;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector {
    background-color: var(--secondary-light);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.language-selector-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-button {
    background-color: var(--secondary-light);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.support-button:hover {
    background-color: #342c47;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 0;
    padding-bottom: 4rem; /* Space for mobile footer */
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл в контенте */
    max-width: 100%; /* Ограничиваем максимальную ширину */
    box-sizing: border-box; /* Учитываем padding в общей ширине */
}

/* ===== DESKTOP BANNER ===== */
.desktop-banner {
    max-width: 100%;
    overflow: hidden;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    z-index: 20;
    border-bottom: 1px solid rgba(107, 114, 128, 0.4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.mobile-menu-button {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

.mobile-logo {
    display: block;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.mobile-logo img {
    max-height: 36px;
    width: auto;
}

.search-container {
    display: none;
    flex: 1;
    max-width: 20rem;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    height: 3rem;
    background-color: var(--bg-dark);
    border: none;
    border-radius: 9999px;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-top: 4rem; /* Account for header height */
    padding: 1rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-banner, .desktop-banner {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    max-width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* Изменено с cover на contain, чтобы баннер помещался полностью */
    max-height: 400px; /* Ограничиваем максимальную высоту, чтобы баннер не был слишком большим */
    max-width: 100%;
    display: block; /* Убираем дополнительные отступы у изображения */
    margin: 0 auto; /* Центрируем изображение */
}

/* Mobile banner */
.mobile-hero-banner {
    display: none;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(to right, #4a1a71, #29233a); /* Изменен цвет с голубого на фиолетовый */
    padding: 20px;
    color: white;
    text-align: center;
}

.mobile-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.mobile-banner-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.mobile-banner-subtitle {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--primary-color); /* Используем желтый цвет для подзаголовка */
}

.mobile-banner-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-banner-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color); /* Используем основной цвет темы */
    color: #1a1427; /* Темный цвет для текста цифр */
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 5px;
}

.step-text {
    font-size: 14px;
}

.step-separator {
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.mobile-banner-button {
    background-color: var(--primary-color);
    color: #1a1427;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-banner-button:hover {
    background-color: var(--primary-hover);
}

/* ===== GAME CATEGORIES ===== */
.game-categories-section {
    padding: 1rem;
    margin-top: 1.5rem;
}

.categories-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0.25rem;
    background-color: var(--secondary-color);
    border: 1px solid #2d2d2d;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    max-width: 100%;
    -webkit-overflow-scrolling: touch; /* Улучшаем скролл на iOS */
}

.categories-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    flex: none;
}

.category-tab.active {
    background-color: var(--secondary-light);
    transform: scale(1.05);
}

.category-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.category-tab.active .category-icon img {
    transform: rotate(12deg);
}

/* ===== GAMES SECTION ===== */
.games-section {
    padding: 1rem;
    margin-top: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.game-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-2px);
}

.game-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

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

.hot-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #e53e3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 2;
}

.play-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.game-card:hover .play-button-overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 4rem;
    height: 4rem;
    background-color: var(--rose-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: translateY(1rem);
    transition: transform 0.3s, scale 0.3s;
}

.game-card:hover .play-button {
    transform: translateY(0);
}

.game-card:hover .play-button:hover {
    transform: scale(1.1);
}

.game-info {
    background-color: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.game-title {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== EXPLORE ALL GAMES ===== */
.explore-all-games {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
}

.explore-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.explore-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    padding: 2rem 1rem 6rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(107, 114, 128, 0.4);
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-icon {
    width: 4rem;
    height: 2.5rem;
    background-color: var(--secondary-light);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.payment-icon img, 
.payment-icon svg {
    max-width: 100%;
    max-height: 100%;
}

.bitcoin svg {
    height: 1.5rem;
}

.footer-separator {
    height: 1px;
    background-color: rgba(107, 114, 128, 0.3);
    margin: 1.5rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 32rem;
}

.footer-logo {
    height: 2rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-disclaimer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.responsibility-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.responsibility-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.responsibility-icon svg {
    width: 100%;
    height: 100%;
}

/* ===== MOBILE FOOTER ===== */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 50;
    width: 100%;
    max-width: 100%;
}

.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    position: relative;
}

.mobile-footer-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-footer-item span {
    font-size: 0.75rem;
}

.mobile-footer-item.active {
    color: var(--primary-color);
}

.mobile-footer-item.active::before {
    content: '';
    position: absolute;
    inset: -0.25rem;
    background-color: var(--secondary-light);
    border-radius: 9999px;
    z-index: -1;
}

/* ===== LOADER ===== */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 767px) {
    /* Мобильные стили */
    body {
        padding-right: 0; /* Убираем отступ справа, который может вызывать скролл */
    }
    
    .hero-section {
        padding: 1rem 1rem 0; /* Уменьшаем отступы */
    }
    
    .desktop-banner {
        display: none;
    }
    
    .mobile-hero-banner {
        display: block;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .game-categories-section {
        display: none;
    }
    
    .games-section {
        padding: 0.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .game-card {
        margin-bottom: 0.5rem;
    }
    
    .mobile-logo {
        display: block;
    }
    
    /* Уменьшаем размер логотипа на мобильных устройствах */
    .mobile-logo img {
        max-height: 36px;
        width: auto;
    }
}

@media (min-width: 768px) {
    /* Десктопные стили */
    .sidebar {
        display: block;
        width: 18rem;
        max-width: 18rem;
    }
    
    .main-content {
        margin-left: 18rem;
        max-width: calc(100% - 18rem);
        overflow-x: hidden;
    }
    
    .header {
        left: 18rem;
        max-width: calc(100% - 18rem);
        width: calc(100% - 18rem);
    }
    
    .mobile-menu-button,
    .mobile-logo {
        display: none;
    }
    
    .search-container {
        display: flex;
    }
    
    .mobile-footer {
        display: none;
    }
    
    .desktop-banner {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .mobile-hero-banner {
        display: none;
    }
    
    .game-categories-section {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer {
        display: block;
        padding-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .hero-banner {
        height: auto;
    }
}

@media (min-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
} 