/* ===== BLOG PAGE & DETAIL — Light Editorial Design System ===== */

:root {
    --bg-blogs: #F5F3F0;
    --bg-card-blogs: #FFFFFF;
    --text-blogs: #1A1A1A;
    --text-sec-blogs: #555555;
    --text-muted-blogs: #888888;
    --accent-blogs: #1A1A1A;
    --accent-warm-blogs: #C4956A;
    --border-blogs: #E0DCD8;
    --font-h-blogs: 'Playfair Display', Georgia, serif;
    --font-b-blogs: 'DM Sans', sans-serif;
    --shadow-blogs: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-blogs-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
    --radius-blogs: 4px;
    --ease-blogs: cubic-bezier(0.16, 1, 0.3, 1);
}

/* HERO SECTION (LIST PAGE) */
.gothic-blog-hero {
    min-height: 55vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 140px 0 70px;
    background-color: var(--bg-blogs);
    border-bottom: 1px solid var(--border-blogs);
    z-index: 2;
}

.gothic-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.02);
}

.gothic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 243, 240, 0.85) 0%, rgba(245, 243, 240, 0.92) 100%);
}

.gothic-hero-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    width: 100%;
    position: relative;
    z-index: 3;
}

.gothic-top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.gothic-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-blogs);
    border-radius: var(--radius-blogs);
    padding: 10px 18px;
    width: 320px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gothic-search-wrap:focus-within {
    border-color: var(--accent-blogs);
    box-shadow: var(--shadow-blogs);
}

.search-icn {
    color: var(--text-muted-blogs);
    flex-shrink: 0;
}

.gothic-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-blogs);
    font-family: var(--font-b-blogs);
    font-size: 0.9rem;
    width: 100%;
}

.gothic-search-input::placeholder {
    color: var(--text-muted-blogs);
}

.gothic-hero-content {
    max-width: 780px;
}

.gothic-blog-title {
    font-family: var(--font-h-blogs);
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 700;
    color: var(--text-blogs);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gothic-blog-subtitle {
    font-family: var(--font-b-blogs);
    font-size: 1.15rem;
    color: var(--text-sec-blogs);
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 400;
}

.gothic-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-blogs);
    color: #FFFFFF;
    border-radius: var(--radius-blogs);
    font-family: var(--font-b-blogs);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.35s var(--ease-blogs);
}

.gothic-explore-btn:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* BLOG LIST GRID */
.gothic-grid-section {
    padding: 90px 0 110px;
    background-color: var(--bg-blogs);
}

.gothic-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 36px;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.gothic-card {
    background: var(--bg-card-blogs);
    border: 1px solid var(--border-blogs);
    border-radius: var(--radius-blogs);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s var(--ease-blogs);
}

.gothic-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-blogs-hover);
}

.gothic-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.gothic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    transition: transform 0.6s var(--ease-blogs);
}

.gothic-card:hover .gothic-card-image img {
    transform: scale(1.04);
}

.gothic-card-body {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gothic-card-title {
    font-family: var(--font-h-blogs);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-blogs);
    margin-bottom: 14px;
    line-height: 1.3;
}

.gothic-card-title a {
    color: var(--text-blogs);
    text-decoration: none;
    transition: color 0.3s ease;
}

.gothic-card-title a:hover {
    color: var(--accent-warm-blogs);
}

.gothic-card-excerpt {
    color: var(--text-sec-blogs);
    font-family: var(--font-b-blogs);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 28px;
    flex-grow: 1;
}

.gothic-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-blogs);
    padding-top: 20px;
    margin-top: auto;
}

.meta-date {
    font-family: var(--font-b-blogs);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted-blogs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.card-arrow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-b-blogs);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-blogs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card-arrow-btn:hover {
    color: var(--accent-warm-blogs);
    transform: translateX(3px);
}

/* ==========================================================================
   BLOG DETAIL PAGE — Clean Editorial 3-Column Layout (Matching Reference)
   ========================================================================== */

.editorial-blog-detail-wrapper {
    background-color: #FFFFFF;
    color: #1A1A1A;
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 100px;
    font-family: var(--font-b-blogs);
}

/* Post Centered Hero Header */
.editorial-post-header {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.editorial-post-title {
    font-family: var(--font-h-blogs);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.editorial-post-meta {
    font-family: var(--font-b-blogs);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777777;
    line-height: 1.8;
}

.editorial-header-divider {
    width: 100%;
    max-width: 1180px;
    height: 1px;
    background: #EAE7E2;
    margin: 35px auto 40px;
}

/* Container & 3-Column Grid */
.editorial-detail-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
}

.editorial-3col-grid {
    display: grid;
    grid-template-columns: 210px 1fr 210px;
    gap: 48px;
    align-items: start;
}

/* --- LEFT SIDEBAR (ABOUT ME & SOCIALS) --- */
.editorial-left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-title {
    font-family: var(--font-h-blogs);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.author-photo-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #EAE7E2;
}

.sidebar-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-bio-text {
    font-family: var(--font-b-blogs);
    font-size: 0.72rem;
    line-height: 1.65;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-sub-title {
    font-family: var(--font-b-blogs);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.sidebar-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-social-links a {
    color: #555555;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-social-links a:hover {
    color: var(--accent-warm-blogs);
}

/* --- CENTER MAIN CONTENT (ARTICLE) --- */
.editorial-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-cover-wrap {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.article-cover-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article Prose Typography */
.article-body-prose {
    font-family: var(--font-b-blogs);
    font-size: 0.98rem;
    line-height: 1.85;
    color: #2B2B2B;
}

.article-body-prose p {
    margin-bottom: 24px;
    color: #2B2B2B;
    font-size: 0.98rem;
    line-height: 1.85;
}

.article-body-prose h2,
.article-body-prose h3,
.article-body-prose h4 {
    font-family: var(--font-h-blogs);
    font-weight: 700;
    color: #1A1A1A;
    margin: 36px 0 16px;
    line-height: 1.25;
}

.article-body-prose h2 { font-size: 1.8rem; }
.article-body-prose h3 { font-size: 1.45rem; }
.article-body-prose h4 { font-size: 1.2rem; }

.article-body-prose blockquote {
    border-left: 2px solid var(--accent-warm-blogs);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body-prose ul,
.article-body-prose ol {
    margin: 0 0 24px 24px;
}

.article-body-prose li {
    margin-bottom: 8px;
    color: #2B2B2B;
}

.article-body-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.88rem;
}

.article-body-prose table th,
.article-body-prose table td {
    padding: 10px 14px;
    border: 1px solid #EAE7E2;
    text-align: left;
}

.article-body-prose table th {
    background: #F9F8F6;
    font-weight: 700;
}

/* Share This Bar */
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #EAE7E2;
    border-bottom: 1px solid #EAE7E2;
    margin-top: 20px;
}

.share-label {
    font-family: var(--font-b-blogs);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #1A1A1A;
}

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

.share-pill-btn {
    font-family: var(--font-b-blogs);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #DCD8D2;
    color: #444444;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.share-pill-btn:hover {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

/* Author Info Box */
.article-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #F9F8F6;
    border-radius: 2px;
    margin-top: 10px;
}

.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #EAE7E2;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-name {
    font-family: var(--font-h-blogs);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.author-card-bio {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #666666;
}

/* Related Posts */
.related-posts-section {
    margin-top: 20px;
}

.related-section-title {
    font-family: var(--font-h-blogs);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-post-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 2px;
}

.related-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-img-wrap img {
    transform: scale(1.05);
}

.related-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: background 0.3s ease;
}

.related-post-card:hover .related-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.related-title {
    font-family: var(--font-b-blogs);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1.4;
}

/* Comments Section */
.editorial-comments-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #EAE7E2;
}

.comments-count-title {
    font-family: var(--font-h-blogs);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 24px;
}

.comments-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0EEEB;
}

.comment-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1A1A1A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-b-blogs);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.comment-body-content {
    flex-grow: 1;
}

.comment-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author-name {
    font-family: var(--font-b-blogs);
    font-size: 0.88rem;
    font-weight: 700;
    color: #1A1A1A;
}

.comment-date-text {
    font-size: 0.75rem;
    color: #888888;
}

.comment-paragraph {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #444444;
}

/* Comment Form */
.comment-form-card {
    background: #F9F8F6;
    padding: 30px;
    border-radius: 2px;
}

.leave-comment-title {
    font-family: var(--font-h-blogs);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.editorial-comment-form .form-group-item {
    margin-bottom: 18px;
}

.field-label-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555555;
    margin-bottom: 6px;
}

.field-label-text .req { color: #C4956A; }

.editorial-input {
    width: 100%;
    padding: 11px 14px;
    background: #FFFFFF;
    border: 1px solid #DCD8D2;
    border-radius: 2px;
    font-family: var(--font-b-blogs);
    font-size: 0.9rem;
    color: #1A1A1A;
    outline: none;
    transition: border-color 0.3s ease;
}

.editorial-input:focus {
    border-color: #1A1A1A;
}

.editorial-textarea {
    min-height: 110px;
    resize: vertical;
}

.editorial-submit-btn {
    padding: 12px 28px;
    background: #1A1A1A;
    color: #FFFFFF;
    border: none;
    border-radius: 2px;
    font-family: var(--font-b-blogs);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.editorial-submit-btn:hover {
    background: #333333;
}

/* --- RIGHT SIDEBAR (RECENT POSTS & CATEGORIES) --- */
.editorial-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recent-post-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-cat-label {
    font-family: var(--font-b-blogs);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #888888;
}

.recent-post-link {
    font-family: var(--font-h-blogs);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A1A;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.recent-post-link:hover {
    color: var(--accent-warm-blogs);
}

.categories-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.categories-archive-list a {
    font-family: var(--font-b-blogs);
    font-size: 0.82rem;
    color: #555555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-archive-list a:hover {
    color: #1A1A1A;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1080px) {
    .editorial-3col-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .editorial-left-sidebar,
    .editorial-right-sidebar {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .gothic-blog-hero {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .gothic-top-bar {
        justify-content: stretch;
        margin-bottom: 24px;
    }

    .gothic-search-wrap {
        width: 100%;
    }

    .gothic-blog-title {
        font-size: 2.6rem;
    }

    .editorial-post-title {
        font-size: 2.2rem;
    }

    .gothic-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
