/* Scroll to top button */

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    opacity: 0.66;
    cursor: pointer;
    border-radius: 4px;
}

/* ── TOP BAR ─ */
.top-bar {
    background: var(--bg);
    color: var(--text);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    @media (max-width: 767px) {
        grid-template-columns: 1fr 1fr;
    }
}

.lang-switch {
    display: flex;
    gap: 0.3rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
    border-color: var(--red);
}

.lang-btn.active {
    border-color: var(--red);
    background: rgba(173, 21, 25, 0.06);
}

.lang-btn img {
    width: 16px;
    height: 16px;
}

.socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    @media (max-width: 767px) {
        order: 99;
        grid-column: span 2;
    }
}

.socials a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--red);
    text-decoration: none;
}

.auth-links {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.auth-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--red);
}

/* ── MAIN NAV ─ */
.main-nav {
    background: var(--red);
    border-top: 2px solid var(--yellow);
    border-bottom: 2px solid var(--yellow);
    position: relative;
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #FFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--yellow);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--yellow);
}

.nav-items {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    background: var(--red);
}

.nav-items.open {
    max-height: 500px;
    opacity: 1;
}

.nav-item {
    color: #FFF;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    border-radius: var(--radius);
}

.nav-item:hover {
    background: var(--yellow);
    color: var(--red);
    text-decoration: none;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-inner {
        justify-content: center;
        gap: 2rem;
    }

    .nav-items {
        display: flex !important;
        flex-direction: row;
        width: auto;
        max-height: none !important;
        opacity: 1 !important;
        background: transparent;
        overflow: visible;
    }

    .nav-item {
        padding: 0.5rem 0.8rem;
        border-bottom: none;
    }
}

/* ── TITLE ── */
.main-title {
    border-bottom: 2px solid var(--yellow);
    margin-bottom: 2rem;
}

.site-title {
    text-align: center;
    padding: 2.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: none;
    display: block;
}

/* ── FOOTER ── */
.footer {
    border-top: 2px solid var(--yellow);
    margin-top: 4rem;
    padding: 2rem 0;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

/* ── GRID & SIDEBAR ── */
.grid-main {
    display: grid;
    grid-template-columns: 1fr;
    @media (min-width: 768px) {
        grid-template-columns: 1fr 320px;
    }
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.sidebar {
    position: sticky;
    top: 2rem;
}

/* ── WIDGETS & LISTS ── */
.widget {
    margin-bottom: 1.75rem;
}

.widget-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    display: inline-block;
    padding-bottom: 0;
    border-bottom: 2px solid var(--yellow);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--yellow);
    font-size: 0.9rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    color: var(--text);
    transition: color 0.2s;
}

.widget-list a:hover {
    color: var(--red);
    text-decoration: none;
}

/* Модификатор: Пунктирная линия, элементы по краям (Рубрики, TOC) */
.widget-list--dashed li {
    border-bottom-style: dashed;
    justify-content: space-between;
    gap: 1rem;
}

/* Модификатор: Сплошная линия, компактный (Комментарии, Недавние записи) */
.widget-list--solid li {
    border-bottom-style: solid;
    padding: 0.5rem 0;
}

/* Мета-данные (дата, время, количество) */
.widget-meta {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Специфика для TOC (ссылки серые по умолчанию) */
.widget-list--toc a {
    color: var(--text-muted);
}

.widget-list--toc a:hover {
    color: var(--red);
}

/* ── TAG CLOUD WIDGET ── */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget-tag:hover {
    background: var(--red);
    border-color: var(--red);
    color: #FFF;
    text-decoration: none;
}

/* Модификаторы размера (для классического эффекта "облака") */
.widget-tag--sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}

.widget-tag--lg {
    font-size: 1rem;
    padding: 0.4rem 0.85rem;
    font-weight: 600;
}

/* ── SECTION HEADER ── */
.page-section-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.page-section-desc {
    color: var(--text-muted);
    max-width: 65ch;
}

/* ── RECOMMENDATION ── */
.recommendation {
    margin-bottom: 2rem;
}

.recommendation-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--red);
}

.recommendation-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.recommendation-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.recommendation-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 60ch;
}

.recommendation-img {
    background: linear-gradient(135deg, var(--red), var(--yellow));
    border-radius: var(--radius);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-family: var(--font-mono);
    opacity: 0.8;
}

/* ── SECTION TITLES (Unified) ── */
.section-title {
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--yellow);
    display: inline-block;
    color: var(--text);
}

.section-header .section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0; /* Выравниваем по базовой линии с ссылкой */
}

/* Модификаторы размеров */
.section-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--red);
}

.section-link::after {
    content: " →";
    transition: transform 0.2s;
}

.section-link:hover {
    text-decoration: underline;
}

/* Заголовок блока с ссылкой "Все →" */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--yellow);
}

/* ── POSTS GRIDS ── */
.grid-items-2,
.grid-items-3 {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    grid-template-columns: 1fr; /* По умолчанию 1 колонка */
}

/* Адаптив для 2 колонок */
@media (min-width: 992px) {
    .grid-items-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптив для 3 колонок */
@media (min-width: 992px) {
    .grid-items-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── BASE CARD ── */
.item-card {
    background: var(--bg-max);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-card-img {
    aspect-ratio: 1.777778;
    background: linear-gradient(135deg, var(--red), var(--yellow));
}

.item-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta row (Language, Date, etc.) */
.item-meta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.item-lang {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--yellow);
    color: var(--text);
    border-radius: 2px;
}

.item-title {
    font-size: 1.125rem; /* Усредненный размер */
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.item-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex: 1; /* Толкает ссылку вниз */
    word-break: break-word;
}

.item-link {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.item-link::after {
    content: "→";
    transition: transform 0.2s;
}

.item-card:hover .item-link::after {
}

/* ── SINGLE POST ── */
.single-post-header {
    margin-bottom: 2rem;
}

.single-post-breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.single-post-breadcrumbs a {
    color: var(--text-muted);
}

.single-post-breadcrumbs a:hover {
    color: var(--red);
}

.single-post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.single-post-meta-sep {
    color: var(--border);
}

.single-post-content {
    color: var(--text);
    min-width: 0;
    width: 100%;
}

.single-post-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
    font-weight: 600;
}

.single-post-content h3 {
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
}

.single-post-content p {
    margin-bottom: 1.25rem;
}

.single-post-content ul, .single-post-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content a {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 3px;
}

.single-post-content a:hover {
    text-decoration-color: var(--red);
}

.single-post-code-block {
    background: var(--bg-alt);
    border-left: 4px solid var(--red);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
    box-sizing: border-box;
    overflow-x: auto;
    white-space: pre;
    display: block;
    max-width: 100% !important;
    width: 100% !important;
}

.single-post-blockquote {
    border-left: 3px solid var(--yellow);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
}

.single-post-img {
    width: 100%;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.single-post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.single-post-tag {
    background: var(--bg-alt);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.single-post-tag:hover {
    border-color: var(--red);
    color: var(--red);
    text-decoration: none;
}

.single-post-posts-nav {
    display: flex;
    justify-content: space-between;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--yellow);
    border-bottom: 1px solid var(--yellow);
    gap: 2rem;
}

.single-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 45%;
}

.single-post-nav-link.prev {
    align-items: flex-start;
}

.single-post-nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.single-post-nav-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.single-post-nav-title {
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
}

.single-post-nav-title:hover {
    color: var(--red);
    text-decoration: none;
}

.single-post-comments-section {
    margin-top: 1rem;
}

.single-post-comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-post-comment-form {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.single-post-comment-list {
    list-style: none;
}

.single-post-comment-item {
    padding: 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.single-post-comment-item:nth-child(even) {
    background: var(--bg-alt);
}

.single-post-comment-item:last-child {
    border-bottom: none;
}

.single-post-comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.single-post-comment-author {
    font-weight: 600;
    color: var(--text);
}

.single-post-comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── WELCOME PAGE ─ */
.page-welcome-section-block {
    margin-bottom: 3.5rem;
}

.page-welcome-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-welcome-title .page-title {
    border: none;
}

.page-welcome-title .tagline {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 80ch;
    margin: 0 auto;
}

.page-welcome-skills {
    display: grid;
    grid-template-columns: 1fr;
    @media (min-width: 768px) {
        grid-template-columns: 1fr 1.5fr;
    }
    gap: 2.5rem;
    align-items: start;
}

.hard-skills {
    overflow-x: hidden;
}

.page-welcome-contact-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr;
    }
}

.page-welcome-contact-form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
    @media (min-width: 768px) {
        grid-column: span 2;
    }
}

/* ── PROFILE PAGE ── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    border: 2px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-role {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.profile-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
}

/* Социальные ссылки в профиле */
.profile-social-links {
    flex-basis: 100%;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--bg);
}

/* Адаптив */
@media (max-width: 768px) {
    .profile-social-links {
        justify-content: center;
    }
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.profile-stat {
    background: var(--bg-max);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-stat:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-section {
    margin-bottom: 2.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 3px solid var(--yellow);
    align-items: baseline;
}

.activity-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 80px;
}

.activity-text a {
    color: var(--text);
    font-weight: 500;
}

.activity-text a:hover {
    color: var(--red);
}

/* Edit profile */

.profile-edit-wrapper {
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Аватар */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yellow);
    background: var(--bg);
    flex-shrink: 0;
    align-content: space-evenly;
    text-align: center;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    cursor: pointer;
}

/* Сетка полей */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Соцсети */
.social-link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.social-link-row select {
    width: 140px;
}

.social-link-row input {
    flex: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .form-grid, .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }

    .profile-avatar-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* SEARCH */
.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.search-result-title a:hover {
    color: var(--red);
    text-decoration: none;
}

.search-result-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-excerpt {
    color: var(--text-muted);
    padding-left: 0; /* Если нужно смещение от заголовка */
}

.search-result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Подсветка совпадений */
.search-highlight, mark {
    background: rgba(250, 189, 0, 0.3);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 500;
}

/* ── PROJECT PAGE ── */
.project-header {
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-secondary {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--red);
    color: var(--red);
    text-decoration: none;
}


/* Content & Tech */
.project-content {
}

.project-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.project-tech-list .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-alt);
}

.comment-level-0 {
    margin-left: 0;
}

.comment-level-1 {
    margin-left: 40px;
    border-left: 3px solid var(--red);
}

.comment-level-2 {
    margin-left: 80px;
}

.comment-level-3 {
    margin-left: 120px;
}

.comment-replies {
    margin-top: 1rem;
}

.comment-form-active {
    margin: 1rem 0;
    padding: 1.5rem;
    background: var(--bg);
    border: 2px solid var(--red);
    border-radius: 8px;
}

.comment-actions {
    margin-top: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}
