/* Styles for single.php, moved out of the template's inline <style> block unchanged (2026-11-10).
   Enqueued from single.php after every other stylesheet, so the cascade order is the same as before. */

/* Blog Post Specific Styles */

/* Post Tags */
.post-tags {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e1e8ed;
}

.post-tags h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag-badge {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: var(--primary-blue);
    color: white;
}

/* Share Buttons */
.post-share {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e1e8ed;
}

.post-share h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.publication-disclaimer {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    margin-top: var(--spacing-md);
    font-style: italic;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook svg {
    fill: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter svg {
    fill: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin svg {
    fill: white;
}

.share-btn.email {
    background: var(--secondary-blue);
    color: white;
}

.share-btn.email svg {
    fill: white;
}

.share-btn:hover,
.share-btn:focus-visible {
    opacity: 0.85; /* colour change only, no scale (CLAUDE.md design rules) */
}

/* Author Bio Box */
.author-bio-box {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--light-gray);
    border-radius: 12px;
}

.author-bio-avatar {
    flex-shrink: 0;
}

.author-bio-avatar img {
    border-radius: 50%;
}

.author-bio-content h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.author-bio-content p {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.author-posts-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.author-posts-link:hover {
    text-decoration: underline;
}

/* Related Posts Grid */
.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.related-post-card:hover {
    border-color: var(--primary-blue);
}

.related-post-card a {
    display: block;
    text-decoration: none;
    color: var(--primary-dark);
}

.related-post-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--light-gray);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.related-post-card:hover .related-post-image img {
    opacity: 0.9; /* no zoom on hover (CLAUDE.md design rules) */
}

.related-post-content {
    padding: var(--spacing-md);
}

.related-post-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-dark);
}

.related-post-content time {
    font-size: 0.8rem;
    color: var(--secondary-blue);
    display: block;
}

@media (max-width: 768px) {
    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* Blog posts: a readable text column on wide screens (about 70 characters a line), sidebar beside it
   (2026-11-10). Below 992px content-template.css stacks the grid into one column. */
@media (min-width: 993px) {
    .single-post .content-layout-grid {
        grid-template-columns: minmax(0, 780px) 350px;
        justify-content: center;
    }
}
