/* Global Forum Styles - No Underlines, Consistent Hover Effects */

/* Remove all text decorations from links */
a, 
a:hover,
a:focus,
a:active,
.thread-link,
.forum-link,
.thread-item,
.forum-card,
.tag,
.breadcrumb a {
    text-decoration: none !important;
}

/* Thread Links */
.thread-link {
    color: var(--discord-text-primary, #dcddde);
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.thread-link:hover {
    color: var(--discord-accent, #5865f2);
    text-decoration: none !important;
}

/* Forum Links */
.forum-link {
    color: var(--discord-text-primary, #dcddde);
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forum-link:hover {
    color: var(--discord-accent, #5865f2);
    opacity: 0.9;
    text-decoration: none !important;
}

/* Last Post Username */
.last-post-username {
    text-decoration: none !important;
    color: var(--discord-text-primary, #dcddde);
    transition: color 0.2s ease;
}

.last-post-username:hover {
    color: var(--discord-accent, #5865f2);
    text-decoration: none !important;
}

/* Thread Items - Consistent Card Styling */
.thread-item {
    display: block;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thread-item * {
    text-decoration: none !important;
}

.thread-item:hover {
    text-decoration: none !important;
}

.thread-item:hover * {
    text-decoration: none !important;
}

/* Forum Cards */
.forum-card {
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forum-card * {
    text-decoration: none !important;
}

.forum-card:hover {
    text-decoration: none !important;
}

.forum-card:hover * {
    text-decoration: none !important;
}

/* Tags */
.tag,
.thread-tag-pill,
.thread-tag-inline {
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tag:hover,
.thread-tag-pill:hover,
.thread-tag-inline:hover {
    text-decoration: none !important;
}

/* Breadcrumbs */
.breadcrumb a {
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

/* Thread Title in Tables */
.thread-title-cell a {
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.thread-title-cell a:hover {
    color: var(--discord-accent, #5865f2);
    text-decoration: none !important;
}

/* Related Threads */
.related-thread-button {
    text-decoration: none !important;
}

.related-thread-button * {
    text-decoration: none !important;
}

.related-thread-button:hover {
    text-decoration: none !important;
}

.related-thread-button:hover * {
    text-decoration: none !important;
}

/* Forum Table Rows */
.forum-table-row {
    transition: background-color 0.2s ease;
}

.forum-table-row:hover {
    background-color: var(--discord-input-bg, rgba(255, 255, 255, 0.02));
}

/* Button Consistency */
.btn,
button,
a.btn {
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn:hover,
button:hover,
a.btn:hover {
    text-decoration: none !important;
}

/* Post Author Links */
.post-author-name-link,
.thread-author-name {
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.post-author-name-link:hover,
.thread-author-name:hover {
    color: var(--discord-accent, #5865f2);
    text-decoration: none !important;
}

/* Ensure all children of links don't get underlined */
a > *,
a:hover > *,
.thread-link > *,
.forum-link > *,
.thread-item > *,
.forum-card > * {
    text-decoration: none !important;
}

/* User Badges - No underline */
.user-badge {
    text-decoration: none !important;
}

/* Thread Meta Elements */
.thread-meta a,
.thread-author a,
.post-header a {
    text-decoration: none !important;
}

.thread-meta a:hover,
.thread-author a:hover,
.post-header a:hover {
    text-decoration: none !important;
}

/* Pagination Links */
.pagination a,
.pagination-btn {
    text-decoration: none !important;
}

.pagination a:hover,
.pagination-btn:hover {
    text-decoration: none !important;
}
