/* Post Header */
.post-header {
    background: var(--darker-bg);
    padding: 80px 0 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.post-category {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-item i {
    color: var(--accent-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

/* Featured Image */
.featured-image {
    width: 100%;
    /*object-fit: cover;*/
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important; 
}

/* Post Content */
.post-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.post-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.post-content blockquote {
    background: var(--darker-bg);
    border-left: 4px solid var(--accent-color);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
}

.post-content code {
    background: var(--darker-bg);
    color: #4facfe;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: var(--darker-bg);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag {
    display: inline-block;
    background: var(--darker-bg);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    font-size: 0.9rem;
    border: 1px solid rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* Share Buttons */
.share-section {
    background: var(--darker-bg);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn.reddit {
    background: #FF4500;
    color: white;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
}

/* Author Box */
.author-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    margin-top: 50px;
    display: flex;
    gap: 30px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-box-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.author-box-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.author-box-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.author-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--accent-color);
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
}

.related-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.3);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-body {
    padding: 20px;
}

.related-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.related-card-title:hover {
    color: var(--accent-color);
}

.related-card-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .post-content {
        padding: 30px 20px;
    }

    .featured-image {
        height: 300px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}