/*
Theme Name:  Pulse JournalX
Theme URI:   https://grigorev-art.ru
Description: Премиум журнальная медиа-тема в стиле JournalX (wpshop). Светлая и тёмная темы, адаптивная журнальная сетка публикаций, шеринг в соцсети, интеграция с портфолио.
Version:     1.7.3
Author:      Grigorev Art
Author URI:  https://grigorev-art.ru
Text Domain: pulse
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:        blog, news, magazine, custom-colors, dark-mode, light-mode, responsive-layout, translation-ready
*/

/* =========================================================
   Root stylesheet (WordPress required entry point).
   All main styles → assets/css/style.css
   ========================================================= */

/* Table of Contents (injected by JS) */
.pulse-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 0 2em;
    font-family: var(--font-ui);
}

.pulse-toc__title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pulse-toc__list {
    list-style: decimal;
    padding-left: 1.4em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pulse-toc__list a {
    font-size: 14px;
    color: var(--accent);
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pulse-toc__list a:hover { opacity: .7; }

.pulse-toc__sub {
    margin-left: 16px;
    font-size: 13px;
    list-style-type: disc;
}

/* WP core pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin: 0 3px;
    text-decoration: none;
    transition: all .2s ease;
    font-family: var(--font-ui);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    opacity: 1;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* WP alignment classes */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { width: 100%; }

/* WP Search form */
.search-form {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font-ui);
    outline: none;
}

.search-field:focus { border-color: var(--accent); }

.search-submit {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: background .2s;
}

.search-submit:hover { background: var(--accent-hover); }

/* WP comment list fixes */
.comment-list, .children { list-style: none; padding: 0; margin: 0; }
.children { padding-left: 24px; margin-top: 12px; }

/* Smooth transitions for theme switch */
body, .pulse-navbar, .pulse-sidebar-widget,
.pulse-post-item, .pulse-article, .pulse-footer {
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
