/* Базовые стили для системы тем */

/* Классы, добавляемые движком */
.has-theme {
    position: relative !important;
    isolation: isolate !important;
}

/* Стили для иконки стиля в правом верхнем углу */
.theme-style-icon {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-shadow: 
        0 0 1px rgba(128, 128, 128, 0.8),
        0 0 2px rgba(128, 128, 128, 0.6) !important;
    z-index: 10 !important;
    pointer-events: none !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease !important;
}

.theme-style-icon:hover {
    opacity: 1 !important;
}

/* Убираем старый индикатор */
[data-theme-display]::after {
    display: none !important;
}

/* Стили для селектора тем */
.theme-selector-container {
    margin: 10px 0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.theme-selector-container select.theme-selector {
    font-family: inherit !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

/* Поддержка FontAwesome */
@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Убедимся, что иконки FontAwesome отображаются правильно */
.fa-solid,
.fa-regular,
.fa-brands,
.fa-thin,
.fa-light,
.fa-duotone {
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Скрываем теги стилей в постах (они уже обработаны движком) */
.post-content [class*="стиль"],
.post-content [class*="style"] {
    display: none !important;
}