/*
Theme Name: SlotsChile Child
Theme URI: https://slotschile.lat
Description: Child theme for GeneratePress (LATAM iGaming SEO site)
Author: SlotsChile
Template: generatepress
Version: 1.2
Text Domain: slotschile-child
*/

/* 1. ГЛОБАЛЬНЫЕ СБРОСЫ (Против вылетов вправо) */
*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background: #0b0b0f;
    color: #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:root {
    --bg: #0b0b0f;
    --card: #141420;
    --text: #eaeaea;
    --muted: #a0a0a0;
    --accent: #ff6a00;
    --accent-hover: #ff3d00;
    --accent2: #00e0a4;
    --radius: 12px;
    --shadow: 0 8px 20px rgba(0,0,0,0.4);
    --border: 1px solid rgba(255,255,255,0.07);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. СТРУКТУРА КОНТЕНТА (Центрирование без сайдбара) */
#primary {
    max-width: 1100px; /* Увеличил для удобства широких таблиц */
    margin: 0 auto;
    float: none;
    width: 100%;
}

.content-area {
    padding: 0;
}

.inside-article, .content-box {
    background-color: var(--card) !important;
    color: var(--text);
    border-radius: var(--radius);
    border: var(--border);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* 3. ТИПОГРАФИКА */
.entry-content h2 {
    font-size: clamp(22px, 5vw, 28px);
    margin: 1.5em 0 0.8em;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    color: #fff;
}

/* 4. КНОПКИ */
.btn-cta, .btn-secondary, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border-radius: var(--radius);
    border: none;
    outline: none;
}

.btn-cta {
    background: var(--accent);
    color: #fff;
    padding: 14px 24px;
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent2);
    color: var(--accent2);
    padding: 12px 22px;
}

/* 5. ТАБЛИЦЫ */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.casino-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    min-width: 600px; /* Десктопная ширина */
}

.casino-table th, .casino-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 6. ШАПКА И ФУТЕР */
.site-header {
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-footer {
    background: #07070a;
    color: var(--muted);
    padding: 60px 0 0;
    border-top: var(--border);
}

.site-info {
    background: #000;
    padding: 20px;
    margin-top: 40px;
    font-size: 12px;
    text-align: center;
}

/* 7. АДАПТИВНОСТЬ (MOBILE) */
@media (max-width: 768px) {
    .inside-article, .content-box {
        padding: 20px !important;
        margin-bottom: 15px;
        border-radius: 0; /* На мобилках лучше в край */
        border-left: none;
        border-right: none;
    }

    /* ФИКС ТАБЛИЦЫ: Превращаем в карточки */
    .casino-table {
        display: block;
        min-width: auto !important; /* Отменяем скролл */
    }

    .casino-table thead {
        display: none; /* Прячем заголовки */
    }

    .casino-table tbody, .casino-table tr, .casino-table td {
        display: block;
        width: 100%;
    }

    .casino-table tr {
        margin-bottom: 25px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--radius);
        padding: 10px;
    }

    .casino-table td {
        text-align: center;
        padding: 10px 5px;
        border: none;
    }

    /* Кнопки на мобильном */
    .btn-cta, .btn-secondary {
        width: 100% !important;
        display: flex !important;
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 26px;
    }
}