/* ============================================
   POST DETAIL PAGE STYLES
   ============================================ */

.post-detail-page {
    background-color: white;
}

/* Hero Header with Background Image */
.post-detail-page .details-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.post-detail-page .details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(153, 0, 0, 0.6) 100%);
}

.post-detail-page .details-container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

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

.breadcrumb a:hover {
    color: #F4E9D7;
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.6;
}

/* Title and Subtitle */
.post-detail-page .details-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.details-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-top: 12px;
    font-weight: 400;
}

/* Meta Information */
.details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
}

.meta-item i {
    color: #F4E9D7;
    font-size: 16px;
}

/* Content Container */
.post-detail-page .details-content {
    padding: 60px 0;
    background: white;
}

.post-detail-page .details-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Summary Box */
.post-summary {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-left: 5px solid #990000;
    padding: 30px 35px;
    margin-bottom: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.08);
}

.post-summary p {
    font-size: 19px;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Content Blocks */
.content-block {
    margin-bottom: 35px;
}

/* Headings */
.post-detail-page .section-heading {
    font-size: 32px;
    color: #990000;
    margin: 50px 0 25px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.post-detail-page .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #990000 0%, #cc0000 100%);
    border-radius: 2px;
}

.section-subheading {
    font-size: 24px;
    color: #990000;
    margin: 35px 0 18px;
    font-weight: 600;
}

/* Paragraphs */
.content-text {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

/* Quote Blocks */
.content-quote {
    background: linear-gradient(135deg, #990000 0%, #cc0000 100%);
    color: white;
    padding: 35px 45px;
    margin: 45px 0;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(153, 0, 0, 0.25);
}

.content-quote::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #990000;
}

.content-quote i {
    font-size: 28px;
    opacity: 0.25;
    position: absolute;
    top: 25px;
    left: 25px;
}

.content-quote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
    padding-left: 35px;
    font-style: italic;
    font-weight: 500;
}

/* Image Blocks */
.content-image-wrapper {
    margin: 45px 0;
    text-align: center;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 15px;
    font-size: 15px;
    color: #666;
    font-style: italic;
}

/* Video Blocks */
.content-video-wrapper {
    margin: 45px 0;
    text-align: center;
}

.content-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #000;
}

.video-caption {
    margin-top: 15px;
    font-size: 15px;
    color: #666;
    font-style: italic;
}

/* Lists */
.content-list {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.content-list li {
    padding: 14px 0 14px 45px;
    position: relative;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.content-list li::before {
    content: "▸";
    position: absolute;
    left: 15px;
    color: #990000;
    font-size: 22px;
    font-weight: bold;
}

/* Tags Section */
.post-tags {
    margin: 60px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #eee;
}

.post-tags h4 {
    margin: 0 0 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-tags h4 i {
    color: #990000;
    font-size: 20px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #990000;
    color: white;
    border-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.2);
}

/* Video Section */
.post-video {
    margin: 60px 0;
}

.post-video .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-video .section-heading i {
    color: #990000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Navigation Buttons */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 70px 0 50px;
    padding-top: 50px;
    border-top: 3px solid #f0f0f0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-btn {
    background: white;
    color: #990000;
    border: 2px solid #990000;
}

.back-btn:hover {
    background: #990000;
    color: white;
    transform: translateX(-5px);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.category-btn {
    background: #990000;
    color: white;
    border: 2px solid #990000;
}

.category-btn:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateX(5px);
}

.category-btn:hover i {
    transform: translateX(3px);
}

/* Comments Section */
.comments-section {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 3px solid #f0f0f0;
}

.comments-section .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.comments-section .section-heading i {
    color: #990000;
}

.comments-list {
    margin-top: 35px;
}

.comment-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .post-detail-page .details-hero {
        min-height: 350px;
        padding: 40px 0;
    }

    .post-detail-page .details-title {
        font-size: 32px;
    }

    .details-subtitle {
        font-size: 18px;
    }

    .details-meta {
        gap: 16px;
    }

    .meta-item {
        font-size: 14px;
    }

    .post-detail-page .details-content {
        padding: 40px 0;
    }

    .post-summary {
        padding: 22px 25px;
    }

    .post-summary p {
        font-size: 17px;
    }

    .post-detail-page .section-heading {
        font-size: 26px;
        margin: 35px 0 20px;
    }

    .section-subheading {
        font-size: 20px;
    }

    .content-text {
        font-size: 16px;
    }

    .content-quote {
        padding: 25px 30px;
    }

    .content-quote p {
        font-size: 17px;
        padding-left: 25px;
    }

    .content-list li {
        font-size: 16px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .post-tags {
        padding: 22px;
    }

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

    .tag {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .post-detail-page .details-hero {
        min-height: 280px;
    }

    .post-detail-page .details-title {
        font-size: 26px;
    }

    .details-subtitle {
        font-size: 16px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .post-summary p {
        font-size: 16px;
    }

    .post-detail-page .section-heading {
        font-size: 22px;
    }

    .content-text {
        font-size: 15px;
    }

    .content-quote p {
        font-size: 16px;
    }

    .nav-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ============================================
   POST REACTIONS STYLES
   ============================================ */

.post-reactions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.reaction-btn.like-btn.active {
    background: rgba(0, 204, 102, 0.3);
    border-color: #00cc66;
    color: #00cc66;
}

.reaction-btn.dislike-btn.active {
    background: rgba(255, 82, 82, 0.3);
    border-color: #ff5252;
    color: #ff5252;
}

.reaction-btn i {
    font-size: 18px;
}

.reaction-btn .count {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ============================================
   COMMENTS SECTION STYLES
   ============================================ */

.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.comments-section .section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.comments-count {
    color: #666;
    font-weight: 400;
}

/* Comment Form */
.comment-form-wrapper {
    margin-bottom: 40px;
}

.login-prompt {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    color: #666;
}

.login-prompt i {
    margin-right: 8px;
    color: #0066cc;
}

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

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

.comment-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #0066cc;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.submit-comment-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0066cc, #004d99);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-comment-btn:hover {
    background: linear-gradient(135deg, #004d99, #003366);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

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

.loading-comments,
.no-comments {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.loading-comments i {
    font-size: 24px;
    margin-right: 10px;
}

.no-comments {
    background: #f8f9fa;
    border-radius: 12px;
}

.no-comments i {
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Comment Item */
.comment-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.comment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-author {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    background: #f0f0f0;
    color: #0066cc;
}

.comment-action-btn.active {
    color: #e74c3c;
    font-weight: 600;
}

.comment-action-btn.active i {
    color: #e74c3c;
}

.comment-action-btn i {
    font-size: 14px;
}

.comment-action-btn .reaction-count {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Comment Replies */
.comment-replies {
    margin-top: 20px;
    margin-left: 40px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
}

.reply-item {
    background: #f8f9fa;
    margin-bottom: 15px;
}

.reply-item:last-child {
    margin-bottom: 0;
}

/* Reply Form */
.reply-form-container {
    margin-top: 15px;
    margin-left: 40px;
}

.reply-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.reply-form .comment-input {
    font-size: 14px;
    padding: 10px;
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.submit-reply-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #0066cc, #004d99);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.submit-reply-btn:hover {
    background: linear-gradient(135deg, #004d99, #003366);
    transform: translateY(-1px);
}

.cancel-reply-btn {
    padding: 8px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* Load More Button */
.load-more-comments {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-comments:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Notification */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #00cc66;
}

.notification-success i {
    color: #00cc66;
}

.notification-error {
    border-left: 4px solid #ff5252;
}

.notification-error i {
    color: #ff5252;
}

.notification i {
    font-size: 20px;
}

.notification span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .post-reactions {
        gap: 10px;
    }

    .reaction-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .comments-section .section-heading {
        font-size: 24px;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-input {
        font-size: 14px;
    }

    .comment-replies,
    .reply-form-container {
        margin-left: 20px;
        padding-left: 15px;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 70px;
    }
}