/*
Theme Name: Notes.bg
Theme URI: https://notes.bg/
Author: Notes.bg
Description: Notes.bg Custom Theme
Version: 1.0
Text Domain: notesbg
*/

/* === Базови стилове === */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
}

a {
    color: #cc3300;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === HEADER === */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-title a {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #b23a2a;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: none;
    color: #e04b33;
}

/* централна зона (търсачката) */
.header-center {
    flex: 1 1 auto;
}

.notes-header-search {
    max-width: 520px;
    margin: 0 auto;
}

/* дясно меню */

.header-right {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* махаме точки и правим хоризонтален списък */
.header-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.header-right li {
    margin: 0;
}

.header-right a {
    color: #555;
    font-weight: 500;
    text-decoration: none;
}

.header-right a:hover {
    color: #c0392b;
    text-decoration: none;
}

/* === КОНТЕЙНЕР ЗА СЪДЪРЖАНИЕТО === */

.site-content {
    max-width: 1200px;
    margin: 32px auto 40px;
    padding: 24px 24px 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* малко разстояние между article-и, ако има повече от един */

.site-content article + article {
    margin-top: 32px;
}

/* === FOOTER === */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 16px 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* === Responsive за телефон/таблет === */

@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-center {
        width: 100%;
    }

    .notes-header-search {
        max-width: 100%;
    }

    .header-right ul {
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-content {
        margin: 16px auto 24px;
        padding: 16px;
        border-radius: 0;
    }
}
/* === Начална страница – layout === */

.home-content {
    /* използваме същия контейнер, просто добавяме малко разстояния */
}

.home-top {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.home-top-left {
    flex: 2;
}

.home-top-right {
    flex: 1;
}

.home-middle {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.home-middle-col {
    flex: 1;
}

/* базов стил за widget върху началната */
.home-widget {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.home-widget-title {
    margin: 0 0 12px;
    font-size: 18px;
}

/* === Layout за страници със sidebar === */

.site-content-with-sidebar {
    display: flex;
    gap: 24px;
}

.site-main {
    flex: 3;
}

.site-sidebar {
    flex: 1;
}

.site-sidebar .widget {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.site-sidebar .widget-title {
    margin: 0 0 10px;
    font-size: 16px;
}

/* Responsive – на телефон всичко подред */
@media (max-width: 900px) {
    .home-top,
    .home-middle,
    .site-content-with-sidebar {
        flex-direction: column;
    }
}
/* ===== NOTES.BG – КАТЕГОРИИ: ГОЛЕМИ ИКОНИ, МАЛЪК ТЕКСТ, БЯЛ БРОЙ ===== */

/* Контейнер – подредба 4 на ред и малки разстояния */
.pciwgas-cat-wrap {
    width: 100% !important;
    margin: 0 auto 30px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important; /* по-малко разстояние */
}

/* Колонка – 4 на ред на десктоп, без излишни марджини */
.pciwgas-pdt-cat-grid {
    box-sizing: border-box !important;
    width: calc(25% - 8px) !important; /* 4 на ред */
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Махаме „картичките“ – фон, рамки, сенки */
.pciwgas-post-cat-inner {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* ГОЛЕМИ икони и събрани */
.pciwgas-img-wrapper {
    margin: 0 0 4px 0 !important;
}

.pciwgas-cat-img {
    width: 200px !important;       /* по-големи икони */
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Заглавия – ПО-МАЛКИ */
.pciwgas-title {
    margin-top: 0 !important;
}

.pciwgas-title a {
    display: inline-block !important;
    font-size: 13px !important;        /* по-дребен текст */
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: #222 !important;
    text-decoration: none !important;
}

/* БРОЙ – бяло заоблено badge-че, без червено */
.pciwgas-cat-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 20px !important;
    padding: 0 6px !important;
    margin-top: 4px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #333 !important;
    background: #ffffff !important;           /* БЯЛ фон */
    border: 1px solid #e1e1e1 !important;     /* сива рамка */
    border-radius: 999px !important;          /* хапче */
}

/* Респонсив – да не чупи на по-малък екран */
@media (max-width: 1024px) {
    .pciwgas-pdt-cat-grid {
        width: calc(33.333% - 8px) !important; /* 3 на ред */
    }
}

@media (max-width: 768px) {
    .pciwgas-pdt-cat-grid {
        width: calc(50% - 8px) !important;     /* 2 на ред */
    }
}
/* Archive / Category – Notes списък */

.notes-archive-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.notes-archive-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 20px;
}

.notes-archive-description {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.notes-list {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* Една картичка */

.note-card {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.note-card:last-child {
    border-bottom: none;
}

.note-card-thumb {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.note-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.note-card-main {
    flex: 1;
    min-width: 0;
}

.note-card-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.note-card-title a {
    text-decoration: none;
    color: #222;
}

.note-card-title a:hover {
    color: #e65100;
}

.note-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.note-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #777;
    gap: 10px;
}

.note-card-location {
    margin-right: 10px;
}

.note-card-meta-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-card-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.note-card-author img {
    border-radius: 50%;
}

.note-card-author-name {
    white-space: nowrap;
}

/* Пагинация */

.notes-archive-pagination {
    margin-top: 20px;
    text-align: center;
}

.notes-archive-pagination .page-numbers {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    text-decoration: none;
    color: #555;
}

.notes-archive-pagination .page-numbers.current {
    background: #ff9800;
    border-color: #ff9800;
    color: #fff;
}

/* Мобилна подредба */

@media (max-width: 768px) {
    .note-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .note-card-thumb {
        flex: 0 0 80px;
        height: 80px;
    }

    .note-card-title {
        font-size: 16px;
    }

    .note-card-excerpt {
        font-size: 13px;
    }

    .note-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .notes-archive-wrapper {
        padding: 0 12px 40px;
    }

    .note-card {
        padding: 12px 14px;
    }
}
.note-card-source {
    margin-right: 10px;
}

.note-card-source a {
    color: #00796b;
    text-decoration: none;
    font-weight: 500;
}

.note-card-source a:hover {
    text-decoration: underline;
}
/* === Price modes като селектируеми карти === */

.notes-price-modes-wrapper {
    margin-top: 20px;
}

.notes-price-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.note-price-mode {
    flex: 1 1 30%;
    border: 1px solid #e3e8f3;
    border-radius: 18px;
    padding: 16px 18px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
}

/* заглавие и текст вътре */
.note-price-mode-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.note-price-mode-body {
    font-size: 13px;
    color: #6b7280;
}

/* селектът вътре да стои като част от картата */
.note-price-mode-body select {
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
}

/* hover ефект */
.note-price-mode:hover {
    border-color: #bfd5ff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* избрания режим – светло син фон */
.note-price-mode.active {
    background: #f1f6ff;
    border-color: #2f7df6;
    box-shadow: 0 0 0 1px rgba(47, 125, 246, 0.25);
}

.note-price-mode.active .note-price-mode-title {
    color: #1f4ea8;
}

/* отзивчивост – под 768px да стават по 1 на ред */
@media (max-width: 768px) {
    .note-price-mode {
        flex: 1 1 100%;
    }
}
/* Скриваме истинския file input */
.notes-field-image input[type="file"] {
    display: none;
}

/* Кутия за качване – голям правоъгълник тип dropzone */
.note-image-upload-ui {
    margin-top: 8px;
    width: 100%;
    min-height: 140px;
    border-radius: 16px;
    border: 2px dashed #d0d7e3;      /* леко пунктирче */
    background: #f5f7fb;              /* светло сиво-синьо */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Hover ефект – леко по-синьо и сянка */
.note-image-upload-ui:hover {
    border-color: #4a90e2;
    background: #edf3ff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* Голямо „апаратче“ вътре */
.note-image-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 4px;
}

/* Основен текст – „Прикачи снимка“ */
.note-image-upload-text-main {
    font-size: 15px;
    font-weight: 600;
    color: #1f2933;
}

/* Подзаглавие – обяснение */
.note-image-upload-text-sub {
    font-size: 13px;
    color: #6b7280;
}

/* Името на файла, ако е избран */
.note-image-upload-file {
    font-weight: 500;
    color: #111827;
}
.note-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.note-card-meta-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.note-card-meta-line-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-card-date {
    font-weight: 500;
}

.note-card-address {
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-card-meta-line-url .note-card-url {
    text-decoration: none;
}

.note-card-meta-right .note-card-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #777;
}
/* Дата в балонче над заглавието */
.note-card-date-top {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 500;
    color: #555;

    background: #f5f7ff;              /* лек синкав фон */
    border: 1px solid #dde3f5;        /* фин бордер */
    border-radius: 999px;             /* пълно кръгче / „пил“ */
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Мета редът долу */
.note-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.note-card-meta-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.note-card-address {
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-card-url {
    text-decoration: none;
}

/* Автор вдясно */
.note-card-meta-right .note-card-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #777;
}
/* Ред с дата + цена над заглавието */
.note-card-top-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Бейдж за датата – вече го имаш, само да е актуален */
.note-card-date-top {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    background: #f5f7ff;
    border: 1px solid #dde3f5;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Бейдж за цената */
.note-card-price-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #8a4b00;
    background: #fff7e8;
    border: 1px solid #ffd8a2;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
/* Ред с дата + цена */
.note-card-top-meta {
    display: flex;
    align-items: center;   /* вертикално изравняване */
    gap: 8px;
    margin-bottom: 6px;
}

/* Балонче за дата и балонче за цена да са еднакви */
.note-card-date-top,
.note-card-price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;        /* да няма излишна височина на реда */
    margin: 0;             /* махаме каквито и да е default margin-и */
}
.note-single {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 30px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.note-single-header {
    margin-bottom: 20px;
}

.note-single-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
}

.note-single-top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* note-card-date-top и note-card-price-pill вече ги имаш от картите */

.note-single-author {
    margin-left: auto;
}

.note-single-media {
    margin-bottom: 24px;
}

.note-single-image-main img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.note-single-gallery {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-single-gallery-item img {
    display: block;
    border-radius: 6px;
    max-width: 120px;
    height: auto;
}

.note-single-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.note-single-section-title {
    font-size: 18px;
    margin: 0 0 8px;
}

.note-single-location {
    margin-bottom: 24px;
}

.note-single-address {
    margin-bottom: 8px;
    color: #555;
}

.note-single-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.note-single-external a {
    font-weight: 600;
}
.note-single {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 30px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    box-sizing: border-box;
    width: 100%;
}

.note-single-image-main img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    border-radius: 10px;
}

/* Галерията си остава същата, просто за всеки случай */
.note-single-gallery {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-single-gallery-item img {
    display: block;
    border-radius: 6px;
    max-width: 120px;
    height: auto;
}

/* Карта */
.note-single-map {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
}

.note-single-map iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* Категория като „пил“ */
.note-single-category-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f3f3;
    font-size: 13px;
    text-decoration: none;
    color: #333;
    margin-right: 6px;
}

/* Малко по-приятно на мобилни */
@media (max-width: 600px) {
    .note-single {
        padding: 20px 16px;
        border-radius: 0;
        margin: 0 auto 40px;
    }

    /* Дата, цена и автор в един ред, с пренасяне при нужда */
    .note-single-top-meta {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px 8px;
    }

    .note-single-top-meta .note-card-date-top,
    .note-single-top-meta .note-card-price-pill {
        margin: 0;
    }

    .note-single-author {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
    }

    .note-single-author img {
        width: 28px;
        height: 28px;
    }
}
/* В single изгледа адресът може да се пренася на няколко реда */
.note-single .note-card-address {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* Адресът в картите да е респонсив и да не реже полето на мобилно */
@media (max-width: 600px) {
    .note-card .note-card-address {
        display: block;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}
.note-category-wrapper {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.note-category-header {
    margin-bottom: 20px;
}

.note-category-children {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecf8fe;
    font-size: 13px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s ease, transform 0.1s ease;
}

.note-category-chip-count {
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    font-weight: 600;
    font-size: 12px;
}

.note-category-chip:hover {
    background: #ecf8fe;
    transform: translateY(-1px);
}

.note-category-chip.is-active {
    background: #ffebe0;
}

.note-category-chip.is-active .note-category-chip-count {
    background: #ffcfaa;
}
.note-single-description {
    margin: 24px 0 28px;
    padding: 18px 20px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eceff3;
}

.note-single-description-title {
    margin: 0 0 10px;
    font-size: 17px;
}

.note-single-description-body {
    font-size: 16px;
    line-height: 1.7;
}

/* Да не остава излишен въздух отдолу */
.note-single-description-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .note-single-description {
        padding: 14px 14px;
        margin: 20px 0 24px;
    }
}
.notes-most-viewed-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notes-most-viewed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}

.notes-most-viewed-item a {
    text-decoration: none;
    color: #333;
}

.notes-most-viewed-item a:hover {
    text-decoration: underline;
}

.notes-most-viewed-count {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f3f3;
}
.note-category-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
    font-size: 14px;
}

.note-category-sort-label {
    font-weight: 500;
}

.note-category-sort-link {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f3f3;
    text-decoration: none;
    color: #333;
    transition: background 0.15s ease;
}

.note-category-sort-link:hover {
    background: #e6e6e6;
}

.note-category-sort-link.is-active {
    background: #ffebe0;
}
.notes-most-viewed-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notes-most-viewed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.notes-most-viewed-item:last-child {
    border-bottom: none;
}

/* Картинка 80x80 вляво */
.notes-most-viewed-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.notes-most-viewed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notes-most-viewed-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

/* Основният текст */
.notes-most-viewed-main {
    flex: 1;
    min-width: 0;
}

.notes-most-viewed-title {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.notes-most-viewed-title:hover {
    text-decoration: underline;
}

/* Дата + автор отдолу */
.notes-most-viewed-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* note-card-date-top вече стилизира самия „балон“,
   тук само леко намаляваме размера за уиджета */
.notes-most-viewed-date {
    font-size: 11px;
    padding: 2px 8px;
}

/* Автор в балонче */
.notes-most-viewed-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    text-decoration: none;
    color: #333;
    font-size: 11px;
}

.notes-most-viewed-author img {
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

.notes-most-viewed-author-name {
    white-space: nowrap;
}

/* Броячът вдясно */
.notes-most-viewed-count {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
}

/* Малко по-прибрано на мобилни */
@media (max-width: 600px) {
    .notes-most-viewed-item {
        align-items: flex-start;
    }

    .notes-most-viewed-thumb {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }
}
.notes-most-viewed-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.notes-most-viewed-price {
    font-size: 11px;
    padding: 2px 8px;
}

.notes-most-viewed-excerpt {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}
/* Контейнерът за related: вертикален flex + центрирани елементи */
.note-single-related {
    display: flex;
    flex-direction: column;
    align-items: center;   /* всички деца по средата по хоризонтала */
}

/* Самото заглавие вътре остава залепено вляво */
.note-single-related .note-single-section-title {
    align-self: flex-start;
}

/* За всеки случай – вътрешният контейнер на YARPP да не се разтяга на 100% */
.note-single-related > div {
    max-width: 100%;
}
.note-card-thumb {
    position: relative;
}

.note-card-group-count {
    position: absolute;
    right: 8px;
    top: 8px;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff7a00; /* или твоя акцентен цвят */
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
.note-single-other-notes {
    margin-top: 30px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #f9fafb;
}

.note-single-other-notes-title {
    font-size: 20px;
    margin: 0 0 8px;
}

.note-single-other-notes-intro {
    margin: 0 0 14px;
    font-size: 14px;
    color: #6b7280;
}

.note-single-author-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-single-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
    font-size: 13px;
    text-decoration: none;
    color: #111827;
}

.note-single-author-pill:hover {
    box-shadow: 0 2px 6px rgba(15,23,42,0.12);
    transform: translateY(-1px);
}

.note-single-author-pill img {
    border-radius: 999px;
}

.note-single-author-pill-count {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
}
.note-single-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.note-thread-item {
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f7f8;
}

.note-thread-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.note-thread-content {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.note-thread-footer {
    font-size: 12px;
}

.note-thread-link {
    text-decoration: underline;
    cursor: pointer;
}
.note-single-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.note-thread-item {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8f8f9;
}

.note-thread-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.note-thread-avatar img {
    border-radius: 999px;
}

.note-thread-author-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.note-thread-author {
    font-weight: 600;
    font-size: 14px;
}

.note-thread-date {
    font-size: 12px;
    opacity: 0.7;
}

.note-thread-content {
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 6px;
}

.note-thread-footer {
    font-size: 12px;
}

.note-thread-link {
    text-decoration: underline;
    cursor: pointer;
}

.note-single-add-own {
    margin-top: 10px;
    font-size: 14px;
}

.note-single-add-own-btn {
    text-decoration: underline;
}
/* Блок с Notes от други потребители */
.note-single-other-notes {
    margin-top: 40px;
    padding: 32px 32px 24px;
    background: #f7f7f8;
    border-radius: 18px;
}

.note-single-other-notes-title {
    margin: 0 0 4px;
}

.note-single-other-notes-intro {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.note-single-other-notes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.note-single-other-note {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.note-single-other-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.note-single-other-note-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111827;
}

.note-single-other-note-author-name {
    font-weight: 600;
    font-size: 15px;
}

.note-single-other-note-date {
    font-size: 12px;
}

.note-single-other-note-body {
    font-size: 14px;
}

.note-single-other-note-excerpt {
    margin: 0 0 4px;
}

.note-single-other-note-link {
    font-size: 14px;
    color: #d9480f;
    text-decoration: underline;
}
