/* ========================================
   POST PAGE - PROFESSIONAL STYLES
   ======================================== */

/* Post Hero Section */
.post-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #7c3aed 100%);
    color: #ffffff;
    padding: 4rem 0;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.03) 49%, rgba(255,255,255,0.03) 51%, transparent 52%);
    background-size: 100% 100%, 100% 100%, 30px 30px;
    opacity: 0.8;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

.author-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.meta-items {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Engagement Buttons */
.engagement-button {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.engagement-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.engagement-button.liked {
    background: var(--color-primary);
    color: var(--color-white);
}

.engagement-button.bookmarked {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Post Conclusion */
.post__conclusion {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--color-primary);
}

.post__conclusion h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.post__conclusion h3 i {
    color: var(--color-primary);
}

/* Post Content Styling */
.post__content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin: 2rem 0;
}

.post__content p {
    margin-bottom: 1.5rem;
}

.post__content h2, 
.post__content h3, 
.post__content h4 {
    color: var(--color-text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.post__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.post__content a:hover {
    color: var(--color-primary-variant);
}

.post__content ul, 
.post__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post__content li {
    margin-bottom: 0.5rem;
}

.post__content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.post__content code {
    background: var(--color-gray-100);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 0.9em;
}

.post__content pre {
    background: var(--color-gray-900);
    color: var(--color-gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post__content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Table of Contents */
.table-of-contents {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.table-of-contents h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.table-of-contents h3 i {
    color: var(--color-primary);
}

/* Comments Section */
.comments-section {
    padding: 2rem 0;
    margin: 2rem 0;
}

.comments-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.comments-section h3 i {
    color: var(--color-primary);
}

.comment-form {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.comment-form h4 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: var(--color-white);
    color: var(--color-text-primary);
}

.comment-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.comment-form button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form button:hover {
    background: var(--color-primary-variant);
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Responsive Hero */
@media screen and (max-width: 768px) {
    .post-hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-info {
        justify-content: center;
    }
    
    .meta-items {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post__meta {
        flex-direction: column;
        text-align: center;
    }
    
    .post__author {
        justify-content: center;
    }
    
    .post__stats {
        justify-content: center;
    }
}
