﻿/* ==================== SINGLE POST STYLES ==================== */

/* Single Post Hero */
.single-post-hero {
    background: linear-gradient(135deg, #0a5f59 0%, #084a45 100%);
    padding: 140px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="single-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23single-pattern)"/></svg>');
    opacity: 0.3;
}

.single-post-hero-content {
    position: relative;
    z-index: 2;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
}

.single-post-category {
    background: rgba(228, 165, 32, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-post-category:hover {
    background: #e4a520;
    transform: translateY(-2px);
    color: white;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.single-post-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Single Post Content */
.single-post-content {
    padding: 80px 0;
    background: #f8fffe;
}

.single-post-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 95, 89, 0.1);
    border: 1px solid rgba(10, 95, 89, 0.05);
}

.single-post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
}

.single-post-body {
    padding: 60px;
}

.single-post-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.single-post-content-text h1,
.single-post-content-text h2,
.single-post-content-text h3,
.single-post-content-text h4,
.single-post-content-text h5,
.single-post-content-text h6 {
    color: #0a5f59;
    font-weight: 700;
    margin: 30px 0 15px 0;
}

.single-post-content-text h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(10, 95, 89, 0.1);
    padding-bottom: 10px;
}

.single-post-content-text h3 {
    font-size: 1.5rem;
}

.single-post-content-text p {
    margin-bottom: 20px;
}

.single-post-content-text ul,
.single-post-content-text ol {
    margin: 20px 0;
    padding-right: 20px;
}

.single-post-content-text li {
    margin-bottom: 10px;
}

.single-post-content-text blockquote {
    background: rgba(10, 95, 89, 0.05);
    border-right: 4px solid #0a5f59;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.single-post-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-post-content-text a {
    color: #0a5f59;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.single-post-content-text a:hover {
    color: #e4a520;
    border-bottom-color: #e4a520;
}

/* Post Tags */
.single-post-tags {
    margin: 40px 0;
    padding: 30px;
    background: rgba(10, 95, 89, 0.05);
    border-radius: 15px;
}

.single-post-tags h4 {
    color: #0a5f59;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-post-tags h4 i {
    color: #e4a520;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: linear-gradient(135deg, #0a5f59 0%, #e4a520 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.3);
    color: white;
}

/* Post Navigation */
.single-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(10, 95, 89, 0.05);
    border-radius: 15px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: left;
}

.nav-previous {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0a5f59;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(10, 95, 89, 0.1);
}

.nav-previous a:hover,
.nav-next a:hover {
    color: white;
    background: linear-gradient(135deg, #0a5f59 0%, #e4a520 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 95, 89, 0.3);
}

.nav-previous a {
    flex-direction: row-reverse;
}

/* Author Box */
.author-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.1);
    border: 1px solid rgba(10, 95, 89, 0.05);
    display: flex;
    align-items: center;
    gap: 30px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a5f59 0%, #e4a520 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    color: #0a5f59;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    color: #0a5f59;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0a5f59 0%, #e4a520 100%);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 95, 89, 0.05);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 95, 89, 0.15);
}

.related-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
}

.related-post-image .post-placeholder-icon {
    font-size: 2rem;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a5f59;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #e4a520;
}

.related-post-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.single-post-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.1);
    border: 1px solid rgba(10, 95, 89, 0.05);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a5f59;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(10, 95, 89, 0.1);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #0a5f59 0%, #e4a520 100%);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(10, 95, 89, 0.05);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.sidebar-widget a:hover {
    color: #0a5f59;
    transform: translateX(5px);
}

.sidebar-widget a i {
    color: #e4a520;
    font-size: 0.8rem;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-share a.facebook {
    background: #3b5998;
}

.social-share a.twitter {
    background: #1da1f2;
}

.social-share a.linkedin {
    background: #0077b5;
}

.social-share a.whatsapp {
    background: #25d366;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .single-post-title {
        font-size: 2.2rem;
    }
    
    .single-post-body {
        padding: 40px;
    }
    
    .single-post-sidebar {
        margin-top: 40px;
        position: static;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .single-post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        padding: 100px 0 40px;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .single-post-body {
        padding: 30px 20px;
    }
    
    .single-post-featured-image {
        height: 250px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-post-content-text {
        font-size: 1rem;
    }
}
