/*
Theme Name: richard clean
Theme URI: http://example.com/
Author: richard clean
Author URI: http://example.com/
Description: A custom WordPress theme based on the static RichardCasino site.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: richardcasino
Tags: custom, casino, responsive
*/

/* ============= СБРОС СТИЛЕЙ И БАЗОВАЯ НАСТРОЙКА ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0C221F;
    color: #FFFFFF;
}

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

/* ===================== HEADER ===================== */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: linear-gradient(180deg, #062D23 0%, #0C221F 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 -2px 6px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-start;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.menu-icon {
    width: 35px;
    height: 28px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    display: block;
    height: 4px;
    background: #D4AF37;
    border-radius: 2px;
}

.header-center {
    text-align: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.mobile-logo {
    display: none;
}

.mobile-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header-btn {
    background: linear-gradient(180deg, #f5d17f 0%, #cfa843 100%);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.header-btn:hover {
    background: linear-gradient(180deg, #ffd97f 0%, #d1a843 100%);
}

/* ===================== MAIN BANNER (ДЕСКТОП) ===================== */
.main-banner {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.banner-container {
    max-width: 1400px;
    width: 100%;
    overflow: hidden;
    padding: 0 10px;
}

.banner-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================== MOBILE BANNER (скрыт в десктопе) ===================== */
.mobile-banner {
    display: none;
}

/* ===================== NAV2 (Кнопки навигации) ===================== */
.nav2 {
    background-color: #0C221F;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.nav2-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.nav2-container a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #D4AF37;
    border-radius: 6px;
    color: #D4AF37;
    background-color: transparent;
    font-size: 18px;
    text-transform: uppercase;
    padding: 10px 0;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.nav2-container a:hover {
    background-color: #D4AF37;
    color: #0C221F;
}

/* ===================== MAIN CONTENT ===================== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 10px;
}

.search-container {
    background-color: #0C221F;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.search-bar {
    position: relative;
}

.search-input {
    width: 100%;
    background-color: transparent;
    border: 1px solid #1a3629;
    border-radius: 999px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: white;
    font-size: 0.875rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

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

.section-title-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.25rem;
}

.show-all-btn {
    color: #d97706;
    font-size: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.game-card:hover img {
    filter: brightness(0.5);
}

.game-card:hover {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.8);
}

/* ===================== МОБИЛЬНАЯ АДАПТАЦИЯ ===================== */
@media (max-width: 768px) {

    .menu-icon,
    .header-center,
    .nav2 {
        display: none;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-logo {
        display: block;
    }

    .search-container {
        display: none;
    }

    .main-banner {
        display: none;
    }

    .mobile-banner {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .mobile-banner .banner-container {
        max-width: 1400px;
        width: 100%;
        overflow: hidden;
        padding: 0 10px;
    }

    .mobile-banner .banner-container img {
        width: 100%;
        height: auto;
        display: block;
    }
}
