/* ==========================================================================
   Digital Concierge — Post Component Styles
   ========================================================================== */

/* ---------- Stats Row ---------- */
.pcm-stats-row {
    display: flex;
    flex-wrap: wrap;
    margin: 40px -20px;
    padding: 0;
    border-top: 1px solid #dcd7ca;
    border-bottom: 1px solid #dcd7ca;
    background: rgba(166,145,98,0.03);
}

.pcm-stats-row .stat-item {
    flex: 1 1 50%;
    min-width: 140px;
    text-align: center;
    padding: 32px 16px;
    border-left: none;
}

.pcm-stats-row .stat-item + .stat-item {
    border-left: 1px solid #dcd7ca;
}

.pcm-stats-row .stat-number {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #a69162;
    margin-bottom: 6px;
    line-height: 1;
}

.pcm-stats-row .stat-label {
    font-family: franklin-gothic-compressed, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .pcm-stats-row {
        margin: 32px -20px;
    }
    .pcm-stats-row .stat-item {
        flex: 1 1 50%;
        padding: 24px 12px;
    }
    .pcm-stats-row .stat-item:nth-child(n+3) {
        border-top: 1px solid #dcd7ca;
    }
    .pcm-stats-row .stat-item:nth-child(odd) {
        border-left: none;
    }
    .pcm-stats-row .stat-number {
        font-size: 30px;
    }
    .pcm-stats-row .stat-label {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .pcm-stats-row {
        flex-wrap: nowrap;
        margin: 48px -40px;
    }
    .pcm-stats-row .stat-item {
        flex: 1;
        padding: 36px 20px;
    }
    .pcm-stats-row .stat-number {
        font-size: 42px;
    }
    .pcm-stats-row .stat-label {
        font-size: 12px;
    }
}

@media (min-width: 1100px) {
    .pcm-stats-row {
        margin: 48px calc(-50vw + 390px);
        padding: 0 calc(50vw - 390px);
    }
    .pcm-stats-row .stat-number {
        font-size: 48px;
    }
}

/* ---------- Bar Chart ---------- */
.pcm-chart-wrap {
    margin: 40px 0;
    padding: 28px 24px 20px;
    background: #fff;
    border: 1px solid #dcd7ca;
}

.pcm-chart-title {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.pcm-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pcm-bar-row:last-of-type {
    margin-bottom: 0;
}

.pcm-bar-label {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    min-width: 200px;
    flex-shrink: 0;
    line-height: 1.3;
}

.pcm-bar-track {
    flex: 1;
    background: #eee;
    height: 28px;
    border-radius: 2px;
    overflow: hidden;
}

.pcm-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    border-radius: 2px 0 0 2px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcm-bar-fill.pcm-bar-primary {
    background: #a69162;
}

.pcm-bar-fill.pcm-bar-secondary {
    background: #c4b896;
}

.pcm-bar-value {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.pcm-chart-source {
    font-family: freight-text-pro, Georgia, serif;
    font-style: italic;
    font-size: 12px;
    color: #999;
    margin-top: 14px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .pcm-chart-wrap {
        margin: 32px -20px;
        padding: 24px 20px 16px;
    }
    .pcm-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 16px;
    }
    .pcm-bar-label {
        min-width: auto;
        font-size: 13px;
    }
    .pcm-bar-track {
        width: 100%;
    }
}

/* ---------- Numbered List ---------- */
.pcm-numbered-list {
    margin: 40px 0;
    counter-reset: pcm-step;
}

.pcm-numbered-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid #eee;
    counter-increment: pcm-step;
}

.pcm-numbered-item:first-child {
    border-top: 1px solid #eee;
}

.pcm-numbered-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #a69162;
    color: #fff;
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pcm-numbered-content h4 {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.25;
}

.pcm-numbered-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    margin: 0;
}

@media (max-width: 767px) {
    .pcm-numbered-item {
        gap: 14px;
        padding: 22px 0;
    }
    .pcm-numbered-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 16px;
    }
    .pcm-numbered-content h4 {
        font-size: 18px;
    }
    .pcm-numbered-content p {
        font-size: 15px;
    }
}

/* ---------- Callout Box ---------- */
.pcm-callout-warning {
    margin: 40px 0;
    padding: 28px 24px;
    background: #1F3C50;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pcm-callout-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #a69162;
}

.pcm-callout-warning h3 {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.pcm-callout-warning p {
    font-family: freight-text-pro, Georgia, serif;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.pcm-callout-warning strong {
    color: #fff;
}

@media (max-width: 767px) {
    .pcm-callout-warning {
        margin: 32px -20px;
        padding: 24px 20px 24px 24px;
    }
}

/* ---------- Scroll Reveal ---------- */
.pcm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcm-reveal.pcm-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in stats rows */
.pcm-stats-row .stat-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcm-stats-row.pcm-visible .stat-item:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.pcm-stats-row.pcm-visible .stat-item:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.pcm-stats-row.pcm-visible .stat-item:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.pcm-stats-row.pcm-visible .stat-item:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }

/* Stagger numbered items */
.pcm-numbered-item {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcm-numbered-list.pcm-visible .pcm-numbered-item:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateX(0); }
.pcm-numbered-list.pcm-visible .pcm-numbered-item:nth-child(2) { transition-delay: 120ms; opacity: 1; transform: translateX(0); }
.pcm-numbered-list.pcm-visible .pcm-numbered-item:nth-child(3) { transition-delay: 240ms; opacity: 1; transform: translateX(0); }
.pcm-numbered-list.pcm-visible .pcm-numbered-item:nth-child(4) { transition-delay: 360ms; opacity: 1; transform: translateX(0); }
.pcm-numbered-list.pcm-visible .pcm-numbered-item:nth-child(5) { transition-delay: 480ms; opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .pcm-reveal,
    .pcm-stats-row .stat-item,
    .pcm-numbered-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pcm-bar-fill {
        transition: none !important;
    }
}

/* ---------- Details/Sources ---------- */
.post-body details {
    margin: 28px 0;
    border: 1px solid #dcd7ca;
}

.post-body details summary {
    font-family: franklin-gothic-condensed, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    cursor: pointer;
    color: #1a1a1a;
    background: rgba(166,145,98,0.04);
    transition: background 0.2s;
}

.post-body details summary:hover {
    background: rgba(166,145,98,0.08);
}

.post-body details[open] summary {
    border-bottom: 1px solid #dcd7ca;
}

.post-body details ul {
    padding: 18px 18px 18px 40px;
    margin: 0;
    list-style: none;
}

.post-body details li {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    padding-left: 0;
    margin-bottom: 8px;
}

.post-body details li::before {
    display: none;
}
