/* ==========================================================
   EYEBROW CONTRAST
========================================================== */
.blog-hero .eyebrow {
    color: rgba(255,255,255,0.62);
}

/* ==========================================================
   BLOG HERO
========================================================== */
.blog-hero {
    position: relative;
    padding: 12rem 0 6rem;
    background: linear-gradient(180deg, #000000, #02131b 100%);
    overflow: hidden;
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--color-teal-rgb), .10), transparent 40%),
                radial-gradient(circle at bottom left, rgba(var(--color-red-rgb), .08), transparent 35%);
    pointer-events: none;
}
.blog-hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: .95;
    letter-spacing: -.04em;
    margin: 1.5rem 0 2rem;
    max-width: 800px;
}
.blog-hero .hero-intro {
    max-width: 640px;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* ==========================================================
   BLOG GRID
========================================================== */
.blog-content {
    padding: 4rem 0 10rem;
    background: linear-gradient(180deg, #050505, #0a141b);
}
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 5rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* ==========================================================
   POST CARDS
========================================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.post-card {
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(27,33,39,.96), rgba(19,24,29,.98));
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233,42,74,.25);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.post-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: 1.1rem;
    position: relative;
}
.post-image-label {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--color-teal);
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}
.post-card h2 {
    font-size: 1.6rem;
    margin: 1.5rem 2rem .75rem;
    line-height: 1.2;
}
.post-card h2 a {
    color: var(--text-primary);
    transition: color .3s ease;
}
.post-card h2 a:hover {
    color: var(--color-teal);
}
.post-card p {
    margin: 0 2rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem 0;
}
.post-category {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255,255,255,.06);
    color: var(--text-primary);
}
.post-category[data-category="design"] {
    background: rgba(11, 148, 150, .15);
    color: var(--color-teal);
}
.post-category[data-category="culture"] {
    background: rgba(227, 28, 61, .15);
    color: var(--color-red);
}
.post-category[data-category="parrots"] {
    background: rgba(255, 215, 0, .15);
    color: #FFD700;
}
.post-category[data-category="reviews"] {
    background: rgba(136, 136, 136, .15);
    color: #888;
}
.post-meta time {
    font-size: .85rem;
    color: var(--text-muted);
}
.post-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 2rem 2rem;
    transition: gap .3s ease;
}
.post-link:hover {
    gap: 1rem;
}
.post-link span {
    transition: transform .3s ease;
}
.post-link:hover span {
    transform: translateX(6px);
}

/* ==========================================================
   SIDEBAR
========================================================== */
.blog-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
@media (max-width: 1100px) {
    .blog-sidebar {
        position: relative;
        top: 0;
    }
}
.sidebar-section {
    padding: 1.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}
.sidebar-section h3 {
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.sidebar-section p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.search-box,
.newsletter-box {
    display: flex;
    gap: .5rem;
}
.search-box input,
.newsletter-box input {
    flex: 1;
    min-width: 0;
    padding: .75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
    font-size: .95rem;
    outline: none;
    transition: border-color .3s ease;
}
.search-box input:focus,
.newsletter-box input:focus {
    border-color: var(--color-teal);
}
.search-box button,
.newsletter-box button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--color-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .3s ease, background .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter-box button {
    width: auto;
    padding: 0 1.25rem;
    font-size: .85rem;
    font-weight: 600;
}
.search-box button:hover,
.newsletter-box button:hover {
    transform: translateY(-2px);
    background: #f02d4e;
}
.category-list,
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.category-list a,
.recent-list a {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
    color: var(--text-secondary);
    transition: color .3s ease, transform .3s ease;
}
.category-list a:hover,
.recent-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}
.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.recent-list a {
    line-height: 1.5;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.recent-list li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

/* ==========================================================
   SINGLE POST
========================================================== */
.post-article {
    background: linear-gradient(180deg, #000000, #0a141b);
}
.post-hero {
    position: relative;
    padding: 11rem 0 4rem;
    background: linear-gradient(180deg, #000000, #02131b 100%);
    overflow: hidden;
}
.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--color-teal-rgb), .10), transparent 40%),
                radial-gradient(circle at bottom left, rgba(var(--color-red-rgb), .08), transparent 35%);
    pointer-events: none;
}
.post-hero-inner {
    max-width: 820px;
}
.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.post-hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}
.post-hero-excerpt {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 680px;
}
.post-layout {
    padding-bottom: 10rem;
}
.post-body {
    padding-top: 2rem;
}
.post-featured-image {
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.post-content {
    max-width: 720px;
}
.post-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.post-content h3 {
    font-size: 1.5rem;
    margin: 3rem 0 1.25rem;
    color: var(--text-primary);
    line-height: 1.2;
}
.post-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--color-red);
    background: rgba(255,255,255,.03);
    border-radius: 0 16px 16px 0;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.tag {
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    background: rgba(255,255,255,.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,.08);
    transition: all .3s ease;
    cursor: pointer;
}
.tag:hover {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
}
.post-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.author-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.author-info strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}
.author-info span {
    font-size: .9rem;
    color: var(--text-muted);
}

/* ==========================================================
   READING TIME BADGE
========================================================== */
.post-read-time {
    font-size: .8rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.post-read-time::before {
    content: '·';
}

/* ==========================================================
   FEATURED POST CARD
========================================================== */
.post-card-featured {
    padding: 0 !important;
    overflow: hidden;
}

.post-card-featured-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.post-card-featured-link:hover .post-image-featured {
    filter: brightness(1.08);
}

.post-image-featured {
    width: 100%;
    aspect-ratio: 16/9;
    border-bottom: 1px solid rgba(255,255,255,.05);
    border-right: none;
    transition: filter .4s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    position: relative;
}

.post-card-featured-body {
    padding: 0;
    display: block;
}

.post-card-featured-body h2 {
    font-size: 1.85rem;
    line-height: 1.15;
    margin: 0;
}

.post-card-featured-body p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.post-card-featured-body .post-link {
    margin: .25rem 0 0;
}

/* ==========================================================
   READING PROGRESS BAR (single post page)
========================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--color-red);
    z-index: 9999;
    transition: width .1s linear;
}

/* ==========================================================
   POST BACK LINK
========================================================== */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color .3s ease;
}
.post-back:hover {
    color: #fff;
}

/* ==========================================================
   POST NOT FOUND
========================================================== */
.post-not-found {
    padding: 10rem 0;
    text-align: center;
}
.post-not-found h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.post-not-found p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* ==========================================================
   POST FOOTER NAV (next post)
========================================================== */
.post-footer-nav {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.post-next-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    transition: all .35s ease;
}

.post-next-card:hover {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    transform: translateY(-4px);
}

.post-next-label {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    display: block;
    margin-bottom: .5rem;
}

.post-next-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.post-next-arrow {
    font-size: 1.5rem;
    color: var(--color-red);
    flex-shrink: 0;
    transition: transform .3s ease;
}

.post-next-card:hover .post-next-arrow {
    transform: translateX(6px);
}

.post-footer-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-size: .9rem;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color .3s ease;
}

.post-footer-back:hover {
    color: #fff;
}

/* Newsletter message feedback */
.newsletter-msg.success { color: var(--color-teal); }
.newsletter-msg.error   { color: #ff6b84; }

/* ==========================================================
   SEE MORE — show featured + 3 posts by default on all screens
========================================================== */
.posts-list:not(.is-expanded) .post-card:nth-child(n+5) {
    display: none;
}

.blog-see-more {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: .5rem;
    border-radius: 12px;
    border: none;
    background: var(--color-red);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .3s ease, background .3s ease;
}

.blog-see-more:hover {
    transform: translateY(-2px);
    background: #f02d4e;
}

.posts-list.is-expanded .blog-see-more {
    display: none;
}

/* ==========================================================
   MOBILE-ONLY BLOG FIXES
========================================================== */
@media (max-width: 700px) {
    /* Reorder sidebar to top */
    .blog-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    .blog-sidebar {
        order: -1;
        position: relative;
        top: 0;
        width: 100%;
    }

    /* Fix card overflow */
    .post-card {
        min-width: 0;
    }
    .post-meta {
        flex-wrap: wrap;
        gap: .5rem 1rem;
    }
    .post-card h2,
    .post-card p,
    .post-link {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
    .post-meta {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .post-image-label {
        left: 1.25rem;
        top: 1.25rem;
    }

    /* Sidebar text wrapping */
    .category-list a {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: .75rem;
    }
    .recent-list a {
        display: block;
    }
    .search-box input,
    .newsletter-box input {
        min-width: 0;
    }

    /* See More button — already global, just hide nth-child(n+4) on mobile */
    .posts-list:not(.is-expanded) .post-card:nth-child(n+4) {
        display: none;
    }
}