/*
Theme Name: SIDEKICK Custom
Author: CodyOneZ
Version: 1.04
Description: Современная тема для SIDEKICK.
*/

/* ==========================================================================
   ОГЛАВЛЕНИЕ:
   1. ПЕРЕМЕННЫЕ И ОСНОВНЫЕ ЦВЕТА
   2. БАЗОВЫЕ НАСТРОЙКИ И ЭЛЕМЕНТЫ ФОРМ
   3. КАРКАС И СЕТКА (Layout)
   4. ШАПКА И НАВИГАЦИЯ
   5. КАРТОЧКИ И ОСНОВНОЙ КОНТЕНТ
   6. ЗАПИСИ, АРХИВЫ И ПАГИНАЦИЯ (Blog & Oldstyle)
   7. САЙДБАР, ПРОФИЛЬ И АВАТАРЫ
   8. АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ (Модалки и формы)
   9. КОММЕНТАРИИ
   10. СТИЛИ СТАНДАРТНОГО РЕДАКТОРА WORDPRESS
   11. АНИМАЦИИ
   12. АДАПТИВНОСТЬ (Мобильные версии)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ И ОСНОВНЫЕ ЦВЕТА
   -------------------------------------------------------------------------- */
:root {
    --bg-main: #0d1117;
    --bg-card: #161b22;
    --border-color: #30363d;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --accent-cyan: #00d2ff;
    --accent-orange: #ff7b00;
    --accent-hover: #ffffff;
}

/* --------------------------------------------------------------------------
   2. БАЗОВЫЕ НАСТРОЙКИ И ЭЛЕМЕНТЫ ФОРМ
   -------------------------------------------------------------------------- */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(0, 210, 255, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 90% 85%, rgba(255, 123, 0, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.page-title {
    color: #ffffff;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

/* Кастомные элементы загрузки файлов */
input[type="file"] {
    color: transparent;
}

input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

input[type="file"]::before {
    content: 'Выбрать файл';
    display: inline-block;
    background: #1c1c24;
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: var(--accent-cyan);
    padding: 6px 15px;
    border-radius: 4px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-right: 10px;
}

input[type="file"]:hover::before {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--accent-cyan);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. КАРКАС И СЕТКА (Layout)
   -------------------------------------------------------------------------- */
.site-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.left-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   4. ШАПКА И НАВИГАЦИЯ
   -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}

.logo-group img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #ffffff;
    transition: none;
}

.logo-group:hover {
    text-decoration: none !important;
}

.logo-group:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.9));
}

.logo-group:hover .site-title {
    color: #ffffff;
    text-shadow: none;
    text-decoration: none !important;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-main);
    font-size: 15px;
    font-weight: bold;
}

.main-navigation a:hover {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. КАРТОЧКИ И ОСНОВНОЙ КОНТЕНТ
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(0px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.card h2, .card h3 {
    margin-top: 0;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-main);
    box-sizing: border-box;
}

.search-submit {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
}

.search-submit:hover {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-main);
}

.search-title span {
    color: var(--accent-cyan);
}

/* Выпадающий список категорий */
.sidekick-category-select {
    width: 100%;
    padding: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.sidekick-category-select option {
    background-color: #121212;
    color: #ffffff;
}

/* Вспомогательные инпуты внутри карточек */
.main-content .card .input {
    width: 100% !important;
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    padding: 10px !important;
    color: var(--text-main) !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

.main-content .card .input:focus {
    border-color: var(--accent-cyan) !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2) !important;
}

.main-content .card label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   6. ЗАПИСИ, АРХИВЫ И ПАГИНАЦИЯ (Blog & Oldstyle)
   -------------------------------------------------------------------------- */
/* Превью постов */
.post-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 200px; 
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-body {
    flex: 1;
    min-width: 0;
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.post-excerpt {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

/* Одиночная запись */
.single-post-card h1.single-post-title {
    color: #ffffff;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.single-thumbnail {
    margin-bottom: 20px;
}

.single-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.post-content {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2, .post-content h3 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-tags {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.post-tags a {
    color: var(--accent-cyan);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 14px;
}

.post-navigation a {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
}

.post-navigation a:hover {
    border-color: var(--accent-cyan);
    text-decoration: none;
}

/* Архивы и пагинация */
.archive-header-card { margin-bottom: 20px; }
.archive-title { color: #ffffff; font-size: 20px; margin: 0 0 10px 0; font-family: Arial, sans-serif; }
.archive-description { color: var(--text-muted); font-size: 14px; }

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination-wrap .nav-links { display: flex; gap: 8px; }

.pagination-wrap .page-numbers {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrap .page-numbers:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.pagination-wrap .page-numbers.current {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-main);
    font-weight: bold;
}

/* Единый стиль карточек ленты и архивов (Oldstyle) */
.oldstyle-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.2);
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.main-content .oldstyle-card {
    width: 100%;
}

.oldstyle-header {
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding: 12px 20px;
    background: rgba(0, 210, 255, 0.03);
}

.oldstyle-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: bold;
}

.oldstyle-header h2 a {
    color: inherit;
    text-decoration: none;
}

.oldstyle-body {
    display: flex;
    padding: 15px 20px;
    gap: 20px;
}

.oldstyle-thumb {
    flex-shrink: 0;
    width: 250px;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #18181c;
}

.oldstyle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oldstyle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.5;
}

.oldstyle-more-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.oldstyle-more-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.oldstyle-more-btn:hover {
    background: var(--accent-cyan);
    color: #000000 !important;
    text-decoration: none;
}

.oldstyle-footer {
    background: rgba(0, 210, 255, 0.05);
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    padding: 8px 20px;
    font-size: 12px;
    color: #d1d1d1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.oldstyle-footer a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.oldstyle-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.oldstyle-pagination a, .oldstyle-pagination span {
    padding: 8px 14px;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.oldstyle-pagination a:hover, .oldstyle-pagination .current {
    background: var(--accent-cyan);
    color: #000000;
    border-color: var(--accent-cyan);
}

/* Страница автора */
.author-header { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.author-bio h1 { margin: 0 0 5px 0; font-size: 24px; color: #ffffff; }
.author-role { color: var(--accent-cyan); font-size: 14px; font-weight: bold; margin-bottom: 10px; }
.author-posts-title { color: #ffffff; font-size: 18px; margin-bottom: 15px; font-family: Arial, sans-serif; }

/* --------------------------------------------------------------------------
   7. САЙДБАР, ПРОФИЛЬ И АВАТАРЫ
   -------------------------------------------------------------------------- */
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 10px; }
.sidebar-nav a { color: var(--accent-cyan); text-decoration: none; font-size: 16px; display: inline-block; }
.sidebar-nav a:hover { color: #ffffff; padding-left: 5px; }

/* Виджет профиля */
.profile-widget {
    margin-bottom: 20px;
    padding: 15px !important;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.profile-widget .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0px solid var(--accent-cyan);
    object-fit: cover;
    flex-shrink: 0;
    animation: none !important;
}

.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.profile-name {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    color: var(--accent-orange);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* XP бар */
.xp-bar-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    height: 6px;
    width: 100%;
    margin-top: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: var(--accent-orange);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.profile-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-btn {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.profile-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    text-decoration: none;
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.25);
}

.logout-btn:hover {
    border-color: #ff5555;
    color: #ff5555;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.25);
}

/* Аватары: глобальные правила */
.avatar {
    animation: avatar-glow 2.5s infinite ease-in-out;
}

.main-content .card img.avatar,
.author-avatar img,
.sidebar-avatar img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

.avatar-preview-wrapper img {
    border-radius: 50% !important;
    border: 0px solid var(--border-color) !important;
    padding: 3px !important;
    transition: all 0.3s ease !important;
}

.avatar-preview-wrapper img:hover {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5) !important;
}

.main-content .card .avatar-preview-wrapper img {
    animation: avatarPulsePermanent 1.8s infinite ease-in-out !important;
    border-color: var(--accent-cyan) !important;
    border-width: 0px !important;
}

a[href*="delete_avatar"] { transition: color 0.2s; }
a[href*="delete_avatar"]:hover { color: #ff8080 !important; text-decoration: underline !important; }

/* Имя и фамилия в строку на странице профиля */
.form-row-inline { display: flex; gap: 15px; }
.form-row-inline p { flex: 1; margin-bottom: 15px; }

/* --------------------------------------------------------------------------
   8. АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ (Модалки и формы)
   -------------------------------------------------------------------------- */
.guest-title { color: #ffffff; font-size: 14px; margin: 0 0 10px 0; font-family: Arial, sans-serif; }

#sidebar-login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
#sidebar-login-form p { margin: 0; }
#sidebar-login-form label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--text-muted); }

#sidebar-login-form .input {
    width: 100%; background-color: var(--bg-main); border: 1px solid var(--border-color);
    border-radius: 6px; padding: 10px; color: var(--text-main); box-sizing: border-box; font-size: 14px;
}

#sidebar-login-form .input:focus {
    border-color: var(--accent-cyan); outline: none; box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

#sidebar-login-form .forgetmenot {
    font-size: 13px; display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--text-muted);
}

#sidebar-login-form .forgetmenot input { margin: 0; accent-color: var(--accent-cyan); }

#sidebar-login-form input[type="submit"] {
    width: 100% !important; background-color: var(--bg-card) !important; border: 1px solid var(--border-color) !important;
    color: var(--accent-cyan) !important; padding: 10px !important; border-radius: 6px !important;
    cursor: pointer !important; font-weight: bold !important; font-size: 14px !important;
    font-family: Arial, sans-serif !important; transition: all 0.2s ease !important;
    box-sizing: border-box !important; text-align: center !important; margin-top: 4px !important;
}

#sidebar-login-form input[type="submit"]:hover {
    background-color: var(--accent-cyan) !important; border-color: var(--accent-cyan) !important;
    color: var(--bg-main) !important; box-shadow: 0 0 10px rgba(0, 210, 255, 0.4) !important;
}

.guest-register-link { margin-top: 4px; text-align: center; }
.guest-register-link a {
    display: block; width: 100%; background-color: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-main); padding: 10px; border-radius: 6px; font-size: 14px; font-weight: bold;
    text-decoration: none; box-sizing: border-box; transition: all 0.2s ease;
}

.guest-register-link a:hover {
    border-color: var(--accent-orange); color: var(--accent-orange);
    background-color: rgba(255, 123, 0, 0.05); box-shadow: 0 0 10px rgba(255, 123, 0, 0.25);
}

/* Модальное окно */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(13, 17, 23, 0.8); backdrop-filter: blur(4px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
}

.modal-card {
    position: relative; width: 100%; max-width: 400px; margin: 15px;
    background-color: var(--bg-card); border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.3); animation: modalScaleIn 0.25s ease;
}

.modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    color: var(--text-muted); font-size: 24px; cursor: pointer; line-height: 1; transition: color 0.2s ease;
}

.modal-close:hover { color: var(--accent-cyan); }
.modal-card h3 { margin-bottom: 15px; }
.register-conf-message { font-size: 13px; color: var(--text-muted); margin: 10px 0; }

.modal-card input[type="submit"], .profile-edit-link .button-register-submit {
    width: 100% !important; background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important; color: var(--accent-cyan) !important;
    padding: 10px !important; border-radius: 6px !important; cursor: pointer !important;
    font-weight: bold !important; font-size: 14px !important; font-family: Arial, sans-serif !important;
    transition: all 0.2s ease !important; box-sizing: border-box !important;
    text-align: center !important; margin-top: 10px !important;
}

.modal-card input[type="submit"]:hover, .profile-edit-link .button-register-submit:hover {
    background-color: var(--accent-cyan) !important; border-color: var(--accent-cyan) !important;
    color: var(--bg-main) !important; box-shadow: 0 0 10px rgba(0, 210, 255, 0.4) !important;
}

.modal-card .input, .modal-card input[type="text"], .modal-card input[type="email"] {
    width: 100% !important; background-color: var(--bg-main) !important; border: 1px solid var(--border-color) !important;
    border-radius: 6px !important; padding: 10px !important; color: var(--text-main) !important;
    box-sizing: border-box !important; font-size: 14px !important;
}

.modal-card .input:focus, .modal-card input[type="text"]:focus, .modal-card input[type="email"]:focus {
    border-color: var(--accent-cyan) !important; outline: none !important; box-shadow: 0 0 8px rgba(0, 210, 255, 0.2) !important;
}

.modal-card p { margin-bottom: 15px; }
.modal-card label { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 5px; }

/* --------------------------------------------------------------------------
   9. КОММЕНТАРИИ
   -------------------------------------------------------------------------- */
.comments-area {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.comments-title {
    color: #ffffff;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.comment-reply-title {
    color: #ffffff;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.comment-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    list-style: none;
}

.comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    object-fit: cover;
    animation: none !important;
    box-shadow: none !important;
}

.comment-author-link a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
}

.comment-author-link a:hover {
    text-decoration: underline;
}

.comment-avatar-link {
    display: inline-block;
    line-height: 0;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

.comment-text p {
    margin: 0 0 10px 0;
}

.comment-reply-link-wrap {
    text-align: right;
    font-size: 13px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.comment-form .submit-btn {
    background-color: transparent;
    border: 1px solid var(--accent-cyan);
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
}

.comment-form .submit-btn:hover {
    background-color: var(--accent-cyan);
    color: #000000 !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   10. СТИЛИ СТАНДАРТНОГО РЕДАКТОРА WORDPRESS
   -------------------------------------------------------------------------- */
.wp-editor-area {
    background: #141419 !important;
    color: #e0e0e0 !important;
}

.wp-core-ui .wp-editor-wrap {
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.wp-core-ui .mce-top-part::before,
.wp-core-ui .html-active .wp-editor-tools,
.wp-core-ui .tmce-active .wp-editor-tools,
.wp-editor-container,
.mce-panel {
    background: #141419 !important;
    border-color: rgba(0, 210, 255, 0.2) !important;
}

.mce-btn {
    background: #1c1c24 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}

.mce-btn:hover {
    background: rgba(0, 210, 255, 0.2) !important;
    border-color: var(--accent-cyan) !important;
}

.mce-btn.mce-active {
    background: var(--accent-cyan) !important;
    color: #000000 !important;
}

.mce-ico {
    color: inherit !important;
}

.mce-listbox button, 
.mce-combobox {
    background: #1c1c24 !important;
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.wp-editor-tools, 
.wp-switch-editor {
    background: #141419 !important;
    color: #e0e0e0 !important;
    border-color: rgba(0, 210, 255, 0.2) !important;
}

.wp-switch-editor {
    background: #1c1c24 !important;
    color: #b3b3b3 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wp-switch-editor.active {
    background: var(--accent-cyan) !important;
    color: #000000 !important;
    border-color: var(--accent-cyan) !important;
}

.mce-statusbar {
    background: #141419 !important;
    border-top: 1px solid rgba(0, 210, 255, 0.2) !important;
    color: #888888 !important;
}

/* --------------------------------------------------------------------------
   11. АНИМАЦИИ
   -------------------------------------------------------------------------- */
@keyframes modalScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes avatarPulsePermanent {
    0% { box-shadow: 0 0 5px rgba(0, 210, 255, 0.4), inset 0 0 3px rgba(0, 210, 255, 0.2); }
    50% { box-shadow: 0 0 18px rgba(0, 210, 255, 0.7), inset 0 0 8px rgba(0, 210, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 210, 255, 0.4), inset 0 0 3px rgba(0, 210, 255, 0.2); }
}

@keyframes avatar-glow {
    0% { box-shadow: 0 0 3px rgba(0, 210, 255, 0.2); }
    50% { box-shadow: 0 0 12px rgba(0, 210, 255, 0.7); }
    100% { box-shadow: 0 0 3px rgba(0, 210, 255, 0.2); }
}

/* --------------------------------------------------------------------------
   12. АДАПТИВНОСТЬ (Мобильные версии)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .site-container { flex-direction: column; }
    .left-sidebar { width: 100%; }
}

@media screen and (max-width: 768px) {
    body { padding: 10px; gap: 15px; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .main-navigation ul { flex-wrap: wrap; gap: 10px; }
    .left-sidebar { width: 100%; }
    .card { padding: 15px; }
}

@media screen and (max-width: 600px) {
    .form-row-inline { flex-direction: column; gap: 0; }
    .oldstyle-body { flex-direction: column; }
    .oldstyle-thumb { width: 100%; height: 200px; }
}

/* Выравнивание элементов в шапке */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.main-navigation {
    flex: 1;
}

/* Блок действий справа */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Поиск */
.header-search-form {
    display: flex;
    align-items: center;
    background: #1a1e29;
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 2px 8px;
}

.header-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    padding: 4px 6px;
    width: 110px;
    transition: width 0.25s ease;
}

.header-search-input:focus {
    width: 170px;
}

.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
}

/* Кнопка + (Создать пост) */
.btn-add-post {
    background: #ff7b00;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s, background 0.2s;
}

.btn-add-post:hover {
    background: #ff9426;
    transform: scale(1.08);
}

/* Виджет пользователя */
.header-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.25);
    transition: border-color 0.2s;
}

.header-user-badge:hover {
    border-color: #00d2ff;
}

.header-lvl {
    color: #00d2ff;
    font-size: 12px;
    font-weight: bold;
}

.header-avatar img {
    border-radius: 50%;
    display: block;
}

/* Кнопка войти для гостей */
.btn-login {
    color: #00d2ff;
    border: 1px solid #00d2ff;
    padding: 5px 14px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-login:hover {
    background: rgba(0, 210, 255, 0.1);
}

/* Выравнивание меню в шапке */
.header-nav-list {
    display: flex !important;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px;
}

.header-nav-list li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.header-nav-list li a:hover {
    color: #00d2ff;
}

.btn-add-post:hover {
    background: #ff9426 !important;
    transform: scale(1.08);
}