/* ═══════════════════════════════════════════
   BLOGPOST PAGE STYLES
   ═══════════════════════════════════════════ */

.post-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 140px 30px 100px; /* Increased top padding for fixed header */
}

body.blog-page {
    background-color: var(--bg-color) !important;
}

/* ── Centered Logo Navbar ── */
.header--blogpost {
    background-color: var(--bg-color); /* Matches theme background */
    border-bottom: 2px solid var(--text-color);
}

.header--blogpost .header-inner {
    position: relative;
}

.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.nav-logo--visible {
    height: 35px;
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ── Navbar Button Overrides ── */
.blog-page .nav-btn.albert-btn {
    background-color: var(--albert-btn-bg) !important;
}

.blog-page .nav-btn:hover,
.blog-page .nav-btn.active {
    color: var(--bg-color) !important;
    background-color: var(--text-color) !important;
}


/* ── Back link ── */
.post-back {
    margin-bottom: 40px;
}

.back-link {
    font-family: var(--font-heading);
    font-size: 1.067rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 1;
}

/* ── Article header ── */
.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.post-date {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
}

.post-tag {
    font-family: var(--font-heading);
    font-size: 0.933rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1.5px solid var(--text-color);
    padding: 3px 10px;
    border-radius: 20px;
}

.post-reading {
    font-family: var(--font-heading);
    font-size: 1rem;
    opacity: 0.85;
    margin-left: auto;
}

.post-title {
    font-family: var(--font-heading);
    font-size: clamp(2.133rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
}

.post-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.65;
    margin: 0 0 24px;
}

.post-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1.5px solid var(--text-color);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.067rem;
}

.post-author-label {
    font-weight: 700;
    opacity: 0.85;
}

.post-author-name {
    font-weight: 500;
}

.post-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-keyword {
    font-family: var(--font-heading);
    font-size: 0.867rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.85;
    border: 1px solid currentColor;
    padding: 2px 9px;
    border-radius: 20px;
}

/* ── Hero image ── */
.post-hero-image {
    margin-bottom: 50px;
    border: 1.5px solid var(--text-color);
    overflow: hidden;
}

.post-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.post-hero-image:hover .post-hero-img {
    transform: scale(1.02);
}

/* ── Article body ── */
.post-body {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 60px;
}

.post-lead {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 36px;
    opacity: 0.85;
}

.post-body h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text-color);
    opacity: 0.6;
}

.post-body p {
    margin: 0 0 20px;
    opacity: 0.8;
}

.post-quote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 3px solid var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.75;
}

/* ── Section divider ── */
.post-divider {
    height: 1.5px;
    background: var(--text-color);
    opacity: 0.15;
    margin: 60px 0;
}

/* ── Section heading shared ── */
.section-heading {
    font-family: var(--font-heading);
    font-size: 1.133rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 32px;
}

/* ── Comments ── */
.post-comments {
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--text-color);
    opacity: 0.85;
}

.comment:first-child {
    border-top: 1px solid var(--text-color);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-family: var(--font-heading);
    font-size: 1.067rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.comment-date {
    font-family: var(--font-heading);
    font-size: 0.933rem;
    opacity: 0.85;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* New comment animation */
.comment--new {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.comment--visible {
    opacity: 0.85;
    transform: translateY(0);
}

/* Comment form */
.comment-form-heading {
    font-family: var(--font-heading);
    font-size: 1.067rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin: 0 0 24px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.comment-field label {
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.field-note {
    font-weight: 400;
    opacity: 0.85;
}

.comment-field input,
.comment-field textarea {
    background: transparent;
    border: 1.5px solid var(--text-color);
    color: var(--text-color);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease;
    border-radius: 0;
    opacity: 0.9;
}

.comment-field input:focus,
.comment-field textarea:focus {
    border-color: var(--text-color);
    opacity: 1;
}

.comment-field input::placeholder,
.comment-field textarea::placeholder {
    opacity: 0.6;
}

.comment-submit {
    font-family: var(--font-heading);
    font-size: 1.067rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.comment-submit:hover {
    opacity: 0.8;
}

.comment-submit .arrow {
    transition: transform 0.2s ease;
}

.comment-submit:hover .arrow {
    transform: translateX(4px);
}

/* ── Related articles ── */
.post-related {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.related-card {
    border: 1.5px solid var(--text-color);
    margin-right: -1.5px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: rgba(0,0,0,0.03);
}

[data-theme="dark"] .related-card:hover {
    background: rgba(255,255,255,0.04);
}

.related-image-wrapper {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

.related-card:hover .related-image {
    transform: scale(1.02);
}

.related-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.related-date {
    font-family: var(--font-heading);
    font-size: 0.867rem;
    opacity: 0.85;
}

.related-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid var(--text-color);
    padding: 2px 8px;
    border-radius: 20px;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
}

.related-excerpt {
    font-size: 1.067rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    flex-grow: 1;
}

/* ── Related overview card ── */
.related-card--overview {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.01);
}

.related-card--overview .related-info {
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.related-card--overview .related-tag {
    margin-bottom: 16px;
}

.related-card--overview .related-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.related-card--overview .related-excerpt {
    font-size: 0.933rem;
    margin-bottom: 16px;
    flex-grow: 0;
}

.related-card--overview .overview-arrow {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.related-card--overview:hover .overview-arrow {
    transform: translateX(6px);
}

[data-theme="dark"] .related-card--overview {
    background: rgba(255,255,255,0.01);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-card {
        margin-right: 0;
        margin-bottom: -1.5px;
    }
}



