/* post-details_.css - Post details styles */

.post-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header with author */
.post-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.post-details-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-details-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-details-avatar-placeholder {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark, #444));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.post-details-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-details-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-details-author-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: #7c3aed;
    color: white;
    border-radius: 3px;
    font-weight: 500;
}

.post-details-author-slug {
    font-size: 12px;
    color: var(--text-muted);
}

.post-details-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.post-details-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Badges */
.post-details-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-details-badge-hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.post-details-badge-viral {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Content */
.post-details-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    padding: 16px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Stats */
.post-details-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px;
    background: var(--bg-darker);
    border-radius: 8px;
}

.post-details-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.post-details-stat-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.post-details-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.post-details-stat-label {
    color: var(--text-muted);
}

/* Likers */
.post-details-likers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-details-likers-label {
    font-size: 12px;
    color: var(--text-muted);
}

.post-details-likers-avatars {
    display: flex;
    align-items: center;
}

.post-details-liker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--bg-darker);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    overflow: hidden;
}

.post-details-liker:first-child {
    margin-left: 0;
}

.post-details-liker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-details-liker-more {
    background: var(--accent-color);
    color: white;
    font-size: 9px;
}

/* Actions */
.post-details-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.post-details-link,
.post-details-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.post-details-link:hover,
.post-details-link-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Comments */
.post-details-comments {
    margin-top: 8px;
}

.post-details-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.post-details-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.post-details-comment {
    padding: 10px 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
}

.post-details-comment:hover {
    border-left-color: var(--accent-color);
}

.post-details-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.post-details-comment-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-details-comment-time {
    font-size: 10px;
    color: var(--text-muted);
}

.post-details-comment-content {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.post-details-comment-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* No comments */
.post-details-no-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.post-details-no-comments p {
    margin: 8px 0 0 0;
}

/* Scrollbar for comments */
.post-details-comments-list::-webkit-scrollbar {
    width: 6px;
}

.post-details-comments-list::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 3px;
}

.post-details-comments-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.post-details-comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
