/* Q&A Page Styles */
/* UPDATED: 2026-01-22 - Added SEO heading styles */
/* UPDATED: 2026-01-22 - Enabled vote percentage display (Option A) */

#thread {
    padding-top: 10px;
}

iframe.minheight {
    min-height: 750px;
}

/* Questions Table */
#questions-table {
    margin-top: 20px;
}

#questions-table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

#questions-table tbody tr {
    border-bottom: 1px solid #eee;
}

#questions-table tbody tr:hover {
    background-color: #f9f9f9;
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.question-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.question-title a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.badge {
    background-color: #5bc0de;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Pagination */
.pagination-wrapper {
    margin: 30px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    display: block;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.pagination .page-item.active .page-link {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    cursor: not-allowed;
    background-color: #fff;
}

/* Sidebar */
#new-thread {
    padding: 0 15px;
}

#new-thread h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

#new-thread-iframe {
    width: 100%;
    border: none;
    min-height: 750px;
}

/* Main heading */
main h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

main > .row > .col-md-9 > .col-md-12 > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* ============================================
   ADDED: SEO FIX STYLES
   ============================================ */

/* Thread page H1 (question title) */
.thread-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Answers section H2 */
.answers-header {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #4A89DC;
}

.answers-header .fa {
    color: #4A89DC;
    margin-right: 8px;
}

/* ============================================
   VOTING DISPLAY ENABLED - Option A (Percentage Only)
   ============================================ */

/* Hide interactive voting buttons (thumbs up/down) */
.vote-buttons,
a[href*="thread-vote.php"],
.voting-widget,
.upvote-btn,
.downvote-btn {
    display: none !important;
}

/* SHOW vote percentage display (⭐ 75%) */
.answer-rating,
.rating-percentage {
    display: flex !important;
}

/* ============================================
   END VOTING DISPLAY
   ============================================ */

/* ============================================
   END SEO FIX STYLES
   ============================================ */

/* Responsive */
@media (max-width: 768px) {
    #thread {
        padding-top: 0;
    }
    
    .question-title {
        font-size: 14px;
    }
    
    #questions-table {
        font-size: 14px;
    }
    
    #questions-table th:nth-child(2),
    #questions-table td:nth-child(2) {
        display: none;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .thread-title {
        font-size: 24px;
    }
    
    .answers-header {
        font-size: 20px;
    }
}