/* ============================================================
   MINIETECH PREMIUM SINGLE POST STYLES
   ============================================================ */

.post-page-wrap {
    padding: 3rem 0 5rem;
    background-color: var(--surface, #f9f9fb);
    color: var(--on-surface, #1a1c1d);
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 1. Breadcrumbs */
.post-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    margin-bottom: 2rem;
    font-weight: 500;
}

.post-breadcrumbs a {
    color: var(--on-surface-variant, #414755);
    text-decoration: none;
    transition: color 0.25s ease;
}

.post-breadcrumbs a:hover {
    color: var(--primary, #0058bc);
}

.post-breadcrumbs .breadcrumb-separator {
    color: var(--outline-variant, #c1c6d7);
    font-weight: 400;
}

.post-breadcrumbs .breadcrumb-current {
    color: var(--on-surface, #1a1c1d);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(300px, 60vw);
}

/* 2. Post Header */
.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.post-header-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category-tag {
    display: inline-block;
    background: rgba(0, 88, 188, 0.08);
    color: var(--primary, #0058bc);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    transition: all 0.25s ease;
}

.post-category-tag:hover {
    background: var(--primary, #0058bc);
    color: #ffffff;
}

/* Tag Color Variations */
.post-category-tag.cat-work,
.post-category-tag.cat-office {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}
.post-category-tag.cat-work:hover,
.post-category-tag.cat-office:hover {
    background: #4f46e5;
    color: #ffffff;
}

.post-category-tag.cat-travel {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}
.post-category-tag.cat-travel:hover {
    background: #0284c7;
    color: #ffffff;
}

.post-category-tag.cat-powerbanks,
.post-category-tag.cat-chargers {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}
.post-category-tag.cat-powerbanks:hover,
.post-category-tag.cat-chargers:hover {
    background: #4f46e5;
    color: #ffffff;
}

.post-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--on-surface, #1a1c1d);
    margin-bottom: 1.25rem;
}

.post-subtitle {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--on-surface-variant, #414755);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Post Meta Row */
.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    font-weight: 500;
}

.post-meta-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-meta-author-wrap img.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface-variant, #e2e2e4);
}

.post-author-name {
    font-weight: 700;
    color: var(--on-surface, #1a1c1d);
}

.post-meta-divider {
    color: var(--outline-variant, #c1c6d7);
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary, #0058bc);
}

/* 3. Featured Image Cover */
.post-featured-image-container {
    width: 100%;
    margin-bottom: 3.5rem;
}

.post-featured-image-frame {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    background-color: var(--surface-container-low, #f3f3f5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .post-featured-image-frame {
        aspect-ratio: 16 / 9;
    }
}

.post-featured-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.post-featured-image-caption {
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    font-style: italic;
    text-align: center;
    margin-top: 0.75rem;
}

/* 4. Layout Grid (Content & Share Bar) */
.post-layout-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .post-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Sticky Share Bar */
.post-share-sidebar {
    position: relative;
}

.post-share-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 991px) {
    .post-share-sticky {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--surface-variant, #e2e2e4);
    }
}

.post-share-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--on-surface-variant, #414755);
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .post-share-label {
        margin-bottom: 0;
        margin-right: 12px;
    }
}

.post-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-container-lowest, #ffffff);
    color: var(--on-surface-variant, #414755);
    border: 1px solid var(--surface-variant, #e2e2e4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.post-share-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.post-share-btn.share-twitter:hover {
    background: #000000;
    border-color: #000000;
}

.post-share-btn.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.post-share-btn.share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.post-share-btn.share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.post-share-btn.share-copylink:hover {
    background: var(--primary, #0058bc);
    border-color: var(--primary, #0058bc);
}

.post-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Tooltip message for Copy Link */
.post-share-btn.share-copylink .copied-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #1a1c1d;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.post-share-btn.share-copylink .copied-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1a1c1d transparent transparent transparent;
}

.post-share-btn.share-copylink.copied .copied-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 5. Editorial Typography for Content */
.post-content-wrap {
    min-width: 0;
}

.post-content-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-content-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.post-content-body img,
.post-content-body figure,
.post-content-body video,
.post-content-body iframe {
    max-width: 100% !important;
    height: auto !important;
}

.post-content-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.post-content-body pre {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: normal;
    white-space: pre;
}

.post-content-body p {
    margin-bottom: 1.75rem;
}

/* Dropcap */
.post-content-body > p:first-of-type::first-letter {
    font-family: 'Figtree', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-top: 0.15rem;
    margin-right: 0.75rem;
    color: var(--primary, #0058bc);
}

/* Headings styling */
.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    color: var(--on-surface, #1a1c1d);
    line-height: 1.25;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.post-content-body h2 {
    font-size: 1.85rem;
    border-bottom: 1px solid var(--surface-variant, #e2e2e4);
    padding-bottom: 0.5rem;
}

.post-content-body h3 {
    font-size: 1.5rem;
}

.post-content-body h4 {
    font-size: 1.25rem;
}

/* Blockquotes */
.post-content-body blockquote {
    position: relative;
    font-family: 'Figtree', sans-serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--primary, #0058bc);
    margin: 2.5rem 0;
    padding: 1rem 1.5rem 1rem 2rem;
    background: rgba(0, 88, 188, 0.03);
    border-left: 4px solid var(--primary, #0058bc);
    border-radius: 0 var(--radius-lg, 0.5rem) var(--radius-lg, 0.5rem) 0;
}

.post-content-body blockquote::before {
    content: "“";
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 4rem;
    font-family: 'Figtree', sans-serif;
    color: rgba(0, 88, 188, 0.1);
    line-height: 1;
}

.post-content-body blockquote cite {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface, #1a1c1d);
    margin-top: 0.75rem;
    font-style: normal;
}

/* Lists */
.post-content-body ul,
.post-content-body ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.post-content-body li {
    margin-bottom: 0.5rem;
}

.post-content-body ul {
    list-style-type: none;
}

.post-content-body ul li {
    position: relative;
    padding-left: 1.25rem;
}

.post-content-body ul li::before {
    content: "•";
    color: var(--primary, #0058bc);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

/* Tables */
.post-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.post-content-body th,
.post-content-body td {
    padding: 12px 16px;
    border: 1px solid var(--surface-variant, #e2e2e4);
    text-align: left;
}

.post-content-body th {
    background-color: var(--surface-container-low, #f3f3f5);
    font-weight: 700;
    color: var(--on-surface, #1a1c1d);
}

.post-content-body tr:nth-child(even) {
    background-color: rgba(243, 243, 245, 0.4);
}

/* Inline images / figures */
.post-content-body figure {
    margin: 2.5rem 0;
}

.post-content-body figure img {
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.post-content-body figure figcaption {
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

/* Link underline animations */
.post-content-body a {
    color: var(--primary, #0058bc);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 88, 188, 0.2);
    transition: all 0.25s ease;
}

.post-content-body a:hover {
    color: var(--primary-container, #0070eb);
    border-bottom-color: var(--primary-container, #0070eb);
    background: rgba(0, 112, 235, 0.04);
}

/* 6. Inline Newsletter Box */
.post-newsletter-box {
    margin: 3.5rem 0;
    padding: 3rem;
    border-radius: var(--radius-xl, 1rem);
    background: linear-gradient(135deg, #0058bc 0%, #002c5f 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 88, 188, 0.15);
    position: relative;
    overflow: hidden;
}

.post-newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.post-newsletter-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.post-newsletter-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.post-newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 10px;
}

@media (max-width: 576px) {
    .post-newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
}

.post-newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.post-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.post-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.post-newsletter-btn {
    background: #ffffff;
    color: var(--primary, #0058bc);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 1.8rem;
    border-radius: 12px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.post-newsletter-btn:hover {
    background: var(--surface-container-low, #f3f3f5);
    color: var(--primary-container, #0070eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* 7. Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 3.5rem 0 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-variant, #e2e2e4);
}

.post-tags-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--on-surface, #1a1c1d);
    margin-right: 8px;
}

.post-tags a {
    background: var(--surface-container-low, #f3f3f5);
    color: var(--on-surface-variant, #414755);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--surface-variant, #e2e2e4);
}

.post-tags a:hover {
    background: var(--primary, #0058bc);
    color: #ffffff;
    border-color: var(--primary, #0058bc);
}

/* 8. Author Biography Card */
.post-author-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 2.5rem;
    background: var(--surface-container-lowest, #ffffff);
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid var(--surface-variant, #e2e2e4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 4rem;
}

@media (max-width: 576px) {
    .post-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
}

.post-author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface-container-low, #f3f3f5);
    flex-shrink: 0;
}

.post-author-card-info {
    flex: 1;
}

.post-author-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary, #0058bc);
    margin-bottom: 4px;
}

.post-author-card-name {
    font-family: 'Figtree', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--on-surface, #1a1c1d);
    margin-bottom: 8px;
}

.post-author-card-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--on-surface-variant, #414755);
    margin-bottom: 1rem;
}

.post-author-card-socials {
    display: flex;
    gap: 12px;
}

@media (max-width: 576px) {
    .post-author-card-socials {
        justify-content: center;
    }
}

.post-author-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-container-low, #f3f3f5);
    color: var(--on-surface-variant, #414755);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.post-author-social-link:hover {
    background: var(--primary, #0058bc);
    color: #ffffff;
    transform: scale(1.05);
}

/* 9. Visual Post Navigation Cards */
.post-navigation-container {
    margin-bottom: 5rem;
    border-top: 1px solid var(--surface-variant, #e2e2e4);
    padding-top: 4rem;
}

.post-navigation-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--on-surface, #1a1c1d);
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.post-navigation-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .post-navigation-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.post-nav-card {
    position: relative;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background-color: #1a1c1d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: block;
}

@media (max-width: 768px) {
    .post-nav-card {
        aspect-ratio: 16 / 6;
    }
}

.post-nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.post-nav-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.post-nav-card:hover .post-nav-bg {
    transform: scale(1.05);
    opacity: 0.55;
}

.post-nav-direction {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-direction .material-symbols-outlined {
    font-size: 14px;
    font-weight: bold;
}

.post-nav-posttitle {
    font-family: 'Figtree', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.post-nav-card:hover .post-nav-posttitle {
    color: #ffffff;
}

/* 10. Related Posts Grid */
.post-related-section {
    background-color: var(--surface-container-lowest, #ffffff);
    padding: 5rem 0;
    border-top: 1px solid var(--surface-variant, #e2e2e4);
    border-bottom: 1px solid var(--surface-variant, #e2e2e4);
}

.post-related-header {
    margin-bottom: 3rem;
}

.post-related-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary, #0058bc);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-related-title {
    font-family: 'Figtree', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--on-surface, #1a1c1d);
    letter-spacing: -0.03em;
    margin: 0;
}

/* 11. Redesigned Premium Comments Section */
.post-comments-container {
    max-width: 750px;
    margin: 4rem auto 0;
}

.comments-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--on-surface, #1a1c1d);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

/* Threaded comments loop spacing */
.comment-list, .comment-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.comment-list ul {
    margin-left: 3rem; /* Indentation for replies */
    position: relative;
}

@media (max-width: 576px) {
    .comment-list ul {
        margin-left: 1.5rem;
    }
}

/* Vertical line visual guide for replies thread */
.comment-list ul::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 2rem;
    width: 2px;
    background: var(--surface-variant, #e2e2e4);
}

@media (max-width: 576px) {
    .comment-list ul::before {
        left: -0.75rem;
    }
}

.comment-body {
    padding: 1.75rem;
    border-radius: var(--radius-xl, 1rem);
    background: var(--surface-container-lowest, #ffffff);
    border: 1px solid var(--surface-variant, #e2e2e4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    margin-bottom: 1.75rem;
    position: relative;
    transition: border-color 0.25s ease;
}

.comment-body:hover {
    border-color: var(--outline-variant, #c1c6d7);
}

/* Comment Author Avatar */
.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author-info img.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface-variant, #e2e2e4);
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--on-surface, #1a1c1d);
}

.comment-author-name a {
    color: inherit;
    text-decoration: none;
}

.comment-author-name a:hover {
    color: var(--primary, #0058bc);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--on-surface-variant, #414755);
    font-weight: 500;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary, #0058bc);
}

/* Comment text styling */
.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Comment reply button styling */
.reply {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary, #0058bc);
    background: rgba(0, 88, 188, 0.06);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: var(--primary, #0058bc);
    color: #ffffff;
}

/* Moderation note */
.comment-awaiting-moderation {
    font-size: 0.85rem;
    color: var(--error, #ba1a1a);
    font-style: italic;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 500;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--surface-variant, #e2e2e4);
    margin-bottom: 2rem;
}

.comment-nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary, #0058bc);
}

.comment-nav-link:hover {
    color: var(--primary-container, #0070eb);
}

/* Comment Form Design */
.comment-respond {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--surface-container-lowest, #ffffff);
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid var(--surface-variant, #e2e2e4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

@media (max-width: 576px) {
    .comment-respond {
        padding: 1.75rem;
    }
}

.comment-reply-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--on-surface, #1a1c1d);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-reply-title #cancel-comment-reply-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--error, #ba1a1a);
    background: var(--error-container, #ffdad6);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.comment-reply-title #cancel-comment-reply-link:hover {
    background: var(--error, #ba1a1a);
    color: #ffffff;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-notes, .logged-in-as {
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    margin-bottom: 0.5rem;
}

.logged-in-as a {
    font-weight: 700;
    color: var(--primary, #0058bc);
}

/* Textarea / Input layout styling matching contact.css style */
.comment-form-comment {
    display: flex;
    flex-direction: column;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--on-surface, #1a1c1d);
    margin-bottom: 6px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    background-color: var(--surface-container-low, #f3f3f5);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    color: var(--on-surface, #1a1c1d);
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    background-color: var(--surface-container-lowest, #ffffff);
    border-color: var(--primary-container, #0070eb);
    box-shadow: 0 0 0 4px rgba(0, 112, 235, 0.1);
}

.comment-form-fields-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .comment-form-fields-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox save details */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    line-height: 1.4;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 4px;
    border: 1px solid var(--outline-variant, #c1c6d7);
    accent-color: var(--primary, #0058bc);
}

/* Submit Button Style */
.comment-form .form-submit {
    margin-top: 1rem;
    margin-bottom: 0;
}

.comment-form input[type="submit"] {
    background-color: var(--primary, #0058bc);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 88, 188, 0.15);
    width: auto;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--primary-container, #0070eb);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 88, 188, 0.25);
}

.comment-form input[type="submit"]:active {
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem !important;
    }
    .post-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    .post-meta-row {
        gap: 12px;
    }
    .post-featured-image-container {
        margin-bottom: 2rem;
    }
    .post-nav-card {
        aspect-ratio: auto !important;
        height: 150px !important;
    }
    .post-nav-overlay {
        padding: 1.25rem !important;
    }
    .post-nav-posttitle {
        font-size: 1.05rem !important;
    }
    .post-nav-direction {
        font-size: 0.65rem !important;
        margin-bottom: 4px;
    }
    /* Prevent code/table overflows in content */
    .post-content-body {
        font-size: 1.05rem;
    }
    .post-content-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    .post-content-body h3 {
        font-size: 1.3rem;
        margin-top: 1.75rem;
    }
    .post-content-body blockquote {
        font-size: 1.15rem;
        margin: 1.75rem 0;
        padding: 0.75rem 1rem 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.65rem !important;
    }
    .post-nav-card {
        height: 160px !important;
        aspect-ratio: auto !important;
    }
    .post-nav-overlay {
        padding: 0.85rem !important;
        gap: 4px;
    }
    .post-nav-direction {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }
    .post-nav-posttitle {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
    }
    /* Share buttons optimization */
    .post-share-sticky {
        gap: 8px !important;
    }
    .post-share-btn {
        width: 38px !important;
        height: 38px !important;
    }
    .post-share-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
}
