/* single-styles.css - Single Post Styling */

/* Single Post Container */
.single-post-container {
    margin-top: 100px;
    margin-bottom: 4rem;
}

.single-article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 166, 118, 0.1);
}

/* Post Header */
.post-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-category {
    background: rgba(0, 166, 118, 0.15);
    color: #00A676;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.post-category:hover {
    background: #00A676;
    color: white;
    transform: translateY(-2px);
}

.post-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.post-author a {
    color: #00A676;
    text-decoration: none;
    font-weight: 600;
}

.post-author a:hover {
    color: white;
    text-decoration: underline;
}

.post-date {
    color: #aaa;
}

.post-views {
    color: #ffd700;
    font-weight: 600;
}

.post-reading-time {
    color: #00A676;
    font-weight: 600;
}

.post-featured-image {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 3rem;
}

.post-content > * {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 166, 118, 0.3);
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: #00A676;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: white;
}

.post-content ul,
.post-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #00A676;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #bbb;
    font-size: 1.2rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content .wp-block-image {
    margin: 2rem 0;
}

.post-content .wp-block-image figcaption {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 166, 118, 0.1);
    border-radius: 8px;
}

.page-links-title {
    font-weight: 600;
    color: white;
    margin-right: 1rem;
}

.page-links a {
    color: #00A676;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.page-links a:hover {
    background: rgba(0, 166, 118, 0.2);
}

/* Post Footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags {
    margin-bottom: 2rem;
}

.post-tags h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #00A676;
    color: white;
    transform: translateY(-2px);
}

.post-share {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
}

.post-share h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 166, 118, 0.2);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00A676;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: white;
    text-decoration: none;
}

.author-name a:hover {
    color: #00A676;
    text-decoration: underline;
}

.author-bio {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(0, 166, 118, 0.1);
    transform: translateX(5px);
}

.nav-previous .nav-link:hover {
    transform: translateX(-5px);
}

.nav-link h4 {
    font-size: 1.1rem;
    color: #00A676;
}

.nav-link:hover h4 {
    color: white;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
}

.related-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 166, 118, 0.3);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-post:hover {
    transform: translateY(-5px);
    border-color: #00A676;
    box-shadow: 0 10px 30px rgba(0, 166, 118, 0.2);
}

.related-image {
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.2rem;
}

.related-category {
    display: inline-block;
    background: rgba(0, 166, 118, 0.15);
    color: #00A676;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.related-post-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.related-post-title a {
    color: white;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #00A676;
}

.related-date {
    color: #888;
    font-size: 0.85rem;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-meta {
    flex: 1;
}

.comment-metadata {
    color: #888;
    font-size: 0.85rem;
}

.comment-content {
    color: #ddd;
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    color: #00A676;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.comment-respond {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
}

.comment-reply-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .single-article {
        padding: 2rem;
    }
    
    .post-title {
        font-size: 2.4rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .meta-left,
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .single-post-container {
        margin-top: 80px;
        padding: 0 1rem;
    }
    
    .single-article {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.7rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .tags-list {
        justify-content: center;
    }
    
    .post-categories {
        justify-content: center;
    }
    
    .meta-left,
    .meta-right {
        flex-wrap: wrap;
        gap: 1rem;
    }
}