/* ==================== News Detail Page Styling ==================== */

/* News Detail Card */
.news-detail-card {
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.95), rgba(20, 25, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-heading {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.news-author,
.news-date-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-author i,
.news-date-detail i {
    font-size: 16px;
}

.news-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* Reactions */
.news-reactions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.reaction-btn.active.like-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-color: #4facfe;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.reaction-btn.active.dislike-btn {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    border-color: #f5576c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.reaction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reaction-btn i {
    font-size: 20px;
}

.reaction-btn .count {
    font-weight: 700;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
}

.comment-form {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.comment-textarea:focus {
    outline: none;
    border-color: #4facfe;
}

.submit-comment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.login-prompt {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.login-prompt a {
    color: #4facfe;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-avatar i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.comment-body {
    flex: 1;
}

.comment-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #4facfe;
    font-size: 15px;
}

.comment-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: rgba(255, 255, 255, 0.2);
}

.no-comments p {
    margin: 0;
}

/* News Title Link on Homepage */
.news-title-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.news-title-link:hover {
    color: #4facfe;
}

.news-title-link:hover .news-title {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail-card {
        padding: 25px 20px;
    }

    .news-heading {
        font-size: 24px;
    }

    .news-meta {
        flex-direction: column;
        gap: 8px;
    }

    .news-reactions {
        flex-direction: column;
    }

    .reaction-btn {
        width: 100%;
        justify-content: center;
    }

    .comment-item {
        flex-direction: column;
        gap: 10px;
    }
}