/**
 * Post Template Styles
 * Version: 3.0.0
 */

/* ========================================
   POST HERO
======================================== */
.post-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    color: #ffffff;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.post-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.post-categories {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.post-categories a {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 5px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.post-categories a:hover {
    background: #ffffff;
    color: #667eea;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.meta-sep {
    opacity: 0.5;
}

/* ========================================
   FEATURED IMAGE
======================================== */
.post-featured-image {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.post-featured-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

/* ========================================
   POST CONTENT
======================================== */
.post-content-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   POST TYPOGRAPHY
======================================== */
.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 15px;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin: 30px 0 15px;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content li {
    margin-bottom: 12px;
    color: #374151;
}

.post-content a {
    color: #667eea;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #5568d3;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 25px 35px;
    background: #f9fafb;
    border-left: 5px solid #667eea;
    font-style: italic;
    color: #374151;
    border-radius: 12px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* ========================================
   POST FOOTER
======================================== */
.post-footer {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.post-tags {
    margin-bottom: 25px;
}

.tags-label {
    font-weight: 600;
    color: #374151;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.95rem;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #374151;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #ffffff;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* ========================================
   RELATED POSTS
======================================== */
.related-posts-section {
    background: #f9fafb;
    padding: 60px 20px;
    margin: 60px 0 0 0;
    border-radius: 30px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .post-hero {
        padding: 80px 20px 60px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 40px 25px;
    }
    
    .post-meta {
        font-size: 0.9rem;
    }
    
    .post-featured-image {
        margin-top: 0;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .post-content p {
        font-size: 1rem;
    }
}
