/* Single Post Template Styles */

.single-content {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FAFAFA 0%, #F1F5F9 50%, #E2E8F0 100%);
}

.post-article {
    max-width: 800px;
    margin: 0 auto 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #64748b;
}

.post-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta svg {
    color: #9f63e9;
}

.post-meta a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

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

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.125rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.95);
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

.post-content-text {
    color: #475569;
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.post-content-text h1,
.post-content-text h2,
.post-content-text h3,
.post-content-text h4,
.post-content-text h5,
.post-content-text h6 {
    color: #1e293b;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.post-content-text h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #9f63e9;
    padding-bottom: 8px;
}

.post-content-text h3 {
    font-size: 1.5rem;
}

.post-content-text h4 {
    font-size: 1.25rem;
}

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

.post-content-text ul,
.post-content-text ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.post-content-text li {
    margin-bottom: 8px;
}

.post-content-text blockquote {
    background: rgba(159, 99, 233, 0.05);
    border-left: 4px solid #9f63e9;
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #334155;
}

.post-content-text a {
    color: #9f63e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.post-content-text a:hover {
    color: #832ced;
    text-decoration: underline;
}

.page-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
}

.page-link {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    background: rgba(159, 99, 233, 0.1);
    border-radius: 6px;
    color: #9f63e9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.current {
    background: #9f63e9;
    color: white;
}

.post-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 32px;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.nav-previous,
.nav-next {
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-previous:hover,
.nav-next:hover {
    background: rgba(159, 99, 233, 0.05);
    transform: translateY(-2px);
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-direction {
    display: block;
    font-size: 0.875rem;
    color: #9f63e9;
    font-weight: 500;
    margin-bottom: 4px;
}

.nav-title {
    display: block;
    color: #1e293b;
    font-weight: 600;
}

.edit-link {
    text-align: center;
}

.edit-link-wrapper {
    font-size: 0.875rem;
    color: #64748b;
}

.edit-link-wrapper a {
    color: #9f63e9;
    text-decoration: none;
}

.edit-link-wrapper a:hover {
    text-decoration: underline;
}

.related-posts {
    max-width: 1000px;
    margin: 0 auto 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
}

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

.related-card {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin-bottom: 8px;
}

.related-content h4 a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.related-content h4 a:hover {
    color: #9f63e9;
}

.related-content p {
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.related-meta {
    font-size: 0.875rem;
    color: #9f63e9;
    font-weight: 500;
}

.post-cta {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
}

.post-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.post-cta p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.post-cta .cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .post-article {
        padding: 24px;
        border-radius: 16px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content-text {
        font-size: 1rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-posts {
        padding: 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-cta {
        padding: 24px;
    }
    
    .post-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .single-content {
        padding: 100px 0 60px;
    }
    
    .post-article {
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 16px;
    }
}