/* Back button styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    width: auto;
    max-width: 200px;
}

.back-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.back-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Source section icons */
.source-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    color: var(--accent-primary);
}

/* Source box styling */
.source-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.source-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.source-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Comments section icons */
.btn-comment svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Article content icons and emojis */
.article-content svg {
    max-width: 1.5rem;
    max-height: 1.5rem;
}

/* Prevent emoji overflow */
.article-content {
    font-size: 1rem;
    line-height: 1.6;
}

.article-content p {
    margin-bottom: 1rem;
}

/* Fix any large emojis or special characters */
.article-content * {
    font-size: inherit !important;
    max-width: 100%;
}

/* Article container styling */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Comment display styles */
.comment {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-author {
    color: var(--accent-primary);
    font-weight: 600;
}

.comment-date {
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}