/* Исправления для читаемости контента и футера */

/* ========================================
   СТИЛИ ДЛЯ КОНТЕНТНОГО БЛОКА
   ======================================== */

.content-section {
    background: var(--content-bg-color, rgba(19, 27, 48, 0.5));
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 15px;
    color: var(--text-color, #ffffff);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: var(--content-bg-color, rgba(255, 255, 255, 0.03));
    border-radius: 12px;
    color: var(--text-color, #ffffff);
}

.primary-heading {
    color: var(--text-color, #ffffff);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-text {
    color: var(--text-color, #e8e8e8);
    font-size: 16px;
    line-height: 1.8;
}

.main-text h1 {
    color: var(--text-color, #ffffff);
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    line-height: 1.3;
}

.main-text h2 {
    color: var(--text-color, #ffffff);
    font-size: 24px;
    font-weight: 600;
    margin: 28px 0 18px 0;
    line-height: 1.3;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.main-text h3 {
    color: var(--text-color, #f0f0f0);
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 16px 0;
    line-height: 1.4;
}

.main-text h4 {
    color: var(--text-color, #f0f0f0);
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 14px 0;
}

.main-text p {
    color: var(--text-color, #e0e0e0);
    margin: 16px 0;
    line-height: 1.8;
    font-size: 16px;
}

.main-text ul,
.main-text ol {
    color: var(--text-color, #e0e0e0);
    margin: 16px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.main-text ul {
    list-style: disc;
}

.main-text ol {
    list-style: decimal;
}

.main-text li {
    margin: 8px 0;
    color: var(--text-color, #e0e0e0);
}

.main-text a {
    color: var(--accent-color, #0091ff);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.main-text a:hover {
    color: #4db8ff;
    text-decoration: none;
}

.main-text strong,
.main-text b {
    color: var(--text-color, #ffffff);
    font-weight: 700;
}

.main-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.main-text table th {
    background: var(--accent-hover-color-transparent);
    color: var(--text-color, #ffffff);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.main-text table td {
    padding: 12px 15px;
    color: var(--text-color, #e0e0e0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-text table tr:last-child td {
    border-bottom: none;
}

.main-text table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* CTA блок */
.cta-block {
    background: var(--accent-hover-color-transparent);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.cta-title {
    color: var(--text-color, #ffffff);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-block p {
    color: var(--text-color, #e0e0e0);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color, #0091ff);
    color: #ffffff !important;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-color-shadow);
}

.cta-button:hover {
    background: var(--accent-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-color-shadow);
    opacity: 0.9;
}

/* ========================================
   POPUP БОНУСА (всплывающая плашка)
   ======================================== */

.popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--accent-color, #ff6b00) 0%, var(--accent-hover-color, #ff8c00) 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(var(--accent-color-rgb, 255, 107, 0), 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    max-width: 380px;
}

.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.popup_block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.popup .block_img {
    flex-shrink: 0;
}

.popup .block_img img {
    width: 50px;
    height: 50px;
}

.popup .block_txt {
    flex: 1;
}

.popup .block_txt span {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    line-height: 1;
}

.popup .block_txt p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: var(--text-color, #ffffff);
    opacity: 0.9;
}

.popup .block_btn {
    flex-shrink: 0;
}

.popup .block_btn .btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-color, #ffffff);
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ (фиксированное внизу)
   ======================================== */

.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-bg-color-transparent, rgba(15, 20, 35, 0.95));
    backdrop-filter: blur(10px);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9998;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color-muted, rgba(255, 255, 255, 0.6));
    font-size: 11px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    min-width: 60px;
}

.mobile-menu-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-bottom: 4px;
}

.mobile-menu-item span {
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.mobile-menu-item.active,
.mobile-menu-item:hover {
    color: var(--accent-color, #0091ff);
}

/* ========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

@media (max-width: 768px) {
    /* Показываем мобильное меню - ОЧЕНЬ КРУПНЫЕ ИКОНКИ */
    .mobile-menu {
        display: flex !important;
        padding: 8px 0 !important;
        height: 75px !important;
    }

    .mobile-menu-item {
        padding: 6px 10px !important;
        min-width: 65px !important;
    }

    .mobile-menu-item svg {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 4px !important;
    }

    .mobile-menu-item span {
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
    }

    /* Popup на мобильных - меньше и внизу слева */
    .popup {
        bottom: 90px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        padding: 15px 50px 15px 15px !important;
        transform: translateX(0) translateY(20px) !important;
    }

    .popup.show {
        transform: translateX(0) translateY(0) !important;
    }

    .popup_block {
        gap: 12px !important;
        justify-content: space-between !important;
    }

    .popup .block_txt span {
        font-size: 24px !important;
    }

    .popup .block_btn {
        margin-left: auto !important;
        padding-right: 10px !important;
    }

    .popup .block_btn .btn {
        padding: 12px 30px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    /* Контейнеры - ШИРЕ */
    .wrap,
    .container {
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .main-container {
        padding: 20px 10px !important;
        margin: 20px 0 !important;
        width: 100% !important;
    }

    .content-section {
        padding: 20px 10px !important;
        margin: 20px 0 !important;
        width: 100% !important;
    }

    /* Текст - ШИРЕ */
    .primary-heading {
        font-size: 22px !important;
        padding: 0 5px !important;
        width: 100% !important;
    }

    .main-text {
        font-size: 15px !important;
        padding: 0 5px !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        width: 100% !important;
    }

    .main-text h1 {
        font-size: 20px !important;
    }

    .main-text h2 {
        font-size: 18px !important;
    }

    .main-text h3 {
        font-size: 16px !important;
    }

    .main-text p,
    .main-text li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* Таблицы */
    .main-text table {
        font-size: 13px !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-text table th,
    .main-text table td {
        padding: 8px 6px !important;
        font-size: 13px !important;
    }

    /* Игры */
    .slots-grid,
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    .slot-card,
    .game-card {
        width: 100% !important;
    }

    /* CTA блоки */
    .cta-block {
        padding: 20px 15px !important;
        margin: 30px 5px !important;
    }

    .cta-title {
        font-size: 18px !important;
    }

    .cta-button {
        padding: 12px 25px !important;
        font-size: 15px !important;
    }

    /* Футер - отступ для мобильного меню */
    footer {
        padding-bottom: 100px !important;
        margin-bottom: 0 !important;
    }

    footer .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Баннер - полноэкранный на мобильных */
    .hero,
    .main-banner {
        margin: 0 -10px 20px -10px !important;
        width: calc(100% + 20px) !important;
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .hero img,
    .main-banner img {
        height: 100% !important;
        min-height: 320px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .banner-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 2 !important;
        padding: 20px 15px 15px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%) !important;
    }

    /* Winners - УБИРАЕМ ОТСТУП СНИЗУ */
    .winners {
        padding: 10px 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Убираем отступ после winners */
    .winners + * {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .wrap,
    .container {
        padding: 0 5px !important;
    }

    /* Баннер - корректировка для очень маленьких экранов */
    .hero,
    .main-banner {
        margin: 0 -5px 20px -5px !important;
        width: calc(100% + 10px) !important;
    }

    .content-section {
        padding: 15px 5px !important;
    }

    .main-container {
        padding: 12px !important;
        margin: 15px 2px !important;
    }

    .main-text {
        font-size: 14px !important;
    }

    .main-text h1 {
        font-size: 18px !important;
    }

    .main-text h2 {
        font-size: 16px !important;
    }

    .main-text p,
    .main-text li {
        font-size: 14px !important;
    }

    /* Игры - по 2 в ряд на маленьких экранах */
    .slots-grid,
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 5px !important;
    }
}
