/* ==========================================================================
   VINTUSHTECH — CASE STUDY & PROJECT DETAIL EDITORIAL STYLES
   Modern Blog-Style Architecture: Rich Typography, Structured Callouts, High Contrast
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: #000000;
    transition: width 0.1s ease;
}

/* Base Section */
.project-detail-section {
    background-color: #ffffff;
    min-height: 100vh;
    padding: 130px 0 100px;
    color: #18181b;
}

.project-detail-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumbs */
.project-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
    font-size: 13px;
}

.crumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    background: #f4f4f5;
    color: #71717a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e4e4e7;
}

.crumb-pill:hover {
    color: #000000;
    border-color: #000000;
}

.crumb-pill.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.crumb-sep {
    color: #d4d4d8;
    font-size: 10px;
}

/* Editorial Header */
.project-editorial-header {
    margin-bottom: 50px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e4e4e7;
}

.header-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.status-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #f4f4f5;
    color: #18181b;
    border: 1px solid #e4e4e7;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.category-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    background: #ffffff;
    color: #71717a;
    border: 1px solid #e4e4e7;
}

.verified-case-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: #000000;
    color: #ffffff;
}

.verified-case-badge i {
    color: #22c55e;
}

.project-main-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #000000;
    margin: 0 0 14px;
}

.project-client-subline {
    font-size: 17px;
    color: #71717a;
    margin: 0 0 28px;
}

.project-client-subline strong {
    color: #000000;
}

/* Meta Strip */
.project-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
}

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

.author-avatar-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.author-meta-text {
    display: flex;
    flex-direction: column;
}

.author-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #000000;
}

.author-subtitle {
    font-size: 11.5px;
    color: #71717a;
}

.meta-sep-line {
    width: 1px;
    height: 30px;
    background: #e4e4e7;
}

.meta-timeline-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.meta-chip {
    font-size: 12.5px;
    color: #71717a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-action-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    color: #18181b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-meta-icon:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Grid Layout */
.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* Executive Summary Box */
.executive-summary-box {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-left: 4px solid #000000;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 45px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-quote-icon {
    font-size: 22px;
    color: #18181b;
}

.summary-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.summary-body {
    font-size: 15.5px;
    line-height: 1.8;
    color: #27272a;
}

.summary-body p {
    margin: 0 0 12px;
}

.summary-body p:last-child {
    margin-bottom: 0;
}

/* Hero Figure */
.project-hero-figure {
    margin: 0 0 50px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    background: #fafafa;
}

.project-hero-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.project-figure-caption {
    padding: 12px 20px;
    font-size: 12px;
    color: #71717a;
    border-top: 1px solid #f4f4f5;
    background: #ffffff;
}

/* Case Sections */
.case-section {
    margin-bottom: 50px;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-step-number {
    font-size: 14px;
    font-weight: 800;
    background: #000000;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
}

.section-label-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #71717a;
    text-transform: uppercase;
}

.section-title-wrap h2 {
    font-size: 22px;
    font-weight: 800;
    color: #000000;
    margin: 2px 0 0;
    letter-spacing: -0.5px;
}

.case-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 18px;
    padding: 30px;
    display: flex;
    gap: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon-accent {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.warning-accent {
    background: #fef3c7;
    color: #b45309;
}

.success-accent {
    background: #dcfce7;
    color: #15803d;
}

.impact-accent {
    background: #f4f4f5;
    color: #000000;
}

.card-body-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: #27272a;
    flex-grow: 1;
}

.card-body-text p {
    margin: 0 0 12px;
}

.card-body-text p:last-child {
    margin-bottom: 0;
}

/* Markdown formatting inside case study */
.card-body-text strong,
.summary-body strong {
    font-weight: 700;
    color: #000000;
}

.card-body-text table,
.summary-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.card-body-text th,
.summary-body th {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    padding: 10px 14px;
    font-weight: 700;
    text-align: left;
    font-size: 13.5px;
}

.card-body-text td,
.summary-body td {
    border: 1px solid #e4e4e7;
    padding: 10px 14px;
    font-size: 13.5px;
}

/* Gallery Grid */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item-figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    background: #fafafa;
}

.gallery-item-figure img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item-figure figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: #71717a;
    background: #ffffff;
    border-top: 1px solid #f4f4f5;
}

/* CTA Box */
.case-study-cta-box {
    background: #ffffff;
    color: #09090b;
    border: 1px solid #e4e4e7;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border-radius: 22px;
    padding: 45px 40px;
    margin-top: 60px;
}

.cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #71717a;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.case-study-cta-box h3 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #09090b;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.case-study-cta-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #52525b;
    max-width: 600px;
    margin: 0 0 28px;
}

.cta-actions-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-cta-black {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #09090b;
    color: #ffffff;
    padding: 13px 26px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.btn-cta-black:hover {
    background: #27272a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f5;
    color: #09090b;
    border: 1px solid #e4e4e7;
    padding: 13px 26px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-outline:hover {
    border-color: #09090b;
    background: #09090b;
    color: #ffffff;
}

/* Sidebar */
.project-sidebar-aside {
    position: relative;
}

.sidebar-sticky-box {
    position: sticky;
    top: 110px;
}

.specs-panel {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f4f4f5;
}

.panel-header i {
    font-size: 16px;
    color: #000000;
}

.panel-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.specs-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.spec-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #71717a;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 14px;
    color: #18181b;
}

.spec-value.highlight {
    color: #15803d;
    font-weight: 700;
}

.specs-tech-stack {
    padding-top: 16px;
    border-top: 1px solid #f4f4f5;
    margin-top: 18px;
    margin-bottom: 22px;
}

.tech-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tech-pill-badge {
    background: #f4f4f5;
    color: #18181b;
    border: 1px solid #e4e4e7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.btn-sidebar-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000000;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sidebar-primary:hover {
    background: #27272a;
    transform: translateY(-1px);
}

.btn-sidebar-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fafafa;
    color: #18181b;
    border: 1px solid #e4e4e7;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sidebar-secondary:hover {
    background: #f4f4f5;
    border-color: #000000;
}

/* Empty State */
.case-empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 580px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 44px;
    color: #d4d4d8;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-sticky-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .project-detail-section {
        padding: 100px 0 60px;
    }

    .project-meta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .meta-sep-line {
        display: none;
    }

    .meta-action-group {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .case-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .case-study-cta-box {
        padding: 32px 24px;
    }
}


/* Project Author Favicon Chip */
.author-avatar-chip.author-favicon-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    padding: 5px;
    background: #000000;
    border: 1px solid #27272a;
    box-sizing: border-box;
    display: inline-block;
}
