/* Post Detail Specific Styles */
/* این فایل در کنار styles.css استفاده می‌شود */

/* Breadcrumb */
.breadcrumb {
    padding: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    animation: fadeIn 0.6s ease-out;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

/* Post Detail Wrapper */
.post-detail-main {
    padding: 2rem 0;
    min-height: 100vh;
}

.post-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

/* Main Content */
.post-main-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.post-title {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.post-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    flex-wrap: wrap;
    gap: 1rem;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow);
}

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

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

/* Featured Image */
.post-featured-image {
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    animation: scaleIn 0.8s ease-out;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.post-featured-image:hover img {
    transform: scale(1.05);
}

/* Post Content Body */
.post-content-body {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 2rem 0;
    line-height: 2;
}

.lead-paragraph {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 2.2;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 130, 92, 0.05), rgba(139, 69, 19, 0.05));
    border-right: 4px solid var(--primary-color);
    border-radius: 10px;
}

.post-content-body h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
}

.post-content-body h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.post-content-body p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content-body ul,
.post-content-body ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.post-content-body li {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.9;
}

.post-content-body li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.post-content-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(212, 130, 92, 0.1), rgba(139, 69, 19, 0.1));
    border-right: 5px solid var(--primary-color);
    border-radius: 10px;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
}

.post-content-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    right: 1rem;
    font-family: 'Georgia', serif;
}

.info-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.info-box h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.info-box p {
    margin: 0;
    color: var(--text-dark);
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 2rem 0;
}

.tag-label {
    font-weight: 700;
    color: var(--text-dark);
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(212, 130, 92, 0.1), rgba(139, 69, 19, 0.1));
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Share Buttons */
.post-share {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 2rem 0;
}

.share-label {
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

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

.share-btn.link {
    background: var(--secondary-color);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 130, 92, 0.05), rgba(139, 69, 19, 0.05));
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    margin: 2rem 0;
    align-items: center;
}

.author-box-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow);
    flex-shrink: 0;
}

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

.author-box-name {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.author-box-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts .section-title {
    margin-bottom: 2rem;
}

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

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.related-post-image {
    height: 200px;
    background-size: cover !important;
    background-position: center !important;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.related-post-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.related-post-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.related-post-link:hover {
    color: var(--secondary-color);
}

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

.comments-section .section-title {
    margin-bottom: 2rem;
}

/* Comment Form */
.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 2rem;
}

.comment-form h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 130, 92, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-comment-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
}

.submit-comment-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    display: flex;
    gap: 1.2rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

.comment-item:nth-child(1) { animation-delay: 0.1s; }
.comment-item:nth-child(2) { animation-delay: 0.2s; }
.comment-item:nth-child(3) { animation-delay: 0.3s; }

.reply-comment {
    margin-right: 3rem;
    background: linear-gradient(135deg, rgba(212, 130, 92, 0.05), rgba(139, 69, 19, 0.05));
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.reply-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.reply-btn:hover {
    background: var(--primary-color);
    color: white;
}

.load-more-comments {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    width: 100%;
    box-shadow: 0 4px 15px var(--shadow);
}

.load-more-comments:hover {
    background: var(--primary-color);
    color: white;
}

/* Sidebar */
.post-sidebar {
    animation: fadeInLeft 0.8s ease-out;
}

.sidebar-widget {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.search-form button {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Categories List */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.8rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-right: 0.5rem;
}

.categories-list span {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.popular-post:hover {
    transform: translateX(-5px);
}

.popular-post img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags-cloud a {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(212, 130, 92, 0.1), rgba(139, 69, 19, 0.1));
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tags-cloud a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-widget p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-form input {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.newsletter-form button {
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design for Post Detail */
@media (max-width: 1200px) {
    .post-detail-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .post-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        order: 2;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.7rem;
    }
    
    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .post-content-body {
        padding: 1.5rem;
    }
    
    .post-content-body h2 {
        font-size: 1.5rem;
    }
    
    .post-content-body h3 {
        font-size: 1.2rem;
    }
    
    .lead-paragraph {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .author-box-avatar {
        width: 100px;
        height: 100px;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reply-comment {
        margin-right: 1.5rem;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-avatar {
        width: 50px;
        height: 50px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.4rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .post-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .post-content-body {
        padding: 1.2rem;
    }
    
    .post-content-body h2 {
        font-size: 1.3rem;
    }
    
    .lead-paragraph {
        font-size: 1rem;
    }
    
    .reply-comment {
        margin-right: 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
