/* --------------------------------------------------------------
   Peloton‑style Blog Post – CSS
   --------------------------------------------------------------
   Scope: .gp-post-template (the <main> wrapper in single‑post.php)
   -------------------------------------------------------------- */

/* 1️⃣ Base typography – Tailwind’s @tailwindcss/typography (prose) */
.gp-post-template .prose {
    /* Use the same font stack as Peloton (system + Inter) */
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #1f2937;
    /* Tailwind gray‑800 */
    line-height: 1.75;
}

/* Headings – match Peloton’s size, weight and spacing */
.gp-post-template .prose h1 {
    font-size: 2.5rem;
    /* 40 px */
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.gp-post-template .prose h2 {
    font-size: 2rem;
    /* 32 px */
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.gp-post-template .prose h3 {
    font-size: 1.75rem;
    /* 28 px */
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.gp-post-template .prose h4,
.gp-post-template .prose h5,
.gp-post-template .prose h6 {
    font-size: 1.5rem;
    /* 24 px */
    font-weight: 600;
}

/* Paragraphs – larger line‑height and subtle gray */
.gp-post-template .prose p {
    font-size: 1.125rem;
    /* 18 px */
    margin-bottom: 1.25rem;
    color: #4b5563;
    /* Tailwind gray‑600 */
}

/* Links – Peloton’s blue with underline on hover */
.gp-post-template .prose a {
    color: #3b62ff;
    /* brand primary */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gp-post-template .prose a:hover {
    color: #2a4fe0;
}

/* Blockquote – dark background, rounded, with left‑border accent */
.gp-post-template .prose blockquote {
    background: #f9fafb;
    /* very light gray */
    border-left: 4px solid #3b62ff;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: normal;
    color: #1f2937;
    border-radius: .5rem;
}

/* Images – full‑width, subtle shadow, rounded corners */
.gp-post-template .prose img {
    width: 100%;
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    margin: 2rem 0;
}

/* Figure captions – centered, small gray text */
.gp-post-template .prose figure figcaption {
    font-size: .875rem;
    /* 14 px */
    color: #6b7280;
    /* Tailwind gray‑500 */
    text-align: center;
    margin-top: .5rem;
}

/* Lists – tighter spacing, custom bullet */
.gp-post-template .prose ul,
.gp-post-template .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.gp-post-template .prose ul li::marker {
    color: #3b62ff;
}

.gp-post-template .prose ol li::marker {
    color: #3b62ff;
    font-weight: 600;
}

/* Horizontal rule – thin, light gray */
.gp-post-template .prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    /* Tailwind gray‑200 */
    margin: 2.5rem 0;
}

/* Tables – clean, minimal borders, zebra striping */
.gp-post-template .prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.gp-post-template .prose th,
.gp-post-template .prose td {
    padding: .75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.gp-post-template .prose thead {
    background: #f3f4f6;
    /* gray‑100 */
    font-weight: 600;
}

.gp-post-template .prose tbody tr:nth-child(even) {
    background: #fafafa;
}

/* 2️⃣ Hero overlay – keep the dark gradient from the template */
.gp-post-template .hero-section {
    position: relative;
    overflow: hidden;
}

.gp-post-template .hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3) 40%, transparent);
}

/* 3️⃣ Meta bar – icons and text alignment */
.gp-post-template .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: .875rem;
    color: #6b7280;
}

.gp-post-template .post-meta img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
}

.gp-post-template .post-meta a {
    color: inherit;
    transition: color .2s;
}

.gp-post-template .post-meta a:hover {
    color: #3b62ff;
}

/* 4️⃣ Social share buttons – circular, subtle hover */
.gp-post-template .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #4b5563;
    transition: background .2s, color .2s;
}

.gp-post-template .share-btn:hover {
    background: #e5e7eb;
    color: #3b62ff;
}

/* 5️⃣ Category / Tag badges – small caps, rounded */
.gp-post-template .badge {
    display: inline-block;
    padding: .125rem .5rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: .375rem;
    background: #f3f4f6;
    color: #374151;
    margin-right: .25rem;
}

.gp-post-template .badge:hover {
    background: #e5e7eb;
}

/* --------------------------------------------------------------
   END – Peloton‑style Blog Post CSS
   -------------------------------------------------------------- */