
:root {
    /* Основные цвета */
    --primary-color: #f1c40f; /* Золотистый акцент */
    --primary-hover: #d4ac0d;
    --secondary-color: #2c3e50; /* Темно-синий фон */
    --accent-color: #e74c3c; /* Красный для акцентов/ошибок */
    --success-color: #27ae60;
    --text-color-main: #ecf0f1;
    --text-color-muted: #bdc3c7;
    --bg-body: #1a1a1d;
    --bg-card: #2c2c34;
    --bg-header: #202025;

    /* Градиенты */
    --gradient-gold: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    --gradient-btn: linear-gradient(90deg, #00f0ff 0%, #007bff 100%);

    /* Размеры и отступы */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --container-width: 1200px;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;

    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(241, 196, 15, 0.3);

    /* Типографика */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-size-base: 16px;
}

/* Базовый сброс и настройки */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-color-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.2s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input {
    font-family: inherit;
    outline: none;
}

/* Контейнер */
.wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
    display: flex;
    flex-direction: column;
}

/* =========================================
   Header Styles
   ========================================= */
.header {
    background-color: var(--bg-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: var(--gap-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

.top-bl {
    padding: var(--gap-md) 0;
}

.top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gap-md);
}

.logo {
    display: block;
    width: 150px;
    height: 50px;
    background-image: url('https://roxcasino-swx77.top/wp-content/themes/Rox_Casino_Theme/assets/img/logo.png'); /* Placeholder path based on context */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Аутентификация */
.aut-line {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.form-aut {
    display: flex;
    gap: var(--gap-sm);
}

.input-aut, .input-pass {
    position: relative;
    width: 180px;
}

.mail-aut {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-color-main);
    font-size: 0.9rem;
    transition: border-color 0.3s, background-color 0.3s;
}

.mail-aut:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.mail-aut-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
    pointer-events: none;
}

.button-registrate, .button-aut {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.button-registrate {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.button-registrate:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

.button-aut {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button-aut:hover {
    background: rgba(241, 196, 15, 0.1);
    color: var(--text-color-main);
}

/* Поиск */
.search {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

.searchinput {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color-main);
    transition: all 0.3s ease;
}

.searchinput:focus {
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    opacity: 0.7;
    cursor: pointer;
}

/* Навигация */
.nav-block-hed {
    margin-top: var(--gap-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--gap-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-top {
    width: 100%;
}

.nav-tops {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gap-md);
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-color-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: color 0.3s, background-color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Соцсети в хедере */
.social .soc.desktop {
    display: flex;
    gap: 10px;
}

.vkontakte, .youtube {
    width: 24px;
    height: 24px;
    display: block;
    background-size: cover;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}
.vkontakte { background-image: url('https://roxcasino-swx77.top/wp-content/themes/Rox_Casino_Theme/assets/img/vk.png'); }
.youtube { background-image: url('https://roxcasino-swx77.top/wp-content/themes/Rox_Casino_Theme/assets/img/yt.png'); }

.vkontakte:hover, .youtube:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Мобильное меню (скрыто на десктопе) */
.click-nav, .navigate-mob, .mobile-line-bgr {
    display: none;
}

/* =========================================
   Slider & Hero Section
   ========================================= */
.top-slider {
    position: relative;
    margin-bottom: var(--gap-lg);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slid-man {
    position: relative;
    height: 400px; /* Фиксированная высота для примера */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #3a3a45 0%, #202025 100%);
}

.txt-slider-top {
    text-align: center;
    z-index: 2;
    padding: var(--gap-md);
}

.top-txt-slider {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: var(--gap-sm);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation: fadeInDown 0.8s ease-out;
}

.bot-txt-slider {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-color-main);
    margin-bottom: var(--gap-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn-slider {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    z-index: 5;
    transition: all 0.3s ease;
    animation: zoomIn 0.8s ease-out 0.4s backwards;
}

.btn-slider:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.7);
}

/* =========================================
   Jackpot & Categories
   ========================================= */
.jackpot {
    background: linear-gradient(90deg, #2c3e50, #000);
    padding: var(--gap-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--gap-lg);
    text-align: center;
    border: 1px solid rgba(241, 196, 15, 0.3);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.1) inset;
}

.block-number {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.number-jackpot {
    background: #000;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.line-yelow-mid {
    margin-bottom: var(--gap-lg);
}

.border-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-md);
    justify-items: center;
}

.item-bord {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--gap-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    width: 100%;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid transparent;
}

.item-bord:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.img-block {
    width: 64px;
    height: 64px;
    margin-bottom: var(--gap-sm);
    object-fit: contain;
}

.btn-bord {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-main);
    text-transform: uppercase;
}

/* =========================================
   Content & Games Grid
   ========================================= */
.block-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

/* Текстовый блок */
.block__text, .block__text1 {
    background: var(--bg-card);
    padding: var(--gap-lg);
    border-radius: var(--border-radius-md);
    color: var(--text-color-muted);
}

.block__text h1, .block__text h2, .block__text1 h1, .block__text1 h2 {
    color: var(--text-color-main);
    margin-bottom: var(--gap-md);
}

.block__text p, .block__text1 p {
    margin-bottom: var(--gap-sm);
    line-height: 1.7;
}

.block__text ul, .block__text ol {
    margin: var(--gap-sm) 0 var(--gap-md) 2rem;
    list-style-type: disc;
}

/* Сетка игр */
.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.slot {
    background: #000;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
}

.slot:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.slot a {
    display: block;
    height: 100%;
}

.img-slot {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.slot:hover .img-slot img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Бейдж Free Spins */
.slot-badge__freespin {
    position: absolute;
    top: 10px;
    left: -30px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 30px;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Кнопка "Играть" при наведении */
.btn-slot-hide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slot:hover .btn-slot-hide {
    opacity: 1;
}

.button-play {
    background: var(--gradient-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.text-slot {
    padding: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color-main);
    background: var(--bg-card);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Таблицы в тексте */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--gap-md) 0;
    background: rgba(0,0,0,0.2);
}

td, th {
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: translateX(-50%) scale(0.8); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* =========================================
   Responsive Design (Media Queries)
   ========================================= */
@media (max-width: 992px) {
    .aut-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-aut {
        flex-direction: column;
        width: 100%;
    }
    
    .input-aut, .input-pass {
        width: 100%;
    }

    .border-line {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header Mobile Adjustments */
    .top-line {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        margin: 0 auto;
    }

    .search {
        max-width: 100%;
    }

    .aut-line, .form-aut, .nav-block-hed {
        display: none; /* Скрываем десктопные элементы */
    }

    /* Мобильная навигация */
    .click-nav {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .btn-mobile-nav {
        width: 30px;
        height: 3px;
        background: #fff;
        position: relative;
    }
    .btn-mobile-nav::before, .btn-mobile-nav::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: #fff;
        left: 0;
    }
    .btn-mobile-nav::before { top: -8px; }
    .btn-mobile-nav::after { top: 8px; }

    .navigate-mob {
        display: block;
        background: var(--bg-card);
        padding: var(--gap-md);
        margin-top: var(--gap-md);
        border-radius: var(--border-radius-md);
    }

    .nav-tops-m {
        display: flex;
        flex-direction: column;
        gap: var(--gap-sm);
    }

    .nav-link-m {
        display: block;
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: var(--text-color-main);
    }

    /* Mobile Quick Links */
    .line-yelow-mid {
        display: none; /* Скрываем десктопные иконки категорий */
    }

    .mobile-line-bgr {
        display: block;
        margin-bottom: var(--gap-lg);
        overflow-x: auto;
    }
    
    .mobile-item-bord {
        display: flex;
        gap: 15px;
        padding-bottom: 10px;
    }

    .item-bord1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 80px;
    }
    
    .circle-item1, .circle-item2, .circle-item3, .circle-item4 {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--gradient-gold);
        margin-bottom: 5px;
        border: 2px solid #fff;
    }

    .text-item-mobile {
        font-size: 0.8rem;
        color: var(--text-color-muted);
    }

    /* Grid Adjustments */
    .slots {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-sm);
    }
    
    .slid-man {
        height: 300px;
    }
    
    .btn-slider {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slots {
        grid-template-columns: 1fr;
    }
    
    .top-txt-slider {
        font-size: 1.5rem;
    }
    
    .number-jackpot {
        font-size: 1.2rem;
        padding: 2px 5px;
    }
}
