/* ===================================================================
   FlexProfile Blog Post Styles
   css/blog-post.css
   =================================================================== */

/* === BLOG POST CONTAINER === */
.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #718096;
}

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

.breadcrumb a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #cbd5e0;
    font-weight: bold;
}

.breadcrumb-current {
    color: #2d3748;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === BLOG POST === */
.blog-post {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 2px solid #f7fafc;
    margin-bottom: 60px;
}

/* === POST HEADER === */
.post-header {
    padding: 50px 60px 40px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 2px solid #e2e8f0;
}

.post-category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 25px;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.author-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.author-username {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.post-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1.1rem;
}

/* === POST TAGS === */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.post-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.post-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255,255,255,0.3);
}

/* === POST CONTENT === */
.post-content {
    padding: 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    max-width: none;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    color: #2d3748;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h1 { font-size: 2.5rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.6rem; }
.post-content h4 { font-size: 1.3rem; }

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

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

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

.post-content blockquote {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-left: 5px solid #667eea;
    margin: 30px 0;
    padding: 25px 30px;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #4a5568;
}

.post-content code {
    background: #1a202c;
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 15px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Fira Code', 'Monaco', monospace;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #667eea;
    color: #5a6fd8;
}

/* === SPECIAL CONTENT BOXES === */
.highlight-box, .tip-box, .success-box, .feature-highlight, .pro-tip {
    margin: 30px 0;
    padding: 25px 30px;
    border-radius: 15px;
    border-left: 5px solid;
}

.highlight-box, .feature-highlight {
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    border-left-color: #38b2ac;
}

.tip-box, .pro-tip {
    background: linear-gradient(135deg, #fef5e7, #fed7aa);
    border-left-color: #ed8936;
}

.success-box {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border-left-color: #48bb78;
}

.highlight-box h4, .tip-box h4, .success-box h4, 
.feature-highlight h4, .pro-tip h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* === STATS AND GRIDS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-item span {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === POST ACTIONS === */
.post-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 60px;
    border-top: 2px solid #e2e8f0;
    background: #f8fafc;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-icon {
    font-size: 1.2rem;
}

.action-count {
    background: rgba(0,0,0,0.1);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.action-btn:hover .action-count {
    background: rgba(255,255,255,0.2);
}

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 25px;
    padding: 40px 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    align-items: center;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.author-box-username {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-bottom: 15px;
}

.author-box-bio {
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.author-profile-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* === RELATED POSTS === */
.related-posts {
    margin-bottom: 60px;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 2px solid #f7fafc;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.related-post-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.related-post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.related-post-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.related-post-author {
    font-weight: 600;
    color: #667eea;
}

/* === COMMENTS SECTION === */
.comments-section {
    background: white;
    border-radius: 25px;
    padding: 50px 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 2px solid #f7fafc;
}

.comments-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
}

/* === COMMENT FORM === */
.comment-form {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #e2e8f0;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comment-user strong {
    color: #2d3748;
    font-size: 1.1rem;
}

.comment-textarea {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.comment-textarea:focus {
    border-color: #667eea;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* === LOGIN PROMPT === */
.login-prompt {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    margin-bottom: 40px;
}

.login-prompt p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0;
}

.login-prompt a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* === NO COMMENTS === */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-comments-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-comments h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.no-comments p {
    font-size: 1.1rem;
    margin: 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 20px 15px 60px;
    }
    
    .post-header {
        padding: 30px 25px;
    }
    
    .post-title {
        font-size: 2rem;
        text-align: left;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .post-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .post-content {
        padding: 30px 25px;
        font-size: 1rem;
    }
    
    .post-content h1 { font-size: 2rem; }
    .post-content h2 { font-size: 1.6rem; }
    .post-content h3 { font-size: 1.3rem; }
    .post-content h4 { font-size: 1.1rem; }
    
    .post-actions {
        padding: 30px 25px;
        flex-wrap: wrap;
    }
    
    .author-box {
        padding: 30px 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .comments-section {
        padding: 30px 25px;
    }
    
    .comment-form {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-current {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-actions {
        gap: 10px;
    }
    
    .action-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
}