/* ═══════════════════════════════════════════
   BLOG & POST PAGES
═══════════════════════════════════════════ */

/* --- BLOG HERO --- */
.blog-hero {
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.blog-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F3EFF8 0%, #E6DFF0 40%, #D4C4E8 100%);
    z-index: 0;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    padding: 60px 0 120px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero__breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.blog-hero__breadcrumbs a { color: #6B3FA0; }
.blog-hero__breadcrumbs a:hover { color: #D4A843; }
.blog-hero__breadcrumbs span { color: rgba(45, 27, 78, 0.4); }

.blog-hero__title {
    font-size: clamp(28px, 5vw, 42px);
    color: #2D1B4E;
    margin-bottom: 16px;
}

.blog-hero__subtitle {
    font-size: clamp(16px, 2.5vw, 18px);
    color: #4A4A4A;
    line-height: 1.7;
}

.blog-hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
    overflow: hidden;
}

.blog-hero__wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

@media (min-width: 768px) {
    .blog-hero__wave svg { height: 150px; }
}

/* --- BLOG FILTER --- */
.blog-filter {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 169, 209, 0.15);
    padding: 12px 0;
}

.blog-filter__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog-filter__inner::-webkit-scrollbar { display: none; }

.blog-filter__btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4A4A4A;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.blog-filter__btn:hover {
    color: #6B3FA0;
    background: #F3EFF8;
}

.blog-filter__btn--active {
    background: #6B3FA0;
    color: #FFFFFF;
}

.blog-filter__count {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #6B6B6B;
    margin-left: 12px;
    padding: 6px 14px;
    background: #F3EFF8;
    border-radius: 50px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* --- BLOG LIST --- */
.blog-list__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .blog-list__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .blog-list__grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-list__card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(184, 169, 209, 0.15);
    background: #FFFFFF;
    transition: all 0.4s ease;
}

.blog-list__card:hover {
    box-shadow: 0 12px 40px rgba(107, 63, 160, 0.1);
    transform: translateY(-4px);
}

.blog-list__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-list__card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #F3EFF8, #E6DFF0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-list__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list__card-placeholder { opacity: 0.4; }

.blog-list__card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(107, 63, 160, 0.9);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.blog-list__card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-list__card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B6B6B;
    margin-bottom: 10px;
}

.blog-list__card-title {
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-list__card-excerpt {
    font-size: 14px;
    color: #6B6B6B;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-list__card-read {
    font-size: 14px;
    font-weight: 600;
    color: #6B3FA0;
    transition: color 0.3s ease;
}

.blog-list__card:hover .blog-list__card-read { color: #D4A843; }

.blog-list__cta { margin-top: 48px; }

.blog-list__cta-inner {
    background: linear-gradient(135deg, #F3EFF8, #E6DFF0);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.blog-list__cta-inner p {
    font-size: 18px;
    color: #2D1B4E;
    font-weight: 500;
    margin: 0;
}

.blog-list__empty {
    text-align: center;
    padding: 60px 20px;
    color: #6B6B6B;
    font-size: 16px;
    display: none;
    grid-column: 1 / -1;
}

.blog-list__empty.is-visible { display: block; }

/* --- FILTER ANIMATIONS --- */
@keyframes filterFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes filterFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(8px) scale(0.97); }
}


/* ═══════════════════════════════════════════
   SINGLE POST — Страница статьи
═══════════════════════════════════════════ */

/* --- POST HERO --- */
.post-hero {
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.post-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F3EFF8 0%, #E6DFF0 40%, #D4C4E8 100%);
    z-index: 0;
}

.post-hero__inner {
    position: relative;
    z-index: 1;
    padding: 60px 0 120px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-hero__breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #6B3FA0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-hero__breadcrumbs a {
    color: #6B3FA0;
    text-decoration: none;
    transition: color 0.3s;
}

.post-hero__breadcrumbs a:hover { color: #D4A843; }
.post-hero__breadcrumbs span { color: rgba(45, 27, 78, 0.4); }

.post-hero__category {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(107, 63, 160, 0.9);
    color: #FFFFFF;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.post-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    color: #2D1B4E;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(45, 27, 78, 0.5);
    flex-wrap: wrap;
}

.post-hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
    overflow: hidden;
}

.post-hero__wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

@media (min-width: 768px) {
    .post-hero__wave svg { height: 150px; }
}

/* --- POST CONTENT GRID --- */
.post-content__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 960px) {
    .post-content__inner {
        grid-template-columns: 1fr 300px;
        gap: 60px;
    }
}

/* --- FEATURED IMAGE --- */
.post-content__featured-image {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.post-content__img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- POST BODY --- */
.post-content__body {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.post-content__body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #2D1B4E;
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-content__body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #2D1B4E;
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-content__body p {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 16px;
}

.post-content__body strong {
    color: #2D1B4E;
}

.post-content__body ul,
.post-content__body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.post-content__body li {
    margin-bottom: 8px;
}

.post-content__body a {
    color: #6B3FA0;
    text-decoration: underline;
    transition: color 0.3s;
}

.post-content__body a:hover { color: #D4A843; }

.post-content__body blockquote {
    border-left: 4px solid #D4A843;
    padding: 16px 24px;
    margin: 24px 0;
    background: #F9F7FC;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.post-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* --- TAGS --- */
.post-content__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(184, 169, 209, 0.2);
}

.post-content__tag {
    background: #F3EFF8;
    color: #6B3FA0;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-content__tag:hover {
    background: #6B3FA0;
    color: #fff;
}

/* --- CALLOUTS --- */
.post-content__callout {
    padding: 20px 24px;
    background: #F3EFF8;
    border-left: 4px solid #6B3FA0;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
}

.post-content__callout--tip {
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-left-color: #D4A843;
}

.post-content__callout p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* --- CTA IN POST --- */
.post-content__cta {
    background: linear-gradient(135deg, #6B3FA0, #7E57C2);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    margin: 40px 0;
}

.post-content__cta h3 {
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 8px;
}

.post-content__cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

/* --- SIDEBAR --- */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 960px) {
    .post-sidebar {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.post-sidebar__author {
    background: #F3EFF8;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.post-sidebar__author-img,
.post-sidebar__author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin: 0 auto 12px;
    border: 3px solid rgba(212, 168, 67, 0.3);
    display: block;
}

.post-sidebar__author-name,
.post-sidebar__author h4 {
    font-size: 17px;
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 8px;
    display: block;
}

.post-sidebar__author-role,
.post-sidebar__author p {
    font-size: 14px;
    color: #4A4A4A;
    line-height: 1.6;
}

.post-sidebar__author-link {
    font-size: 14px;
    font-weight: 600;
    color: #6B3FA0;
    transition: color 0.3s ease;
}

.post-sidebar__author-link:hover { color: #D4A843; }

.post-sidebar__cta {
    background: linear-gradient(135deg, #6B3FA0, #7E57C2);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
}

.post-sidebar__cta h4 {
    font-family: 'Playfair Display', serif;
    color: #FFFFFF;
    font-size: 17px;
    margin-bottom: 6px;
}

.post-sidebar__cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 16px;
}

.post-sidebar__cta .btn {
    background: #D4A843;
    border-color: #D4A843;
    font-size: 14px;
}

.post-sidebar__cta .btn:hover {
    background: #C49A3A;
}

/* --- POST NAVIGATION --- */
.post-nav__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(184, 169, 209, 0.2);
}

@media (min-width: 640px) {
    .post-nav__inner { grid-template-columns: 1fr 1fr; }
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: #F3EFF8;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-nav__link:hover {
    background: #E6DFF0;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 63, 160, 0.08);
}

.post-nav__link--next { text-align: right; }

.post-nav__label {
    font-size: 13px;
    font-weight: 600;
    color: #6B3FA0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.post-nav__title {
    font-size: 15px;
    font-weight: 500;
    color: #2D1B4E;
    line-height: 1.4;
}

/* --- RESPONSIVE --- */
@media (max-width: 959px) {
    .post-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .post-sidebar__author,
    .post-sidebar__cta {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 640px) {
    .blog-list__card-image { height: 160px; }
    .blog-list__card-body { padding: 20px; }
    .blog-filter__btn { padding: 6px 14px; font-size: 12px; }

    .post-content__body h2 { font-size: 22px; margin-top: 32px; }
    .post-content__body h3 { font-size: 18px; margin-top: 24px; }
    .post-content__cta { padding: 28px 20px; }
    .post-nav__link { padding: 16px 20px; }
    .post-nav__link--next { text-align: left; }

    .post-sidebar {
        flex-direction: column;
    }

    .post-sidebar__author,
    .post-sidebar__cta {
        min-width: auto;
    }

    .post-hero__inner {
        padding: 40px 0 80px;
    }
}