/* ==========================================================================
   ПРОСТАЯ СТРАНИЦА РЕКЛАМЫ - БЕЗ ЗАВИСАНИЙ
   Версия: 5.0 - Только CSS
   ========================================================================== */

/* СВЕТЛАЯ ТЕМА */
.page-template-page-reklama .site-main,
.page-slug-reklama .site-main {
    padding: 60px 0;
    background: #fdfdf9;
}

.reklama-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

/* Простая типография */
.reklama-content h1 { 
    font-size: 2.5rem; 
    color: #ff6600;
    margin: 20px 0;
}

.reklama-content h2 { 
    font-size: 2rem; 
    color: #1a1a1a;
    margin: 20px 0;
}

.reklama-content h3 { 
    font-size: 1.5rem; 
    color: #1a1a1a;
    margin: 15px 0;
}

.reklama-content p {
    color: #333333;
    margin: 15px 0;
}

.reklama-content ul,
.reklama-content ol {
    color: #333333;
    margin: 15px 0;
    padding-left: 30px;
}

.reklama-content li {
    color: #333333;
    margin: 5px 0;
}

/* Таблицы */
.reklama-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.reklama-content th,
.reklama-content td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e5d5;
    color: #333333;
}

.reklama-content th {
    font-weight: 600;
    background: #f9f8f4;
    color: #2d2d2d;
}

.reklama-content tr:hover td {
    background: #fdfdf9;
}

/* ==========================================================================
   ТЕМНАЯ ТЕМА - ТОЛЬКО CSS
   ========================================================================== */

/* Основа темной темы */
body.dark-theme .page-template-page-reklama .site-main,
body.dark-theme .page-slug-reklama .site-main {
    background: #0f1419 !important;
}

body.dark-theme .reklama-content {
    background: #1a2027 !important;
    color: #e7e9ea !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Заголовки в темной теме */
body.dark-theme .reklama-content h1 {
    color: #ff6600 !important; /* Сохраняем оранжевый */
}

body.dark-theme .reklama-content h2,
body.dark-theme .reklama-content h3,
body.dark-theme .reklama-content h4,
body.dark-theme .reklama-content h5,
body.dark-theme .reklama-content h6 {
    color: #ffffff !important;
}

/* Текст в темной теме */
body.dark-theme .reklama-content p,
body.dark-theme .reklama-content li,
body.dark-theme .reklama-content span,
body.dark-theme .reklama-content div {
    color: #e7e9ea !important;
}

/* Ссылки */
body.dark-theme .reklama-content a {
    color: #ff6600 !important;
}

/* Таблицы в темной теме */
body.dark-theme .reklama-content table {
    background: #1e252d !important;
}

body.dark-theme .reklama-content th {
    background: #252d38 !important;
    color: #ffffff !important;
    border-bottom-color: #3a4553 !important;
}

body.dark-theme .reklama-content td {
    border-bottom-color: #2a3541 !important;
    color: #e7e9ea !important;
}

body.dark-theme .reklama-content tr:hover td {
    background: #252d38 !important;
}

/* АГРЕССИВНОЕ ПЕРЕОПРЕДЕЛЕНИЕ INLINE СТИЛЕЙ */
body.dark-theme .reklama-content * {
    color: #e7e9ea !important;
}

/* Особые случаи для inline стилей */
body.dark-theme .reklama-content [style*="color"],
body.dark-theme .reklama-content [style*="background"] {
    color: #e7e9ea !important;
    background-color: transparent !important;
}

/* Сохраняем важные цвета */
body.dark-theme .reklama-content [style*="#ff6600"],
body.dark-theme .reklama-content [style*="orange"],
body.dark-theme .reklama-content h1 {
    color: #ff6600 !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .page-template-page-reklama .site-main,
    .page-slug-reklama .site-main {
        padding: 30px 0;
    }
    
    .reklama-content {
        padding: 20px;
        margin: 0 15px;
    }
    
    .reklama-content h1 {
        font-size: 2rem;
    }
    
    .reklama-content h2 {
        font-size: 1.5rem;
    }
    
    .reklama-content table {
        font-size: 14px;
    }
    
    .reklama-content th,
    .reklama-content td {
        padding: 10px;
    }
}

/* Плавные переходы */
.reklama-content * {
    transition: none !important; /* Убираем все анимации */
}