/* --------------------------------------------------------------
   NovoShop single post responsive system (mobile-first)
-------------------------------------------------------------- */

:root {
    --post-primary: #c79b3c;
    --post-primary-dark: #8c6b2d;
    --post-primary-soft: #e4c37f;
    --post-primary-ghost: #f6ead1;
    --post-primary-border: rgba(199, 155, 60, 0.18);
    --post-primary-muted: rgba(199, 155, 60, 0.08);
    --post-primary-glow: rgba(199, 155, 60, 0.4);
    --post-surface: #f7f4ef;
    --post-ink: #1f1b16;
    --post-ink-soft: #2c241c;
    --post-carbon: #443c32;
    --post-carbon-soft: #5c4f40;
}

.post-redesign-wrapper {
    background: #fff;
    padding: clamp(1.5rem, 3vw, 3rem) 0 4rem;
    overflow-x: hidden;
}

.post-redesign-wrapper *,
.post-redesign-wrapper *::before,
.post-redesign-wrapper *::after {
    box-sizing: border-box;
}

.post-hero .container,
.post-body,
.post-related-section .container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------
   Hero
-------------------------------------------------------------- */
.post-hero {
    position: relative;
    overflow: hidden;
    padding: 0 0 3rem;
    color: #fff;
}

.post-hero::before,
.post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

.post-hero::before {
    background-image:
        linear-gradient(120deg, rgba(10, 8, 6, 0.78), rgba(21, 17, 12, 0.45)),
        var(--post-hero, none);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.post-hero::after {
    background: radial-gradient(circle at top right, var(--post-primary-glow, rgba(199, 155, 60, 0.4)), transparent 45%);
}

.post-hero .container {
    position: relative;
    z-index: 1;
    padding-top: clamp(3.5rem, 12vw, 6rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

.post-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
}

.post-hero-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.post-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.post-hero-pill.primary {
    background: var(--post-primary-ghost, rgba(199, 155, 60, 0.25));
    color: #2a1f10;
}

.post-hero-pill.ghost {
    background: rgba(255, 255, 255, 0.08);
}

.post-hero-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--post-primary);
}

.post-hero-title {
    font-size: clamp(1.9rem, 6vw, 3.1rem);
    line-height: 1.2;
    margin: 0;
}

.post-hero-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.post-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.post-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-hero-meta i {
    color: var(--post-primary);
}

/* --------------------------------------------------------------
   Body layout
-------------------------------------------------------------- */
.post-body {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: -2rem;
}

.post-main-column,
.post-side-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.post-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.metric-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--post-primary-border);
    padding: 1.1rem 1.25rem;
    box-shadow: 0 18px 35px rgba(18, 15, 11, 0.08);
}

.metric-card.accent {
    background: linear-gradient(135deg, var(--post-ink), var(--post-ink-soft));
    color: #fff;
}

.metric-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.metric-card:not(.accent) .metric-label {
    color: var(--post-carbon);
}

.metric-value {
    margin-top: 0.45rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
}

.metric-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.metric-share a {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--post-primary-muted);
    color: var(--post-primary-dark);
    border: 1px solid var(--post-primary-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card.accent .metric-share a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.metric-share a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(18, 15, 11, 0.15);
}

/* --------------------------------------------------------------
   Content + comments
-------------------------------------------------------------- */
.post-content-card,
.post-comments-card {
    background: #fff;
    border-radius: 26px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--post-primary-border);
    box-shadow: 0 30px 60px rgba(18, 15, 11, 0.08);
}

.post-content-card .entry-content > *:first-child {
    margin-top: 0;
}

.post-content-card .entry-content > *:last-child {
    margin-bottom: 0;
}

.post-content-card .entry-content img,
.post-content-card .entry-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.post-content-card .entry-content h2,
.post-content-card .entry-content h3,
.post-content-card .entry-content h4 {
    position: relative;
    padding-right: 0.65rem;
}

.post-content-card .entry-content h2::before,
.post-content-card .entry-content h3::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.35em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--post-primary);
}

.page-links {
    margin-top: 2rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-links a,
.page-links span {
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--post-primary-muted);
}

.post-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.post-tags a {
    text-decoration: none;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--post-primary-muted);
    color: var(--post-primary-dark);
}

/* --------------------------------------------------------------
   Sidebar cards
-------------------------------------------------------------- */
.post-consult-card,
.post-side-card {
    border-radius: 22px;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--post-primary-border);
    box-shadow: 0 20px 40px rgba(18, 15, 11, 0.08);
    background: #fff;
}

.post-consult-card {
    background: linear-gradient(135deg, #13100d, #0b0907);
    color: rgba(255, 255, 255, 0.9);
}

.side-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.post-side-card .side-label {
    color: var(--post-carbon);
}

.post-consult-card h3 {
    margin: 0.8rem 0;
}

.post-consult-card ul {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-consult-card ul li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.post-consult-card ul i {
    color: var(--post-primary-soft);
}

.consult-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(115deg, var(--post-primary), var(--post-primary-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.side-categories {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1rem;
}

.side-categories a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--post-primary-ghost);
    text-decoration: none;
    color: var(--post-carbon);
    transition: transform 0.2s ease;
}

.side-categories a:hover {
    transform: translateX(-6px);
}

/* --------------------------------------------------------------
   Related posts
-------------------------------------------------------------- */
.post-related-section {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: 2rem;
}

.section-header p {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--post-primary-dark);
    margin-bottom: 0.35rem;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    color: var(--post-carbon);
}

.post-related-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.related-card {
    border-radius: 22px;
    border: 1px solid var(--post-primary-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 40px rgba(18, 15, 11, 0.08);
    display: flex;
    flex-direction: column;
}

.related-media {
    width: 100%;
    padding-top: 58%;
    background-size: cover;
    background-position: center;
}

.related-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--post-primary-dark);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

/* --------------------------------------------------------------
   Breakpoints
-------------------------------------------------------------- */
@media (min-width: 600px) {
    .post-hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .post-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 768px) {
    .post-hero {
        padding-bottom: 4rem;
    }

    .post-hero-pill-group {
        gap: 0.85rem;
    }

    .post-body {
        gap: 2rem;
    }

    .post-side-column {
        flex-direction: row;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .post-side-column > * {
        flex: 1 1 280px;
    }
}

@media (min-width: 1024px) {
    .post-body {
        display: grid;
        grid-template-columns: minmax(0, 1.9fr) minmax(0, 0.9fr);
        align-items: flex-start;
    }

    .post-side-column {
        position: sticky;
        top: 110px;
    }

    .post-metrics-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .post-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

