/*
Theme Name: Millionz Casino
Theme URI: https://millionz-casino.com/
Author: Machete Tech
Description: Millionz Casino
Version: 1.0
Text Domain: millionz
*/

/* ==========================================
   CSS-ПЕРЕМЕННЫЕ (СВЕТЛАЯ ТЕМА)
   ========================================== */
:root {
    --bg-main: #ffffff; 
    --bg-secondary: #eef6ff; 
    --accent-color: #007bff; 
    --heading-color: #003366; 
    --btn-bg: linear-gradient(135deg, #0088ff 0%, #005fcc 100%); 
    --btn-bg-alt: #005fcc;
    --text-color: #333333; 
    --text-muted: #777777; 
    --border-color: #cce0ff; 
}

/* ==========================================
   БАЗОВЫЕ СТИЛИ
   ========================================== */
*, ::after, ::before { box-sizing: border-box; }
html, body {
    overflow-x: hidden; 
}
body {
    padding: 0; margin: 0;
    background-color: var(--bg-main);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a.text-link { color: var(--accent-color); font-weight: bold; }
a.text-link:hover { text-decoration: underline; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 40px 0; }
p { margin-bottom: 15px; }
ul, ol { margin-bottom: 20px; padding-left: 20px; }
li { margin-bottom: 8px; }

.content-img {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.15);
    display: block;
}

/* ==========================================
   ШАПКА И БУРГЕР-МЕНЮ
   ========================================== */
.header {
    position: sticky; top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0;
}
.header__left { display: flex; align-items: center; gap: 20px; }

.menu-burger__input { display: none; }
.menu-burger__label {
    cursor: pointer; display: flex; flex-direction: column; gap: 5px;
    width: 30px; z-index: 102;
}
.menu-burger__label span {
    display: block; width: 100%; height: 3px; background-color: var(--heading-color);
    transition: 0.3s;
}
.menu {
    position: fixed; top: 0; left: -300px;
    width: 280px; height: 100vh;
    background-color: #ffffff;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    z-index: 101;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.menu-burger__input:checked ~ .menu { left: 0; }
.menu-burger__input:checked + .menu-burger__label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-burger__input:checked + .menu-burger__label span:nth-child(2) { opacity: 0; }
.menu-burger__input:checked + .menu-burger__label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu__list { list-style: none; padding: 0; margin: 0; }
.menu__item { margin-bottom: 15px; font-size: 16px; }
.menu__item a { color: var(--text-color); font-weight: 500;}
.menu__item a:hover { color: var(--accent-color); }

/* Кнопки */
.btn-box { display: flex; gap: 10px; }

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn--login { 
    background-color: transparent; 
    border: 2px solid var(--accent-color); 
    color: var(--accent-color); 
}
.btn--login:hover { 
    background-color: rgba(0, 123, 255, 0.05); 
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.btn--register { 
    background: var(--btn-bg); 
    color: #fff; 
    box-shadow: 0 0 0 1px #3399ff, 0 4px 15px rgba(0, 136, 255, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.btn--register::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: all 0s ease;
}
.btn--register:hover { 
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px #66b2ff, 0 6px 20px rgba(0, 136, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.btn--register:hover::after {
    left: 200%; transition: all 0.7s ease-in-out;
}

/* ==========================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================== */
.hero {
    display: grid; grid-template-columns: 2fr 1fr; gap: 20px;
    margin-top: 20px;
}
.hero__content {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 100%), url('images/millionz-image.webp');
    background-size: cover; background-position: center;
    padding: 60px 40px; border-radius: 20px;
    display: flex; flex-direction: column; justify-content: center;
    border: 1px solid var(--border-color);
}
.hero__content h1 { font-size: 2.8em; margin: 0 0 20px 0; color: var(--heading-color); line-height: 1.2; }
.hero__content p { font-size: 1.1em; margin-bottom: 30px; max-width: 650px; color: var(--text-color); }

.winners-sidebar {
    background-color: var(--bg-secondary); border-radius: 20px; padding: 20px;
    border: 1px solid var(--border-color);
}
.winners-sidebar h3 { margin-top: 0; color: var(--heading-color); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.winner-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.winner-item:last-child { border-bottom: none; }
.winner-info { display: flex; align-items: center; gap: 10px; color: var(--text-color); font-weight: 500;}
.winner-avatar { width: 40px; height: 40px; border-radius: 50%; background: #ffffff; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--accent-color); }
.winner-amount { color: var(--accent-color); font-weight: bold; }

/* ==========================================
   СЕТКА ИГР
   ========================================== */
.games-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
    margin-top: 20px; margin-bottom: 40px;
}
.game-card {
    position: relative; border-radius: 15px; overflow: hidden;
    background: #ffffff; aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}
.game-card img { width: 100%; height: 100%; transition: 0.3s; margin: 0; border-radius: 0; box-shadow: none; object-fit: cover;}
.game-card:hover img { transform: scale(1.1); }
.game-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    opacity: 0; transition: 0.3s;
}
.game-title { position: absolute; bottom: 10px; left: 10px; font-weight: bold; z-index: 2; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.game-card:hover .game-overlay { opacity: 1; }

/* ==========================================
   КОНТЕНТНЫЕ БЛОКИ И ТАБЛИЦЫ
   ========================================== */
.content-block {
    background-color: var(--bg-secondary);
    border-radius: 20px; padding: 40px; margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.content-block h2 { color: var(--heading-color); margin-top: 0; font-size: 1.8em; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.content-block h3 { color: var(--accent-color); margin-top: 25px; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table {
    width: 100%; border-collapse: collapse; min-width: 600px;
    background: #ffffff; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border-color);
}
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: var(--accent-color); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #f5f9ff; }

/* Нумерованные списки с оформлением */
.steps-list { list-style: none; padding-left: 0; counter-reset: steps; }
.steps-list li {
    counter-increment: steps;
    padding: 10px 12px 10px 52px;
    position: relative;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 12px;
    top: 10px;
    background: var(--btn-bg);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
}

/* ==========================================
   СПОЙЛЕРЫ/АККОРДЕОН FAQ
   ========================================== */
.spoiler {
    background: #ffffff; margin: 15px 0; border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative; overflow: hidden;
}
.spoiler__input { display: none; }
.spoiler__label {
    display: block; padding: 18px 50px 18px 20px; font-weight: 600; cursor: pointer;
    position: relative; background: var(--bg-secondary); transition: 0.3s; margin: 0;
    color: var(--heading-color);
}
.spoiler__label:hover { background: #e0f0ff; }
.spoiler__label::after {
    content: '+'; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-size: 24px; transition: 0.3s; color: var(--accent-color);
}
.spoiler__input:checked + .spoiler__label::after { transform: translateY(-50%) rotate(45deg); }
.spoiler__content { max-height: 0; padding: 0 20px; opacity: 0; transition: 0.4s ease-in-out; }
.spoiler__input:checked ~ .spoiler__content { max-height: 500px; padding: 20px; opacity: 1; background: #ffffff; }

/* ==========================================
   ФУТЕР
   ========================================== */
.footer {
    background-color: #f8f9fa; padding: 40px 0; text-align: center;
    border-top: 1px solid var(--border-color); margin-top: 40px;
}
.footer__links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.footer__links a { color: var(--text-color); font-size: 14px; transition: 0.3s; font-weight: 500;}
.footer__links a:hover { color: var(--accent-color); }

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; }
    .winners-sidebar { display: flex; flex-wrap: wrap; gap: 15px; }
    .winner-item { flex: 1 1 200px; border-bottom: none; background: #ffffff; padding: 10px; border-radius: 10px; }
    .winners-sidebar h3 { width: 100%; border-bottom: none; margin-bottom: 0; }
}
@media (max-width: 768px) {
    .btn-box { display: none; }
    .hero__content { padding: 40px 20px; }
    .hero__content h1 { font-size: 2em; }
    .content-block { padding: 20px; }

    /* БУРГЕР ВПРАВО ДЛЯ МОБИЛОК */
    .header__left {
        margin-left: 20px;
        margin-right: 20px;
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
    .menu {
        left: auto;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    }
    .menu-burger__input:checked ~ .menu {
        transform: translateX(0); 
    }
}