/**
 * TMU Single Blog Details Page Styles
 * Follows TMU Design System (Warm cream, deep navy, signature gold)
 */

/* -------------------------------------------------------------
 * Reading Progress Bar at Top of Page
 * ------------------------------------------------------------- */
.tmu-reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #df9724, #f59e0b);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* -------------------------------------------------------------
 * Main Wrapper & Layout
 * ------------------------------------------------------------- */
.tmu-single-blog-wrapper {
    background-color: var(--tmu-bg-warm, #f5f3ed);
    padding: 32px 0 80px 0;
    min-height: 80vh;
}

/* -------------------------------------------------------------
 * Breadcrumb Navigation
 * ------------------------------------------------------------- */
.tmu-blog-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 28px;
}

.tmu-blog-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tmu-blog-breadcrumbs a:hover {
    color: #072769;
}

.tmu-bc-sep {
    color: #cbd5e1;
    font-size: 12px;
}

.tmu-bc-current {
    color: #111827;
    font-weight: 600;
}

/* -------------------------------------------------------------
 * Post Header Section
 * ------------------------------------------------------------- */
.tmu-single-header {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto 36px auto;
    text-align: left;
}

.tmu-single-category-wrap {
    margin-bottom: 16px;
}

.tmu-single-category-pill {
    display: inline-flex;
    align-items: center;
    background-color: #eaf0fa;
    color: #072769;
    border: 1px solid #d1dff6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tmu-single-category-pill:hover {
    background-color: #072769;
    color: #ffffff;
    border-color: #072769;
}

.tmu-single-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #072769;
    margin: 0 0 24px 0;
}

@media (max-width: 768px) {
    .tmu-single-title {
        font-size: 32px;
    }
}

/* -------------------------------------------------------------
 * Meta Bar (Author, Date, Read Time, Share)
 * ------------------------------------------------------------- */
.tmu-single-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #e5e3dc;
    border-bottom: 1px solid #e5e3dc;
}

.tmu-single-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tmu-post-author-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tmu-author-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tmu-author-details {
    display: flex;
    flex-direction: column;
}

.tmu-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.tmu-author-role {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.tmu-meta-divider {
    color: #d1d5db;
    font-size: 12px;
}

.tmu-meta-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.tmu-meta-info-item svg {
    color: #9ca3af;
}

/* Share Quick Buttons */
.tmu-single-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmu-share-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tmu-share-btn-pill:hover {
    background: #fbf9f5;
    border-color: #072769;
    color: #072769;
}

.tmu-share-btn-pill.btn-copy-link {
    position: relative;
}

/* -------------------------------------------------------------
 * Featured Hero Media
 * ------------------------------------------------------------- */
.tmu-single-hero-media {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto 48px auto;
}

.tmu-hero-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 640px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #eee7dc;
    border: 1px solid #e5e3dc;
    box-shadow: 0 12px 32px -4px rgba(7, 39, 105, 0.06);
}

.tmu-hero-img-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tmu-hero-caption {
    font-size: 13px;
    color: #6b7280;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* -------------------------------------------------------------
 * Main Article Body & Typography
 * ------------------------------------------------------------- */
.tmu-single-body-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

/* Executive Summary Box (Post Excerpt) */
.tmu-single-summary-card {
    background: #fbf9f5;
    border: 1px solid #eee7dc;
    border-left: 4px solid #df9724;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.tmu-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #df9724;
    margin-bottom: 10px;
}

.tmu-summary-text {
    font-size: 17px;
    line-height: 1.6;
    color: #1f2937;
    font-weight: 500;
    margin: 0;
}

/* Article Core Prose Content */
.tmu-single-content {
    font-family: var(--tmu-font-body, 'Bricolage Grotesque', sans-serif);
    font-size: 17px;
    line-height: 1.75;
    color: #2d3748;
}

.tmu-single-content p {
    margin-bottom: 24px;
}

.tmu-single-content h2 {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 28px;
    font-weight: 800;
    color: #072769;
    letter-spacing: -0.02em;
    margin: 44px 0 18px 0;
    line-height: 1.25;
}

.tmu-single-content h3 {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #072769;
    margin: 36px 0 14px 0;
    line-height: 1.3;
}

.tmu-single-content ul,
.tmu-single-content ol {
    margin: 0 0 28px 24px;
    padding: 0;
}

.tmu-single-content li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.tmu-single-content blockquote {
    background: #fbf9f5;
    border-left: 4px solid #df9724;
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin: 32px 0;
    font-style: italic;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.6;
}

.tmu-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 28px 0;
}

/* -------------------------------------------------------------
 * Article Tags & Bottom Share
 * ------------------------------------------------------------- */
.tmu-single-footer-meta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e3dc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.tmu-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tmu-tag-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.tmu-tag-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tmu-tag-pill:hover {
    border-color: #072769;
    color: #072769;
}

/* -------------------------------------------------------------
 * Author Card Box
 * ------------------------------------------------------------- */
.tmu-author-bio-card {
    background: #ffffff;
    border: 1px solid #eee7dc;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
    .tmu-author-bio-card {
        flex-direction: column;
        text-align: center;
    }
}

.tmu-author-bio-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e3dc;
}

.tmu-author-bio-content {
    flex-grow: 1;
}

.tmu-author-bio-name {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #072769;
    margin: 0 0 6px 0;
}

.tmu-author-bio-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
}

/* -------------------------------------------------------------
 * Previous / Next Navigation
 * ------------------------------------------------------------- */
.tmu-post-pagination-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 640px) {
    .tmu-post-pagination-nav {
        grid-template-columns: 1fr;
    }
}

.tmu-nav-card {
    background: #ffffff;
    border: 1px solid #eee7dc;
    border-radius: 16px;
    padding: 20px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.25s ease;
}

.tmu-nav-card:hover {
    border-color: #072769;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 39, 105, 0.06);
}

.tmu-nav-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #df9724;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tmu-nav-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #072769;
    margin: 0;
    line-height: 1.3;
}

/* -------------------------------------------------------------
 * Related Articles Section (Bottom)
 * ------------------------------------------------------------- */
.tmu-related-articles-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e5e3dc;
}

.tmu-related-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.tmu-related-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 32px;
    font-weight: 800;
    color: #072769;
    margin: 0;
    letter-spacing: -0.02em;
}

.tmu-related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #072769;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.tmu-related-view-all:hover {
    gap: 12px;
    color: #df9724;
}

/* Toast Feedback for Copy Link */
.tmu-toast-message {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #072769;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.tmu-toast-message.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
