/* ============================================================
   CUSTOM.CSS — ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ELO-BOOST
   Версия: 1.1
   ============================================================ */

/* ===== ШРИФТЫ ===== */
@font-face {
    font-family: 'Unicons';
    src: url('/wp-content/themes/eloboost/assets/fonts/unicons/Unicons.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Custom';
    src: url('/wp-content/themes/eloboost/assets/fonts/custom/Custom.woff2') format('woff2');
    font-display: swap;
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: all .2s ease-in-out;
}

a:hover {
    color: #0d6efd;
}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: none;
    }
}

img {
    vertical-align: middle;
}

::selection {
    background: rgba(13, 110, 253, .7);
    color: #fff;
}

/* ===== ШРИФТОВАЯ ИЕРАРХИЯ ===== */

/* MONTSERRAT — только для заголовков и акцентных элементов */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4,
.section-title, .main-title, .card-hover-title,
.advantage-title, .widget-title,
.gradient-text, .counter,
.navbar-brand, .display-4,
.hero-container .main-title,
.games-section .section-title,
.games__item .card-hover .card-hover-title,
.advantage-item h3.advantage-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    line-height: 1.2;
    color: #343f52;
    word-spacing: 0.1rem;
    letter-spacing: -0.01rem;
}

.gradient-text {
    font-weight: 700 !important;
}

/* Размеры заголовков */
h1 { font-size: clamp(1.27rem, 1.27rem + 0.24vw, 1.45rem); }
h2 { font-size: clamp(1.255rem, 1.255rem + 0.06vw, 1.3rem); }
h3 { font-size: clamp(1.1rem, 1.15rem, 1.15rem); }
h4 { font-size: 0.95rem; }
h5 { font-size: 0.9rem; }

.display-1 { font-size: clamp(1.385rem, 1.385rem + 1.62vw, 2.6rem); }
.display-2 { font-size: clamp(1.345rem, 1.345rem + 1.14vw, 2.2rem); }
.display-3 { font-size: clamp(1.325rem, 1.325rem + 0.9vw, 2rem); }
.display-4 { font-size: clamp(1.305rem, 1.305rem + 0.78vw, 1.9rem); }

/* FIRA SANS CONDENSED — весь основной текст */
body, p, li, span, div, button, input, select, textarea,
.description-text, .badge-text, .advantage-description,
.blockquote, .trust-badge, .badge-content,
.blockquote-footer, .small,
.card-body, .card-text, .list-unstyled,
.footer, .copyright, .meta, .info,
.modal-content, .form-control, .alert,
.svg-tag svg text {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
}

/* Навигация и кнопки — жирнее (500) */
.nav-link, .btn, .badge, .rating,
.navbar .navbar-collapse .dropdown-menu .dropdown-item {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 500;
    line-height: 1.6;
}

.lead strong, .lead b {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 600;
}

.lead {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 500;
    line-height: 1.6;
}

/* ===== DROPDOWN ITEMS ===== */
.dropdown-item {
    display: block;
    width: 100%;
    padding: .35rem .75rem;
    clear: both;
    font-weight: 700;
    color: #343f52;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: .25rem;
    margin-bottom: 5px;
    letter-spacing: normal;
    transition: all .2s ease-in-out;
    font-family: 'Fira Sans Condensed', sans-serif !important;
}

.dropdown-item img.game-icon {
    width: 40px;
    margin-right: .25rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #343f52;
    background-color: #dee7f8;
    outline: 0;
}

.dropdown-item:active {
    text-decoration: none;
    color: #343f52;
    background-color: #dee7f8;
}

.dropdown-item:disabled {
    color: #60697b;
    pointer-events: none;
    background-color: transparent;
}

.navbar-nav:not([data-sm-skip]) .dropdown-item {
    white-space: normal;
}

.navbar-nav:not(.sm-collapsible) .sm-nowrap > li > .dropdown-item {
    white-space: nowrap;
}

/* Мобильная адаптация для dropdown */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse .dropdown-menu .dropdown-item {
        color: #fff;
        padding: .5rem;
        padding-left: 1.9rem;
        border-radius: 0;
        background-color: transparent;
        font-weight: 500;
    }

    .dropdown-item img.game-icon {
        width: 35px;
    }

    .navbar .navbar-collapse .dropdown-menu .dropdown-item:hover,
    .navbar .navbar-collapse .dropdown-menu .dropdown-item:focus {
        background: #2c323a;
        color: #fff;
    }
}

/* ===== GRADIENT-TEXT ===== */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== HERO SECTION ===== */
.hero-container .main-title {
    color: #ffffff;
}

.hero-container .main-title .gradient-text {
    background: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.advantage-item h3.advantage-title {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* ===== GAMES-SECTION ===== */
.games-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #e6f0ff, #f5f9ff);
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.games-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.games-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b !important;
    backface-visibility: hidden;
}

.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.games__item {
    position: relative;
    flex: 0 0 calc(25% - 25px);
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px 0 rgba(37, 99, 235, 0.15), 0 5px 10px 0 rgba(26, 20, 60, 0.1);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.games__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.games__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.games__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px 0 rgba(37, 99, 235, 0.25), 0 10px 20px 0 rgba(26, 20, 60, 0.2);
    z-index: 10;
}

.games__item:hover img {
    transform: scale(1.08);
}

.games__item .card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 30%, transparent 70%);
    pointer-events: none;
}

.games__item .card-hover .card-hover-title {
    color: #ffffff !important;
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.svg-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.svg-tag {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4px 8px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.svg-tag:hover {
    background: rgba(59, 130, 246, 0.7);
}

.svg-tag svg text {
    font-size: 10px;
    fill: #ffffff;
}

/* ===== УТИЛИТЫ ===== */
.pe-xl-15 {
    padding-right: 5rem !important;
}

.me-1 {
    margin-right: .25rem !important;
}

/* ===== АДАПТАЦИЯ ===== */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 1.9rem;
    }
}

@media (min-width: 1024px) {
    .games__item {
        flex-basis: calc(25% - 25px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .games__item {
        flex-basis: calc(33.333% - 20px);
        height: 180px;
    }
    .games__item:nth-child(3n+1) {
        margin-left: 0;
        margin-right: auto;
    }
    .games-section .section-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .games-section {
        padding: 60px 0;
    }
    .games__item {
        flex-basis: calc(50% - 15px);
        height: 160px;
    }
    .svg-tag-container {
        display: none;
    }
    .games-section .section-title {
        font-size: 1.9rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 479px) {
    .games-section {
        padding: 60px 0;
    }
    .games__item {
        flex-basis: calc(50% - 15px);
        height: 150px;
        max-width: none;
    }
    .games-container {
        gap: 15px;
        padding: 0 15px;
    }
    .card-hover {
        padding: 15px;
    }
    .svg-tag-container {
        display: none;
    }
    .games-section .section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
}

/* ===== СПЕЦИФИЧНЫЕ СТИЛИ ===== */
.grand-total-amount h3.display-4 {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: calc(1.315rem + 0.78vw);
    line-height: 1.25;
    color: #0d6efd !important;
    letter-spacing: -0.01rem;
}

.grand-total-amount .data-currency,
.grand-total-amount .data-price {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 700 !important;
}

@media (min-width: 1200px) {
    .grand-total-amount h3.display-4 {
        font-size: 1.9rem;
    }
}

#orderStatusText {
    font-family: 'Fira Sans Condensed', sans-serif !important;
    font-weight: 500;
}

.pseudo-a {
    font-weight: 500 !important;
}

.chat-online-status {
    font-weight: bold !important;
}

.woocommerce-Price-amount,
.woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-weight: bold !important;
}

.post-title,
.post-title a,
.post-title .link-dark {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: -0.01rem;
}

.link-dark {
    font-weight: 500 !important;
}

/* ===== ИКОНКИ (исправленные селекторы) ===== */
[class^="uil-"]:not([class*="owl-"]):not([class*="fa-"]),
[class*=" uil-"]:not([class*="owl-"]):not([class*="fa-"]) {
    font-family: 'Unicons', sans-serif !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[class^="custom-"]:not([class*="owl-"]):not([class*="fa-"]),
[class*=" custom-"]:not([class*="owl-"]):not([class*="fa-"]) {
    font-family: 'Custom', sans-serif !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== СТРЕЛКИ МЕНЮ ===== */
.navbar-nav .sub-arrow {
    font-family: 'Custom', sans-serif !important;
}

.navbar-nav:not(.sm-collapsible) > li > .nav-link .sub-arrow::before {
    content: "\e900" !important;
    font-family: 'Custom', sans-serif !important;
    position: relative;
}

/* ===== РАЗМЕРЫ ИКОНОК ===== */
body:not(.owl-carousel) .icon [class^="uil-"] {
    font-size: 1.1rem;
}

body:not(.owl-carousel) .bg-primary .icon [class^="uil-"] {
    font-size: 1rem;
}

.fs-22 {
    font-size: 1.15rem !important;
}

.fs-15 {
    font-size: 0.85rem !important;
}

.navbar .dropdown-item [class^="uil-"] {
    font-size: 1rem;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.social [class^="uil-"] {
    font-size: 1.1rem;
}

/* ===== ЗАЩИТА OWL CAROUSEL ОТ НАШИХ СТИЛЕЙ ===== */
.owl-carousel,
.owl-carousel *,
.owl-stage,
.owl-stage-outer,
.owl-item,
.owl-nav,
.owl-nav *,
.owl-dots,
.owl-dots *,
.owl-prev,
.owl-next,
.owl-dot,
.owl-dot span {
    font-family: inherit !important;
}

.owl-carousel [class^="uil-"],
.owl-carousel [class*=" uil-"] {
    font-family: inherit !important;
    font-size: inherit !important;
}