/* Post-specific styles */

/* Post Header */
.post-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.post-header::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 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.separator {
    opacity: 0.6;
}

.current {
    opacity: 0.8;
}

/* Post Category Badge */
.post-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.2s both;
}

/* Post Title */
.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Post Meta */
.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 0.8rem;
}

/* Post Tags */
.post-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.post-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Post Content */
.post-content {
    padding: 4rem 0;
    background: #fafafa;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Featured Image */
.post-featured-image {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    text-align: center;
    opacity: 0.8;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.image-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Post Body */
.post-body {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    font-family: 'Playfair Display', serif;
    margin: 2rem 0 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.post-body h1 { font-size: 2.5rem; }
.post-body h2 { font-size: 2rem; }
.post-body h3 { font-size: 1.7rem; }
.post-body h4 { font-size: 1.4rem; }
.post-body h5 { font-size: 1.2rem; }
.post-body h6 { font-size: 1.1rem; }

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body blockquote {
    border-left: 4px solid #667eea;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.post-body pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Post Footer */
.post-footer {
    padding: 2rem 3rem 3rem;
    border-top: 1px solid #e9ecef;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.action-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.like-btn.active i {
    color: #e74c3c;
}

.bookmark-btn.active i {
    color: #f39c12;
}

/* Social Share */
.social-share {
    text-align: center;
}

.social-share h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: #6c757d; }

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Table of Contents */
.table-of-contents {
    list-style: none;
    padding: 0;
}

.table-of-contents a {
    display: block;
    padding: 0.5rem 0;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 1.5rem;
}

.no-toc {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Author Widget */
.author-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-details h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.author-details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-post:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.related-post-content h5 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-post-content h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h5 a:hover {
    color: #667eea;
}

.related-post-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Comments Section */
.comments-section {
    padding: 4rem 0;
    background: white;
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #333;
}

.comment-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.comment-form-container h4 {
    margin-bottom: 1.5rem;
    color: #333;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.comment {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-content {
    color: #666;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    padding: 3rem 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav-posts {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-post {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prev-post {
    text-align: left;
}

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

.nav-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 50px;
    }
    
    .post-title {
        font-size: 2.5rem;
    }
    
    .post-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .post-body {
        padding: 2rem;
    }
    
    .post-footer {
        padding: 1.5rem 2rem 2rem;
    }
    
    .post-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-posts {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .prev-post,
    .next-post {
        text-align: center;
    }
    
    .nav-title {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 80px 0 40px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .post-body h1 { font-size: 2rem; }
    .post-body h2 { font-size: 1.7rem; }
    .post-body h3 { font-size: 1.4rem; }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .related-post {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
    }
}

/* Loading Animation */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth animations */
.post-header-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}