/*
Theme Name: dds_nthoakimlong.com
Author: Аким Лонг
Description: Мультитематический образовательный блог с сильным блоком спортивной педагогики. Тема в стиле суровой минималистичной элегантности с акцентами спортивной динамики.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dnl
*/

/* ============================================================== *
 *  Переменные
 * ============================================================== */
:root {
    --bg:        #121212;
    --bg-soft:   #1b1b1b;
    --bg-card:   #ffffff;
    --ink:       #e0e0e0;
    --ink-dim:   #9a9a9a;
    --ink-dark:  #1a1a1a;
    --accent:    #ff4d00;
    --steel:     #2a5c7a;
    --gold:      #d9a13b;
    --line:      #2c2c2c;
    --line-card: #e3e3e3;
}

/* ============================================================== *
 *  База
 * ============================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #f4f4f4;
    margin: 0 0 .6em;
    letter-spacing: .01em;
}
h1 { font-size: 2.3rem; text-transform: uppercase; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: #ff7a3d; }

img { max-width: 100%; height: auto; }

code, pre, kbd {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-soft);
    color: var(--gold);
}
pre { padding: 1rem; overflow-x: auto; border-left: 3px solid var(--accent); }

::selection { background: var(--accent); color: #fff; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem; top: 1rem;
    background: var(--accent); color: #fff;
    padding: .5rem 1rem; z-index: 999;
}

/* ============================================================== *
 *  Кнопки
 * ============================================================== */
.btn-cta {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    padding: .75rem 1.8rem;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    transition: background .18s ease, border-width .18s ease;
    cursor: pointer;
}
.btn-cta:hover {
    background: transparent;
    color: var(--accent);
    border-width: 3px;
}

.btn-soft {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .82rem;
    padding: .5rem 1.4rem;
    border-radius: 30px;
    color: var(--accent);
    background: rgba(255, 77, 0, .15);
    transition: background .18s ease, color .18s ease;
    cursor: pointer;
}
.btn-soft:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================================== *
 *  Шапка
 * ============================================================== */
.site-header {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.header-top {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1;
}
.brand-logo,
.brand-logo svg {
    width: 56px;
    height: 56px;
    display: block;
    flex: 0 0 56px;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.25;
    display: block;
}
.brand-name a { color: #fff; }
.brand-desc {
    font-size: .82rem;
    color: var(--ink-dim);
    line-height: 1.4;
    margin: .2rem 0 0;
}

.discipline-counter {
    flex: 0 0 auto;
    text-align: right;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}
.discipline-counter .dc-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-dim);
}
.discipline-counter .dc-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.1;
}

/* Навигация */
.site-nav {
    border-top: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    padding: .5rem 1rem;
    margin: .6rem 0;
    cursor: pointer;
}
.main-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0;
    padding: 0;
}
.main-menu a {
    display: block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .92rem;
    color: var(--ink);
    padding: 1rem .9rem;
    border-bottom: 2px solid transparent;
    transition: border-color .18s ease, color .18s ease;
}
.main-menu a:hover,
.main-menu .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--accent);
}

/* ============================================================== *
 *  Каркас страницы
 * ============================================================== */
.site-main { padding: 2.4rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single {
    display: block;
}
.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

/* Хлебные крошки */
.breadcrumbs {
    font-size: .82rem;
    color: var(--ink-dim);
    margin-bottom: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.breadcrumbs a { color: var(--ink-dim); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--accent); margin: 0 .25rem; }
.breadcrumbs span { color: var(--ink); }

/* ============================================================== *
 *  Карточки записей — «доска таймлайна тренировок»
 * ============================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    color: var(--ink-dark);
    border-left: 5px solid var(--accent);
    overflow: hidden;
    position: relative;
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
}
.card-thumb-wrap img,
.card-thumb-ph {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05);
    transition: filter .35s ease;
}
.card-thumb-wrap:hover img {
    filter: grayscale(0%) saturate(1.15);
}
.card-thumb-ph {
    background: linear-gradient(135deg, #1d1d1d, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    filter: none;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a8a8a;
    margin-bottom: .5rem;
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}
.card-meta .cat { color: var(--accent); font-weight: 600; }
.card-title {
    font-size: 1.22rem;
    margin: 0 0 .5rem;
}
.card-title a {
    color: var(--ink-dark);
    display: inline-block;
    position: relative;
}
.card-title a::before {
    content: "";
    position: absolute;
    top: -7px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}
.card-title a:hover { color: var(--ink-dark); }
.card-title a:hover::before { width: 100%; }

.card-excerpt {
    color: #4a4a4a;
    font-size: .96rem;
    margin-bottom: 1rem;
}
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot { margin-top: auto; }

/* ============================================================== *
 *  Одиночная запись / страница
 * ============================================================== */
.entry {
    background: var(--bg-soft);
    border-top: 4px solid var(--accent);
    padding: 1.8rem 2rem 2.2rem;
}
.entry-header { margin-bottom: 1.4rem; }
.entry-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-dim);
    margin-top: .6rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.entry-meta .read-time { color: var(--gold); }

.entry-thumb { margin: 1.2rem 0 1.6rem; }
.entry-thumb img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.05);
    transition: filter .4s ease;
}
.entry-thumb img:hover { filter: grayscale(0%) saturate(1.15); }

.entry-content { font-size: 1.04rem; }
.entry-content img { display: block; margin: 1.2rem 0; }
.entry-content h2,
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: .4rem 1.4rem;
    border-right: 4px solid var(--accent);
    background: #161616;
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
    color: #f0f0f0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
}
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
}
.entry-content th,
.entry-content td {
    padding: .6rem .8rem;
    text-align: left;
}
.entry-content th {
    background: #1f1f1f;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: .85rem;
}

.entry-tags {
    margin-top: 1.6rem;
    font-size: .85rem;
}
.entry-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    padding: .2rem .7rem;
    margin: .2rem .2rem 0 0;
    color: var(--ink-dim);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: .85rem;
}

/* Шкала «пульс чтения» */
.reading-pulse {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--steel), var(--accent));
    z-index: 120;
    transition: width .1s linear;
}

/* ============================================================== *
 *  Главная
 * ============================================================== */
.front-block { margin-bottom: 3rem; }
.block-head {
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1.6rem;
}
.block-head .kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
}

.hero {
    background: linear-gradient(160deg, #181818, #101010);
    border: 1px solid var(--line);
    padding: 2.6rem 2.2rem;
}
.hero h1 { font-size: 2.7rem; }
.hero .hero-lead {
    font-size: 1.12rem;
    color: var(--ink);
    max-width: 56ch;
}
.hero .hero-counter {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
    font-size: .92rem;
    margin: 1rem 0 1.4rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.pillar {
    background: var(--bg-soft);
    border-top: 3px solid var(--steel);
    padding: 1.4rem 1.3rem;
}
.pillar:nth-child(2) { border-top-color: var(--accent); }
.pillar:nth-child(3) { border-top-color: var(--gold); }
.pillar .pillar-no {
    font-family: 'JetBrains Mono', monospace;
    color: var(--ink-dim);
    font-size: .8rem;
}

/* Слайдер принципов */
.slider {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    overflow: hidden;
}
.slider-track {
    display: flex;
    transition: transform .45s ease;
}
.slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 2.2rem 2.4rem;
}
.slide .slide-no {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: .8rem;
}
.slide blockquote {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #f2f2f2;
    margin: .6rem 0 0;
    border-right: 4px solid var(--accent);
    padding-right: 1.2rem;
}
.slider-controls {
    display: flex;
    gap: .5rem;
    padding: 0 2.4rem 1.6rem;
}
.slider-dot {
    width: 34px; height: 6px;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
}
.slider-dot.active { background: var(--accent); }

.cat-weights {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
    align-items: baseline;
}
.cat-weight {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.1;
}
.cat-weight:hover { color: var(--accent); }

.contacts-static {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .92rem;
}
.contacts-static a { color: var(--gold); }

/* ============================================================== *
 *  Сайдбар и виджеты
 * ============================================================== */
.sidebar { min-width: 0; }

.widget {
    background: var(--bg-soft);
    border-left: 4px solid var(--steel);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid var(--line);
    padding-bottom: .5rem;
}
.widget a { color: var(--accent); }
.widget a:hover { color: #ff8a52; }
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: .4rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .94rem;
}
.widget li:last-child { border-bottom: none; }
.widget .post-date,
.widget .rss-date {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--ink-dim);
}

/* ============================================================== *
 *  Подвал
 * ============================================================== */
.site-footer {
    background: #0d0d0d;
    border-top: 3px solid var(--accent);
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.6rem 0 1.6rem;
}
.footer-cols .widget {
    background: none;
    border-left: 3px solid var(--line);
    padding: 0 0 0 1rem;
    margin: 0;
    color: #c4c4c4;
}
.footer-cols .widget-title {
    color: #fff;
    border-bottom-color: var(--line);
}
.footer-cols .widget a { color: var(--gold); }
.footer-cols .widget a:hover { color: var(--accent); }
.footer-cols .widget li { border-bottom-color: #222; }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.2rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--ink-dim);
    text-align: center;
}

/* ============================================================== *
 *  Пагинация
 * ============================================================== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2rem;
}
.pager a,
.pager span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    background: transparent;
}
.pager a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pager .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .dots { border-color: transparent; }

/* ============================================================== *
 *  Комментарии
 * ============================================================== */
.comments-area {
    margin-top: 2.4rem;
    background: var(--bg-soft);
    padding: 1.6rem 1.8rem;
    border-left: 4px solid var(--steel);
}
.comment-list {
    list-style: none;
    margin: 1.2rem 0;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin-left: 1.4rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}
.comment-inner {
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}
.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .82rem;
}
.comment-author { font-family: 'Oswald', sans-serif; text-transform: uppercase; color: #fff; }
.comment-date { font-family: 'JetBrains Mono', monospace; color: var(--ink-dim); }
.comment-pending { color: var(--gold); font-size: .82rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #161616;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: .6rem .8rem;
    font-family: inherit;
    font-size: .95rem;
}
.comment-form label { font-size: .85rem; color: var(--ink-dim); }
.comment-form p { margin-bottom: .9rem; }

/* ============================================================== *
 *  Форма поиска
 * ============================================================== */
.search-form {
    display: flex;
    gap: .4rem;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    background: #161616;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: .55rem .8rem;
    font-family: inherit;
}
.search-form .search-submit {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: .55rem 1.1rem;
    cursor: pointer;
}
.search-form .search-submit:hover { background: #ff6a2a; }

/* ============================================================== *
 *  404
 * ============================================================== */
.error-404 {
    text-align: center;
    padding: 2rem 0 3rem;
}
.error-404 .code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6rem;
    color: var(--accent);
    line-height: 1;
}

/* ============================================================== *
 *  Cookie-баннер
 * ============================================================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: #0c0c0c;
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-inner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: .88rem;
    color: var(--ink-dim);
}
.cookie-inner a { color: var(--gold); }

/* ============================================================== *
 *  Адаптив
 * ============================================================== */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .header-top { gap: 1rem; }
    h1 { font-size: 1.9rem; }
    .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    .layout-single .content-area { width: 100%; }
    .footer-cols { grid-template-columns: 1fr; }
    .discipline-counter {
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-left: 0;
        padding-top: .6rem;
        text-align: left;
        width: 100%;
    }
    .menu-toggle { display: block; }
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: .6rem;
    }
    .main-menu.is-open { display: flex; }
    .main-menu a { padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
    .nav-inner { flex-direction: column; align-items: stretch; }
    .entry { padding: 1.4rem 1.2rem; }
    .hero { padding: 1.8rem 1.3rem; }
    .slide { padding: 1.6rem 1.4rem; }
    .slider-controls { padding: 0 1.4rem 1.2rem; }
    .post-nav { flex-direction: column; }
}
