/* ============================================================
   Single Post Styles — extracted from single.php inline CSS
   ============================================================ */
.single-post {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #e74c3c;
}

.post-meta a {
    color: #666;
    text-decoration: none;
}

.post-meta a:hover {
    color: #e74c3c;
}

.post-featured-image {
    margin: 20px 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 40px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2c3e50;
    margin: 30px 0 15px;
}

.post-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Social Share */
.social-share {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.social-share h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: transform 0.3s;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #3b5998;
    color: white;
}

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

.share-button.whatsapp {
    background: #25d366;
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

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

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 10px;
    color: #2c3e50;
}

.author-description {
    margin: 0;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 30px 0;
}

.related-posts h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-post-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-post-item:hover {
    transform: translateY(-3px);
}

.related-post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.3;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #e74c3c;
}

.related-post-date {
    font-size: 12px;
    color: #666;
}

/* Post Navigation */
.post-navigation {
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-previous,
.nav-next {
    padding: 20px;
}

.nav-previous {
    border-right: 1px solid #eee;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-direction {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.nav-title {
    display: block;
    font-weight: bold;
    line-height: 1.3;
}

/* RTL Support */
.rtl .post-meta {
    flex-direction: row-reverse;
}

.rtl .author-bio {
    flex-direction: row-reverse;
}

.rtl .share-buttons {
    flex-direction: row-reverse;
}

.rtl .nav-previous {
    border-right: none;
    border-left: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post {
        padding: 20px;
        margin: 0 10px 20px;
    }

    .post-title {
        font-size: 24px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-previous {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 480px) {
    .single-post {
        padding: 15px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-content {
        font-size: 15px;
    }
}
