/* ============================================================
   GoalLord Single Post  –  Frontend Styles
   ============================================================ */

.goallord-single-post {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
    line-height: 1.7;
}
.goallord-single-post *, .goallord-single-post *::before, .goallord-single-post *::after {
    box-sizing: inherit;
}

.glsp-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Breadcrumbs ──────────────────────────────────── */
.glsp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
}

.glsp-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.glsp-breadcrumb a:hover {
    color: #5a8a7a;
}

.glsp-breadcrumb-sep {
    color: #ccc;
    font-size: 14px;
}

.glsp-breadcrumb-current {
    color: #666;
}

/* ── Category Tags ────────────────────────────────── */
.glsp-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.glsp-category-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    background-color: #5a8a7a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.5;
    transition: opacity 0.2s ease;
}

.glsp-category-tag:hover {
    opacity: 0.85;
    color: #ffffff;
}

/* ── Title ────────────────────────────────────────── */
.glsp-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* ── Meta ─────────────────────────────────────────── */
.glsp-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.glsp-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.glsp-meta svg {
    flex-shrink: 0;
    color: #aaa;
}

/* ── Audio Player ─────────────────────────────────── */
.glsp-audio-card {
    background-color: #f4f7f6;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.glsp-audio-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.glsp-audio-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background-color: #5a8a7a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glsp-audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.glsp-audio-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.glsp-audio-subtitle {
    font-size: 13px;
    color: #888;
    line-height: 1.3;
}

.glsp-audio-play {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: #5a8a7a;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.glsp-audio-play:hover {
    transform: scale(1.08);
}

.glsp-audio-play svg {
    display: block;
}

.glsp-audio-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glsp-audio-current,
.glsp-audio-duration {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    min-width: 38px;
    font-variant-numeric: tabular-nums;
}

.glsp-audio-progress-track {
    flex: 1;
    height: 4px;
    background-color: #d9e2df;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glsp-audio-progress-fill {
    height: 100%;
    width: 0;
    background-color: #5a8a7a;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* ── Content / Drop Cap ───────────────────────────── */
.glsp-content {
    font-size: 17px;
    line-height: 1.8;
    color: #3d3d3d;
    margin-bottom: 40px;
}

.glsp-content p {
    margin: 0 0 1.5em 0;
}

.glsp-content a {
    color: #5a8a7a;
    text-decoration: underline;
}

/* Drop cap on first paragraph */
.glsp-has-drop-cap > p:first-of-type::first-letter {
    float: left;
    font-size: 4.2em;
    line-height: 0.8;
    font-weight: 700;
    color: #5a8a7a;
    margin: 0.05em 0.12em 0 0;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* ── Blockquote ───────────────────────────────────── */
.glsp-content blockquote {
    border-left: 4px solid #5a8a7a;
    margin: 2em 0;
    padding: 1em 0 1em 1.5em;
    font-size: 1.2em;
    font-style: italic;
    font-weight: 600;
    color: #2d2d2d;
    line-height: 1.6;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.glsp-content blockquote p {
    margin: 0 0 0.5em 0;
}

.glsp-content blockquote p:last-child {
    margin-bottom: 0;
}

.glsp-content blockquote cite,
.glsp-content blockquote footer {
    display: block;
    margin-top: 0.8em;
    font-size: 0.75em;
    font-style: normal;
    font-weight: 600;
    color: #5a8a7a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Featured Image ───────────────────────────────── */
.glsp-featured-image {
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
}

.glsp-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.glsp-featured-image figcaption {
    text-align: center;
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-top: 12px;
    line-height: 1.4;
}

/* ── Tags ─────────────────────────────────────────── */
.glsp-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-top: 10px;
}

.glsp-tags-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.glsp-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glsp-tag-pill {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid #5a8a7a;
    border-radius: 50px;
    color: #5a8a7a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.glsp-tag-pill:hover {
    background-color: #5a8a7a;
    color: #ffffff;
}

/* ── Engagement Bar ───────────────────────────────── */
.glsp-engagement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 16px 24px;
    margin-bottom: 0;
}

.glsp-engagement-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.glsp-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s ease;
}

.glsp-like-btn svg {
    transition: all 0.2s ease;
    color: #666;
}

.glsp-like-btn:hover svg {
    color: #e74c5e;
}

.glsp-like-btn.liked svg {
    fill: #e74c5e;
    color: #e74c5e;
}

.glsp-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

.glsp-comment-count svg {
    color: #666;
}

.glsp-engagement-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glsp-share-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.glsp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0;
}

.glsp-share-btn:hover {
    border-color: #5a8a7a;
    color: #5a8a7a;
}

.glsp-share-btn svg {
    display: block;
}

/* ── Related Posts ─────────────────────────────────── */
.glsp-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.glsp-related-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px 0;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.glsp-related-grid {
    display: grid;
    gap: 24px;
}

.glsp-related-cols-1 { grid-template-columns: 1fr; }
.glsp-related-cols-2 { grid-template-columns: repeat(2, 1fr); }
.glsp-related-cols-3 { grid-template-columns: repeat(3, 1fr); }

.glsp-related-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glsp-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.glsp-related-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.glsp-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.glsp-related-card:hover .glsp-related-card-image img {
    transform: scale(1.05);
}

.glsp-related-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.glsp-related-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.glsp-related-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 3px;
    background-color: #5a8a7a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.5;
}

.glsp-related-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* ── Copy link tooltip ────────────────────────────── */
.glsp-share-link.copied {
    border-color: #5a8a7a;
    color: #5a8a7a;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .glsp-title {
        font-size: 30px;
    }

    .glsp-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .glsp-audio-card {
        padding: 16px 18px;
    }

    .glsp-content {
        font-size: 16px;
    }

    .glsp-has-drop-cap > p:first-of-type::first-letter {
        font-size: 3.2em;
    }

    .glsp-engagement {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }

    .glsp-engagement-right {
        align-self: flex-end;
    }

    .glsp-related-cols-2,
    .glsp-related-cols-3 {
        grid-template-columns: 1fr;
    }

    .glsp-related-heading {
        font-size: 22px;
    }

    .glsp-content blockquote {
        font-size: 1.05em;
        padding-left: 1em;
    }
}

@media (max-width: 480px) {
    .glsp-title {
        font-size: 26px;
    }

    .glsp-audio-top {
        flex-wrap: wrap;
    }

    .glsp-breadcrumb {
        gap: 5px;
        font-size: 11px;
    }
}
