/* ===== БАЗОВЫЕ СТИЛИ КОНТЕНТА (ВОССТАНОВЛЕНЫ) ===== */

/* Основной контейнер контента */
.post-content, .content {
    line-height: 1.7;
    color: #374151;
    font-size: 16px;
    max-width: none;
}

/* ЗАГОЛОВКИ - зеленые как раньше */
.post-content h2, .content h2 {
    color: #00B83C !important;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    border-bottom: 3px solid #00B83C;
    padding-bottom: 0.75rem;
    line-height: 1.2;
}

.post-content h3, .content h3 {
    color: #059669 !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.3;
}

.post-content h4, .content h4 {
    color: #00B83C !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

/* ПАРАГРАФЫ с отступами */
.post-content p, .content p {
    margin: 1.5rem 0;
    line-height: 1.7;
    font-size: 16px;
    color: #374151;
}

/* СПИСКИ со структурой */
.post-content ul, .content ul,
.post-content ol, .content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.6;
}

.post-content li, .content li {
    margin: 0.75rem 0;
    color: #374151;
}

/* ССЫЛКИ */
.post-content a, .content a {
    color: #0066CC;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-content a:hover, .content a:hover {
    color: #00B83C;
    text-decoration: none;
}

/* STRONG текст */
.post-content strong, .content strong {
    color: #00B83C;
    font-weight: 700;
}

/* ТАБЛИЦЫ - красивые как раньше */
.post-content table, .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-content th, .content th {
    background: linear-gradient(135deg, #00B83C, #059669);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-content td, .content td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

.post-content tr:nth-child(even), .content tr:nth-child(even) {
    background: #F9FAFB;
}

.post-content tr:hover, .content tr:hover {
    background: #F0FDF4;
}

/* ===== HTML БЛОКИ (ОРИГИНАЛЬНЫЕ) ===== */

.prose {
    line-height: 1.7;
    color: #374151;
    max-width: none;
}

.prose h2 {
    color: #00B83C;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    border-bottom: 3px solid #00B83C;
    padding-bottom: 0.75rem;
}

.prose h3 {
    color: #059669;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem 0;
}

/* Информационный блок слота */
.slot-info-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px -5px rgba(0, 184, 60, 0.2);
    border: 1px solid #E5E7EB;
}

.slot-info-box h3 {
    color: #00B83C !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F0FDF4;
    border-radius: 8px;
    border-left: 4px solid #00B83C;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: #ECFDF5;
    transform: translateX(5px);
}

.label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.value {
    font-weight: 500;
    color: #059669;
    text-align: right;
}

.rtp-badge {
    background: linear-gradient(135deg, #00B83C, #059669) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.volatility-alta {
    background: #EF4444 !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.volatility-baixa {
    background: #10B981 !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA секция */
.cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #00B83C, #059669);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 184, 60, 0.3);
}

.cta-button {
    display: inline-block !important;
    background: white !important;
    color: #00B83C !important;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 3px solid white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: transparent !important;
    color: white !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-disclaimer {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Прос и контрас */
.pros-cons-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.pros-box, .cons-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pros-box {
    border-left: 4px solid #10B981;
}

.cons-box {
    border-left: 4px solid #EF4444;
}

.pros-box h4 {
    color: #10B981 !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cons-box h4 {
    color: #EF4444 !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pros-box ul, .cons-box ul {
    list-style: none;
    padding: 0;
}

.pros-box li, .cons-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #F3F4F6;
    line-height: 1.5;
}

.pros-box li:last-child, .cons-box li:last-child {
    border-bottom: none;
}

/* FAQ секция */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #00B83C;
    transition: all 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    color: #00B83C !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-answer {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* ===== КОНТЕКСТНЫЕ ССЫЛКИ ===== */
.contextual-navigation-safe {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 184, 60, 0.2);
    box-shadow: 0 4px 15px rgba(0, 184, 60, 0.1);
}

.contextual-navigation-safe h4 {
    margin: 0 0 1rem 0 !important;
    color: #00B83C !important;
    font-size: 1.1rem;
    font-weight: 600;
}

.safe-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.safe-link {
    background: linear-gradient(135deg, #00B83C, #059669) !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.safe-link:hover {
    background: white !important;
    color: #00B83C !important;
    border-color: #00B83C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 60, 0.3);
}

.safe-link.guide {
    background: linear-gradient(135deg, #0066CC, #4F46E5) !important;
}

.safe-link.guide:hover {
    background: white !important;
    color: #0066CC !important;
    border-color: #0066CC;
}

.safe-link.provider {
    background: linear-gradient(135deg, #6B46C1, #7C3AED) !important;
}

.safe-link.provider:hover {
    background: white !important;
    color: #6B46C1 !important;
    border-color: #6B46C1;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .post-content h2, .content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .post-content h3, .content h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .value {
        text-align: left;
    }
    
    .pros-cons-section {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .slot-info-box {
        padding: 1.5rem;
    }
    
    .contextual-navigation-safe {
        padding: 1rem;
    }
    
    .safe-quick-links {
        gap: 0.5rem;
    }
    
    .safe-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
/* ===== СТИЛИ ДЛЯ БЛОКА АВТОРА ===== */

.author-bio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 4px solid #00B83C;
    box-shadow: 0 4px 15px rgba(0, 184, 60, 0.1);
    transition: all 0.3s ease;
}

.author-bio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 60, 0.15);
}

.author-bio .flex {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00B83C;
    box-shadow: 0 4px 12px rgba(0, 184, 60, 0.2);
    flex-shrink: 0;
}

.author-bio h3 {
    color: #00B83C !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0 !important;
    border: none !important;
    padding: 0 !important;
}

.author-bio p {
    color: #374151;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

/* Especialidades */
.author-bio .flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.author-bio .bg-green-600 {
    background: linear-gradient(135deg, #00B83C, #059669) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.author-bio .bg-green-600:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 184, 60, 0.3);
}

/* Social Links */
.author-bio .space-x-3 {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.author-bio .text-green-600 {
    color: #00B83C !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 1rem;
    background: white;
    border-radius: 20px;
    border: 2px solid #00B83C;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.author-bio .text-green-600:hover {
    background: #00B83C !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 60, 0.3);
}

/* Специализации label */
.author-bio .text-gray-600 {
    color: #059669 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .author-bio {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .author-bio .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .author-bio img {
        width: 70px;
        height: 70px;
        align-self: center;
    }
    
    .author-bio .space-x-3 {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .author-bio .text-green-600 {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}
/* ===== ДОБАВИТЬ В КОНЕЦ content-styles.css ===== */

/* Основной контейнер поста */
.post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Заголовок поста */
.post-header {
    padding: 0 0 30px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #00B83C !important;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
}

.post-description {
    font-size: 1.2rem;
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Контент с prose классом */
.post-content.prose {
    line-height: 1.7;
    color: #374151;
    font-size: 16px;
}

/* КРИТИЧНО: Заголовки H2/H3 в контенте */
.post-content.prose h2 {
    color: #00B83C !important;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    border-bottom: 3px solid #00B83C;
    padding-bottom: 0.75rem;
    line-height: 1.2;
}

.post-content.prose h3 {
    color: #059669 !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.3;
}

.post-content.prose h3:before {
    content: "▶";
    color: #00B83C;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.post-content.prose h4 {
    color: #00B83C !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

/* Параграфы */
.post-content.prose p {
    margin: 1.5rem 0;
    line-height: 1.7;
    font-size: 16px;
    color: #374151;
}

/* Списки */
.post-content.prose ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.post-content.prose ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.post-content.prose ul li:before {
    content: "🎰";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

/* Strong текст */
.post-content.prose strong {
    color: #00B83C !important;
    font-weight: 700;
}

/* Ссылки */
.post-content.prose a {
    color: #0066CC;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-content.prose a:hover {
    color: #00B83C;
    text-decoration: none;
}

/* Desktop sidebar */
.desktop-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    z-index: 100;
}

@media (max-width: 1200px) {
    .desktop-sidebar {
        display: none;
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .post {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .post-header {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-content.prose h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .post-content.prose h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
}
/* Основной контейнер поста - БЕЗ белого фона */
.post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    /* УБИРАЕМ белый фон */
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Заголовок поста - без подложки */
.post-header {
    padding: 0 0 30px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
    background: transparent;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #00B83C !important;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
}

.post-description {
    font-size: 1.2rem;
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Контент без фона */
.post-content.prose {
    line-height: 1.7;
    color: #374151;
    font-size: 16px;
    background: transparent;
}

/* ===== ИСПРАВЛЕНИЕ SIDEBAR ===== */

/* УБИРАЕМ fixed позиционирование */
.desktop-sidebar {
    position: static !important; /* Вместо fixed */
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    z-index: auto !important;
    margin-top: 20px;
}

/* Если sidebar должен быть сбоку, используем flex layout */
.content-with-sidebar {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 20px;
}

.main-content {
    flex: 1;
    max-width: 800px;
}

.sidebar-content {
    width: 300px;
    flex-shrink: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .post {
        margin: 10px;
        padding: 15px;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .content-with-sidebar {
        flex-direction: column;
        padding: 10px;
    }
    
    .sidebar-content {
        width: 100%;
        order: -1; /* Sidebar вверху на мобиле */
    }
    
    .post-header {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .desktop-sidebar {
        display: block !important; /* Показываем на планшетах тоже */
    }
}

/* ===== ИСПРАВЛЕНИЕ: Эмодзи не налезают на текст ===== */

/* Основные списки - УВЕЛИЧИВАЕМ отступы */
.post-content.prose ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.post-content.prose ul li {
    position: relative;
    padding-left: 2.5rem; /* УВЕЛИЧЕНО с 2rem до 2.5rem */
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: block;
}

.post-content.prose ul li:before {
    content: "🎰";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    width: 2rem; /* Фиксированная ширина */
    text-align: left;
}

/* СПЕЦИАЛЬНО для списков с ✅ эмодзи */
.post-content.prose ul li:has(strong:first-child),
.post-content.prose li[data-emoji="✅"] {
    padding-left: 3rem !important; /* ЕЩЕ БОЛЬШЕ отступ для ✅ */
    background: #F0FDF4;
    border-radius: 8px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #00B83C;
}

.post-content.prose ul li:has(strong:first-child):before {
    content: "✅";
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
    width: 1.5rem;
}

/* Для недостатков с ❌ */
.post-content.prose ul li:has(strong:contains("❌")) {
    background: #FEF2F2;
    border-left-color: #EF4444;
    padding-left: 3rem !important;
}

.post-content.prose ul li:has(strong:contains("❌")):before {
    content: "❌";
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
}

/* Альтернативный подход - если :has() не поддерживается */
.pros-list li {
    padding-left: 3rem !important;
    background: #F0FDF4;
    border-radius: 8px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #00B83C;
    position: relative;
}

.pros-list li:before {
    content: "✅";
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
    width: 1.5rem;
}

.cons-list li {
    padding-left: 3rem !important;
    background: #FEF2F2;
    border-radius: 8px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #EF4444;
    position: relative;
}

.cons-list li:before {
    content: "❌";
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
    width: 1.5rem;
}

/* Обычные списки без эмодзи в начале strong */
.post-content.prose ul.normal-list li {
    padding-left: 2.5rem;
    background: transparent;
    border: none;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.post-content.prose ul.normal-list li:before {
    content: "🎰";
    top: 0;
    left: 0;
    font-size: 1rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .post-content.prose ul li {
        padding-left: 2rem; /* Меньше на мобиле */
    }
    
    .post-content.prose ul li:has(strong:first-child),
    .pros-list li,
    .cons-list li {
        padding-left: 2.5rem !important;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .post-content.prose ul li:has(strong:first-child):before,
    .pros-list li:before,
    .cons-list li:before {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 1rem;
    }
}