/* Blog Post Specific Styles */

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

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.post-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: white;
}

.post-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.post-header .post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.post-header .post-meta .category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.post-header .post-meta .date,
.post-header .post-meta .read-time {
    color: rgba(255, 255, 255, 0.8);
}

#post-main-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-author-info .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.publish-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Post Content */
.post-content {
    padding: 60px 0;
    background: white;
}

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

.post-main {
    max-width: 800px;
}

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

.post-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1f2937;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1f2937;
}

.post-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #1f2937;
}

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

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.post-body blockquote {
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8fafc;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 10px 10px 0;
}

.post-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.post-body pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* Post Tags */
.post-tags {
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.post-tags h4 {
    margin-bottom: 15px;
    color: #374151;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Post Share */
.post-share {
    margin-bottom: 40px;
}

.post-share h4 {
    margin-bottom: 15px;
    color: #374151;
    font-size: 1.1rem;
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
}

/* Related Posts */
.related-posts {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.related-posts::-webkit-scrollbar {
    width: 6px;
}

.related-posts::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.related-posts::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.related-posts::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.related-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.related-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-post-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #1f2937;
}

.related-post-content a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.category-link .count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-link:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-widget h3 {
    color: white;
}

.newsletter-widget p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.sidebar-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-newsletter-form button {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Post Navigation */
.post-navigation {
    background: #f8fafc;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #667eea;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    line-height: 1.3;
}

.back-to-blog {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.comments-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
}

.comments-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.comments-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.comments-placeholder p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 40px;
    }
    
    #post-main-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 40px 0;
    }
    
    .post-image img {
        height: 250px;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        max-width: 100%;
        width: 100%;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 90px 0 30px;
    }
    
    #post-main-title {
        font-size: 1.5rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-author-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Copy Link Success */
.copy-success {
    background: #10b981 !important;
}

.copy-success::after {
    content: ' Copied!';
}