/* ============================================================
   BLOG PAGE STYLES
   ============================================================ */

/* ====================================================
   BLOG HERO
   ==================================================== */
.blog-hero {
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, rgba(255, 214, 10, 0.15), transparent 70%);
    pointer-events: none;
}

.blog-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
    justify-content: center;
}
.hero-eyebrow .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--yellow-deep);
    position: relative;
}
.hero-eyebrow .pulse::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    background: var(--yellow-deep);
    opacity: 0.35;
    animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    0% { transform: scale(1); opacity: 0.4; }
    75%, 100% { transform: scale(2.5); opacity: 0; }
}
.hero-eyebrow .divider {
    width: 28px; height: 1px;
    background: var(--ink); opacity: 0.4;
}

.blog-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 28px;
}
.blog-hero h1 em { font-style: italic; color: var(--yellow-deep); font-weight: 400; }
.blog-hero h1 .ink-highlight {
    position: relative;
    display: inline-block;
    isolation: isolate;
}
.blog-hero h1 .ink-highlight::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -4px; right: -4px;
    bottom: 0.06em;
    height: 0.32em;
    background: var(--yellow);
    transform: skewX(-10deg);
}

.blog-hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ====================================================
   FILTER BAR
   ==================================================== */
.blog-filter-bar {
    padding: 24px 0;
    background: var(--bg);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    background: rgba(245, 243, 238, 0.92);
}

.filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--ink-2);
    padding: 9px 18px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-pill:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.filter-pill.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}
.filter-pill .count {
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.filter-pill:not(.active) .count {
    background: var(--line);
    color: var(--muted);
}

.filter-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: var(--bg-elev);
    border: 1.5px solid var(--line);
    border-radius: 100px;
    padding: 0 18px;
    min-width: 240px;
    transition: border-color 0.25s var(--ease-out);
}
.filter-search:focus-within {
    border-color: var(--ink);
}
.filter-search i {
    color: var(--muted);
    margin-right: 10px;
    font-size: 13px;
}
.filter-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
}
.filter-search input::placeholder {
    color: var(--muted-2);
}

/* ====================================================
   POST THUMBNAIL TONES — color-coded by category
   ==================================================== */
.post-thumb {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-thumb-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    position: relative;
    transition: transform 0.6s var(--ease-out);
}
.post-card:hover .post-thumb-icon {
    transform: scale(1.15) rotate(-5deg);
}
.featured-post:hover .post-thumb-icon {
    transform: scale(1.1) rotate(-3deg);
}
.thumb-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}
.thumb-bg-pattern::before,
.thumb-bg-pattern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    transition: transform 1s var(--ease-out);
}
.thumb-bg-pattern::before {
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255, 255, 255, 0.12);
}
.thumb-bg-pattern::after {
    bottom: -30px; left: -30px;
    width: 140px; height: 140px;
    background: rgba(255, 255, 255, 0.08);
}
.post-card:hover .thumb-bg-pattern::before,
.featured-post:hover .thumb-bg-pattern::before {
    transform: scale(1.4) translate(-20px, 20px);
}
.post-card:hover .thumb-bg-pattern::after,
.featured-post:hover .thumb-bg-pattern::after {
    transform: scale(1.6) translate(20px, -20px);
}

/* Category color tones */
.tone-seo {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
.tone-seo-alt {
    background: linear-gradient(135deg, #c79900 0%, #ffd60a 100%);
}
.tone-seo-alt .post-thumb-icon { color: rgba(0,0,0,0.7); }
.tone-ai {
    background: linear-gradient(135deg, #1a1a3a 0%, #3d2d5c 100%);
}
.tone-ai-alt {
    background: linear-gradient(135deg, #3d2d5c 0%, #5c2d4d 100%);
}
.tone-career {
    background: linear-gradient(135deg, #0a3d2e 0%, #1a5c44 100%);
}
.tone-career-alt {
    background: linear-gradient(135deg, #1a4c5c 0%, #2d7c93 100%);
}
.tone-freelancing {
    background: linear-gradient(135deg, #5c2d2d 0%, #8c3d3d 100%);
}
.tone-agency {
    background: linear-gradient(135deg, #3d3d1a 0%, #5c5c2d 100%);
}

.post-thumb-label {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 3;
}
.post-thumb-label .cat {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ====================================================
   FEATURED POST
   ==================================================== */
.featured-post-section {
    padding: 60px 0 30px;
}
.featured-post {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-elev);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
}
.featured-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--ink);
}
.featured-post-visual {
    height: 100%;
    min-height: 380px;
}
.featured-post-visual .post-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}
.featured-post-visual .post-thumb-icon {
    font-size: 130px;
}
.featured-post-content {
    padding: 40px 50px 40px 0;
}
.featured-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.featured-post h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: var(--ink);
}
.featured-post h2 em { font-style: italic; color: var(--yellow-deep); }
.featured-post-content p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 28px;
}
.featured-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    margin-bottom: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}
.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}
.author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}
.author-role {
    font-size: 12px;
    color: var(--muted);
}
.meta-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
}
.meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.meta-info i {
    color: var(--yellow-deep);
    font-size: 11px;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: gap 0.25s var(--ease-out);
}
.read-link .arr {
    color: var(--yellow-deep);
    transition: transform 0.25s var(--ease-out);
}
.featured-post:hover .read-link {
    color: var(--yellow-deep);
    gap: 14px;
}
.featured-post:hover .read-link .arr {
    transform: translateX(4px);
}

/* ====================================================
   POST GRID
   ==================================================== */
.post-grid-section {
    padding: 60px 0 100px;
}
.post-grid-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.post-grid-head h3 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.post-count {
    font-size: 13px;
    color: var(--muted);
}
.post-count b {
    color: var(--ink);
    font-weight: 600;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.post-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--ink);
}
.post-card-body {
    padding: 26px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--muted);
}
.post-card-meta .cat {
    color: var(--yellow-deep);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.post-card-meta .dot {
    color: var(--muted-2);
}
.post-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
    color: var(--ink);
}
.post-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 22px;
    flex: 1;
}
.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.post-date {
    font-size: 12px;
    color: var(--muted);
}
.read-arrow {
    font-size: 18px;
    color: var(--yellow-deep);
    transition: transform 0.25s var(--ease-out);
}
.post-card:hover .read-arrow {
    transform: translateX(4px);
}

/* ====================================================
   EMPTY STATE
   ==================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-elev);
    border: 1px dashed var(--line);
    border-radius: 20px;
}
.empty-icon {
    width: 72px;
    height: 72px;
    background: var(--yellow-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-deep);
    font-size: 28px;
    margin-bottom: 20px;
}
.empty-state h4 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 22px;
}

/* ====================================================
   NEWSLETTER
   ==================================================== */
.newsletter-section {
    padding: 0 0 100px;
}
.newsletter-card {
    background: var(--ink);
    color: white;
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.newsletter-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.15), transparent 70%);
}
.newsletter-content {
    position: relative;
    z-index: 1;
}
.newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}
.newsletter-content h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: white;
    margin-bottom: 16px;
}
.newsletter-content h3 em {
    font-style: italic;
    color: var(--yellow);
}
.newsletter-content p {
    color: #aaa;
    font-size: 16px;
    line-height: 1.6;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 14px 22px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s var(--ease-out);
}
.newsletter-form input::placeholder { color: #888; }
.newsletter-form input:focus { border-color: var(--yellow); }
.newsletter-form .btn-primary {
    background: var(--yellow);
    color: var(--ink);
}
.newsletter-form .btn-primary::before { background: white; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 991px) {
    .blog-hero { padding: 30px 0 50px; }
    .filter-row { gap: 6px; }
    .filter-search {
        margin-left: 0;
        order: -1;
        width: 100%;
        margin-bottom: 12px;
    }
    .featured-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .featured-post-visual { min-height: 280px; }
    .featured-post-content {
        padding: 30px;
    }
    .featured-post h2 { font-size: 28px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-card {
        grid-template-columns: 1fr;
        padding: 40px 32px;
        gap: 32px;
    }
    .post-grid-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .filter-pill {
        padding: 8px 14px;
        font-size: 13px;
    }
    .filter-pill .count { display: none; }
    .featured-post-content { padding: 24px; }
    .featured-post-meta { flex-direction: column; align-items: flex-start; }
    .post-grid { grid-template-columns: 1fr; }
    .newsletter-card { padding: 32px 24px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn-primary { width: 100%; justify-content: center; }
}
