.post-detail-widget {
    width: 100%;
    background: #fff;
    direction: rtl;
}

.post-detail-cover {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.post-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-detail-content {
    padding: 0 16px;
}

.post-detail-meta {
    margin-bottom: 32px;
}

.post-detail-category {
    margin-bottom: 12px;
}

.post-detail-category span {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.post-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.post-detail-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.post-detail-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-detail-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail-author span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.post-detail-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 14px;
}

.post-detail-date svg {
    width: 16px;
    height: 16px;
}

.post-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-top: 32px;
}

.post-detail-body p {
    margin-bottom: 16px;
}

.post-detail-body h2,
.post-detail-body h3,
.post-detail-body h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #1f2937;
}

.post-detail-body h2 {
    font-size: 24px;
}

.post-detail-body h3 {
    font-size: 20px;
}

.post-detail-body h4 {
    font-size: 18px;
}

.post-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.post-detail-body ul,
.post-detail-body ol {
    margin: 16px 0;
    padding-right: 24px;
}

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

.post-detail-body blockquote {
    border-right: 4px solid #e5e7eb;
    padding: 16px 20px;
    margin: 24px 0;
    background: #f9fafb;
    border-radius: 4px;
    font-style: italic;
    color: #6b7280;
}

.post-detail-body a {
    color: #3b82f6;
    text-decoration: none;
}

.post-detail-body a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-title {
        font-size: 22px;
    }

    .post-detail-body {
        font-size: 15px;
    }

    .post-detail-cover {
        max-height: 300px;
        border-radius: 8px;
    }
}

/* Like/Dislike Reactions */
.post-detail-reactions {
    margin-top: 48px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
}

.reactions-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.reactions-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.reaction-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.reaction-btn.like-btn:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    transform: translateY(-2px);
}

.reaction-btn.like-btn:hover svg {
    stroke: #fff;
}

.reaction-btn.like-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.reaction-btn.like-btn.active svg {
    stroke: #fff;
    fill: #fff;
}

.reaction-btn.dislike-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

.reaction-btn.dislike-btn:hover svg {
    stroke: #fff;
}

.reaction-btn.dislike-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.reaction-btn.dislike-btn.active svg {
    stroke: #fff;
    fill: #fff;
}

.reaction-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #f3f4f6;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
}

.reaction-btn.active .reaction-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Downloads Section */
.post-detail-downloads {
    margin-top: 48px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.downloads-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 12px;
    flex-shrink: 0;
}

.download-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
}

.download-info {
    flex: 1;
}

.download-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.download-size {
    font-size: 14px;
    color: #6b7280;
}

.download-btn {
    padding: 10px 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* FAQ Section */
.post-detail-faq {
    margin-top: 48px;
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question.active {
    background: #f3f4f6;
    color: #3b82f6;
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px 24px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-reactions {
        padding: 24px 16px;
    }

    .reactions-title {
        font-size: 18px;
    }

    .reactions-buttons {
        flex-direction: column;
    }

    .reaction-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .post-detail-downloads {
        padding: 24px 16px;
    }

    .downloads-title {
        font-size: 18px;
    }

    .download-item {
        flex-wrap: wrap;
        padding: 16px;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }

    .faq-title {
        font-size: 20px;
    }

    .faq-question {
        padding: 16px;
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 16px 16px 16px;
        font-size: 14px;
    }
}
