/* Стили для мобильного меню и фиксированной кнопки */

/* Стили для изображений в контенте */
.prose img,
.content img,
main img {
    display: inline !important;
    vertical-align: middle;
    margin: 0 4px;
}

/* Предотвращаем перенос изображений на новую строку */
.prose p img,
.content p img,
main p img {
    display: inline-block !important;
}

/* Исправляем проблему с переносом строк вокруг изображений */
.prose p,
.content p,
main p {
    display: flow-root;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    transition: opacity 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #1f2937;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.fixed-play-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 30;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 400px;
    display: none; /* Скрыть по умолчанию */
}

.fixed-play-button:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.fixed-play-button:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Показывать кнопку только на мобильных устройствах */
@media (max-width: 768px) {
    .fixed-play-button {
        display: inline-flex;
    }
}

.hamburger-button {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-button {
        display: block;
        cursor: pointer;
    }
    
    .hamburger-line {
        width: 24px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
}

/* Красивые стили для таблиц */
.prose table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    table-layout: auto !important;
}

/* Сброс стилей для таблиц из Word */
.prose table[dir], .prose table[align], .prose table[width] {
    width: 100% !important;
    table-layout: auto !important;
}

.prose table colgroup {
    display: none !important;
}

.prose table col {
    width: auto !important;
}

.prose table thead {
    background-color: #3b82f6 !important;
    color: white !important;
}

.prose table th {
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.05em !important;
    color: white !important;
}

.prose table td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    background-color: white !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.prose table tr:last-child td {
    border-bottom: none !important;
}

.prose table tr:nth-child(even) td {
    background-color: #f9fafb !important;
}

/* Исправление для заголовков из Word */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-weight: bold !important;
    line-height: 1.25 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: #111827 !important;
    display: block !important;
}

.prose h1 {
    font-size: 2.25rem !important;
}

.prose h2 {
    font-size: 1.875rem !important;
}

.prose h3 {
    font-size: 1.5rem !important;
}

.prose h4 {
    font-size: 1.25rem !important;
}

.prose h5 {
    font-size: 1.125rem !important;
}

.prose h6 {
    font-size: 1rem !important;
}

/* Дополнительные стили для заголовков с атрибутами */
.prose h1[dir], .prose h2[dir], .prose h3[dir], .prose h4[dir], .prose h5[dir], .prose h6[dir],
.prose h1[align], .prose h2[align], .prose h3[align], .prose h4[align], .prose h5[align], .prose h6[align],
.prose .heading-fixed {
    font-weight: bold !important;
    line-height: 1.25 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: #111827 !important;
    display: block !important;
}

/* Дополнительные стили для заголовков с классом heading-fixed */
.prose h1.heading-fixed { font-size: 2.25rem !important; }
.prose h2.heading-fixed { font-size: 1.875rem !important; }
.prose h3.heading-fixed { font-size: 1.5rem !important; }
.prose h4.heading-fixed { font-size: 1.25rem !important; }
.prose h5.heading-fixed { font-size: 1.125rem !important; }
.prose h6.heading-fixed { font-size: 1rem !important; }

/* Исправление для списков из Word */
.prose ul, .prose ol {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding-left: 1.5rem !important;
}

.prose ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.prose ul li, .prose ol li {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    position: relative !important;
    padding-left: 1.5rem !important;
}

.prose ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.5rem !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('/uploads/favicon.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.prose ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
}

.prose ol li {
    padding-left: 0.5rem !important;
}

.prose ol li::marker {
    color: #3b82f6 !important;
    font-weight: bold !important;
}

/* Исправление для параграфов из Word */
.prose p {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.625 !important;
}

/* Исправление для ссылок */
.prose a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.prose a:hover {
    color: #2563eb !important;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 640px) {
    .prose h1 {
        font-size: 1.875rem !important;
    }
    
    .prose h2 {
        font-size: 1.5rem !important;
    }
    
    .prose h3 {
        font-size: 1.25rem !important;
    }
    
    .prose table {
        display: block !important;
        overflow-x: auto !important;
    }
}

/* Стили для виджетов */
.widget-casino-item {
    transition: all 0.3s ease;
}

.widget-casino-item:hover {
    transform: translateY(-3px);
}

.widget-casino-rating {
    color: #f59e0b;
}

.widget-casino-button {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    transition: all 0.3s ease;
}

.widget-casino-button:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

/* Стили для платежных методов */
.payment-methods {
    text-align: center;
}

.payment-methods svg {
    display: inline-block !important;
    vertical-align: middle;
    margin: 0 5px;
    height: 30px;
    width: auto;
}
