/* =========================================
   DiscusHub Main CSS - v1.3.2
   ========================================= */

.discushub-forum-wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; max-width: 900px; margin: 0 auto; line-height: 1.6; color: #4a5568; }
.discushub-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #edf2f7; }
.discushub-header h2 { margin: 0; font-size: 26px; color: #2d3748; font-weight: 700; }
.discushub-header p { margin: 5px 0 0 0; color: #718096; font-size: 15px; }

/* User Actions & Buttons */
.discushub-user-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 10px; }
.discushub-user-status { font-size: 14px; background: #f7fafc; padding: 8px 15px; border-radius: 6px; border: 1px solid #e2e8f0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.discushub-dashboard-link { color: #3182ce; font-weight: 600; text-decoration: none; padding-left: 10px; border-left: 1px solid #cbd5e0; margin-left: 5px; }
.discushub-dashboard-link:hover { text-decoration: underline; }
.discushub-logout-link { color: #e53e3e; text-decoration: none; font-weight: 500; padding-left: 10px; border-left: 1px solid #cbd5e0; }
.discushub-logout-link:hover { text-decoration: underline; }

.discushub-btn { padding: 10px 20px; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; border: none; transition: 0.2s; display: inline-block; text-align: center; }
.discushub-btn-primary { background: #3182ce; color: #fff !important; }
.discushub-btn-primary:hover { background: #2b6cb0; transform: translateY(-1px); }
.discushub-btn-outline { background: transparent; color: #3182ce; border: 1px solid #3182ce; }
.discushub-btn-outline:hover { background: #ebf8ff; }

/* Filters & Search */
.discushub-search-bar-wrap { position: relative; margin-bottom: 20px; }
.discushub-search-bar-wrap input { width: 100%; padding: 14px 20px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
#discushub-search-results { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 99; display: none; overflow: hidden; border: 1px solid #e2e8f0; margin-top: 5px; }
.discushub-search-item { display: block; padding: 12px 18px; color: #2b6cb0; text-decoration: none; border-bottom: 1px solid #edf2f7; font-size: 15px; }
.discushub-search-item:hover { background: #f7fafc; }

.discushub-filters { display: flex; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.discushub-filter-btn { padding: 8px 16px; background: #edf2f7; color: #4a5568; text-decoration: none; border-radius: 20px; font-size: 14px; font-weight: 600; transition: 0.3s; border: 1px solid #e2e8f0; }
.discushub-filter-btn:hover { background: #e2e8f0; }
.discushub-filter-btn.active { background: #3182ce; color: #ffffff; border-color: #3182ce; }

/* Topics List */
.discushub-topic-row { display: flex; align-items: center; background: #fff; padding: 18px 20px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: 0.2s ease-in-out; gap: 20px; }
.discushub-topic-row:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.06); border-color: #cbd5e0; }
.discushub-topic-row.is-pinned { background: #fffff0; border-left: 4px solid #ecc94b; }

.discushub-vote-box { text-align: center; min-width: 60px; background: #f7fafc; padding: 10px 5px; border-radius: 6px; border: 1px solid #edf2f7; }
.discushub-vote-num { display: block; font-size: 20px; font-weight: bold; color: #2d3748; }
.discushub-vote-box small { font-size: 11px; color: #718096; text-transform: uppercase; font-weight: 600; }

.discushub-topic-main { flex: 1; }
.discushub-topic-title { font-size: 18px; font-weight: 600; color: #2b6cb0; text-decoration: none; display: block; margin-bottom: 6px; }
.discushub-topic-title:hover { text-decoration: underline; color: #2c5282; }
.discushub-topic-meta { font-size: 13px; color: #718096; }
.discushub-topic-meta a { color: #4a5568; text-decoration: none; }
.discushub-topic-meta a:hover { text-decoration: underline; }

.discushub-reply-badge { background: #edf2f7; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #4a5568; white-space: nowrap; }
.dh-pin-icon, .dh-lock-icon { font-size: 14px; margin-right: 5px; }

/* User Profile & Dashboard */
.discushub-profile-card { display: flex; align-items: center; gap: 25px; background: #ffffff; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.04); margin-bottom: 35px; flex-wrap: wrap; }
.dh-profile-avatar img { border-radius: 50%; border: 4px solid #ebf8ff; width: 100px; height: 100px; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dh-profile-info { flex: 1; }
.dh-profile-info h2 { margin: 0 0 12px 0; font-size: 26px; color: #2d3748; font-weight: 700; }
.dh-profile-stats { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dh-stat { background: #f7fafc; padding: 6px 14px; border-radius: 20px; font-size: 14px; color: #4a5568; border: 1px solid #edf2f7; font-weight: 500; }
.dh-stat strong { color: #3182ce; font-size: 16px; }

.discushub-badge { display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 700; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-gold { background: #fefcbf; color: #b7791f; border: 1px solid #f6e05e; }
.badge-silver { background: #edf2f7; color: #4a5568; border: 1px solid #cbd5e0; }
.badge-bronze { background: #feebc8; color: #c05621; border: 1px solid #fbd38d; }
.badge-starter { background: #e6fffa; color: #285e61; border: 1px solid #b2f5ea; }

.discushub-profile-recent-title { font-size: 20px; color: #2d3748; margin-bottom: 15px; border-bottom: 2px solid #edf2f7; padding-bottom: 10px; }

/* Single Topic & Replies */
.discushub-breadcrumbs { font-size: 14px; margin-bottom: 20px; color: #718096; background: #f7fafc; padding: 12px 18px; border-radius: 8px; border: 1px solid #edf2f7; }
.discushub-breadcrumbs a { color: #3182ce; text-decoration: none; font-weight: 600; }
.discushub-breadcrumbs .sep { margin: 0 8px; color: #a0aec0; }
.discushub-breadcrumbs .current { color: #2d3748; font-weight: 700; }

.discushub-single-topic { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; padding: 25px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.discushub-topic-header h2 { margin: 0 0 10px 0; font-size: 24px; color: #2d3748; }
.discushub-topic-body-box { display: flex; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #edf2f7; flex-wrap: wrap; }
.discushub-vote-actions { display: flex; flex-direction: column; align-items: center; }
.discushub-vote-btn { background: #edf2f7; border: none; padding: 8px; cursor: pointer; border-radius: 4px; color: #4a5568; font-size: 16px; transition: 0.2s; }
.discushub-vote-btn:hover { background: #e2e8f0; color: #3182ce; }
.discushub-vote-count { font-size: 22px; font-weight: 700; margin-top: 5px; color: #2d3748; }

.discushub-topic-text { flex: 1; font-size: 16px; min-width: 250px; }
.discushub-topic-text img { max-width: 100%; border-radius: 8px; margin-top: 15px; }

/* Moderation Tools */
.dh-mod-actions { width: 100%; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #e2e8f0; display: flex; gap: 10px; flex-wrap: wrap; }
.dh-mod-btn, .dh-report-btn { background: #f7fafc; border: 1px solid #cbd5e0; padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; color: #4a5568; font-weight: 600; transition: 0.2s; }
.dh-report-btn:hover { background: #fff5f5; color: #c53030; border-color: #feb2b2; }
.dh-mod-btn:hover { background: #edf2f7; border-color: #a0aec0; }
.dh-notice { background: #feebc8; color: #c05621; padding: 12px 18px; border-radius: 8px; font-weight: bold; margin-top: 25px; border: 1px solid #fbd38d; display: flex; align-items: center; gap: 10px; }

/* Social Share */
.discushub-social-share { margin: 25px 0; padding: 20px; background: #f7fafc; border-radius: 8px; border: 1px solid #edf2f7; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-label { font-size: 15px; font-weight: 700; color: #4a5568; margin-right: 10px; }
.share-btn { padding: 8px 16px; font-size: 14px; font-weight: 600; color: #fff !important; text-decoration: none; border-radius: 6px; transition: 0.2s; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-in { background: #0A66C2; }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* Replies */
.discushub-replies-section { margin-top: 40px; }
.discushub-replies-section h3 { font-size: 20px; color: #2d3748; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #edf2f7; }
.discushub-reply-card { background: #fdfdfd; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 15px; position: relative; }
.discushub-reply-card.is-best-answer { background: #f0fff4; border-color: #9ae6b4; box-shadow: 0 4px 10px rgba(72,187,120,0.1); }
.discushub-best-badge { position: absolute; top: -12px; right: 20px; background: #38a169; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.discushub-reply-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.discushub-reply-header a { color: #2d3748; text-decoration: none; font-size: 16px; }
.discushub-reply-header a:hover { text-decoration: underline; color: #3182ce; }
.discushub-reply-header small { color: #a0aec0; font-size: 13px; }
.discushub-reply-content { font-size: 15px; color: #4a5568; }
.discushub-mark-best-btn { background: transparent; border: none; color: #38a169; font-weight: 700; font-size: 13px; cursor: pointer; margin-top: 15px; padding: 0; }
.discushub-mark-best-btn:hover { text-decoration: underline; }

/* Forms */
.discushub-form-container { background: #f7fafc; padding: 25px; border-radius: 10px; border: 1px solid #e2e8f0; margin-top: 40px; }
.discushub-form-container h3, .discushub-form-container h4 { margin: 0 0 20px 0; color: #2d3748; }
.discushub-field { margin-bottom: 18px; }
.discushub-field label { display: block; font-weight: 600; color: #4a5568; margin-bottom: 8px; font-size: 14px; }
.discushub-field input[type="text"], .discushub-field select, .discushub-field textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 15px; font-family: inherit; }
.discushub-field textarea { resize: vertical; min-height: 120px; }

/* Toolbar */
.discushub-toolbar { display: flex; gap: 5px; background: #edf2f7; padding: 8px; border: 1px solid #cbd5e0; border-bottom: none; border-radius: 6px 6px 0 0; flex-wrap: wrap; }
.discushub-tb-btn { background: #fff; border: 1px solid #cbd5e0; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 14px; color: #4a5568; font-weight: bold; transition: 0.2s; }
.discushub-tb-btn:hover { background: #e2e8f0; }
.discushub-field textarea { border-radius: 0 0 6px 6px; }

.discushub-auth-prompt-box { text-align: center; background: #ebf8ff; padding: 40px 20px; border-radius: 12px; border: 1px solid #bee3f8; margin-top: 40px; }
.discushub-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.discushub-pagination .page-numbers { padding: 8px 14px; background: #fff; border: 1px solid #cbd5e0; border-radius: 6px; color: #4a5568; text-decoration: none; font-weight: 600; }
.discushub-pagination .page-numbers.current, .discushub-pagination .page-numbers:hover { background: #3182ce; color: #fff; border-color: #3182ce; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .discushub-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .discushub-topic-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .discushub-vote-box { display: flex; gap: 10px; align-items: center; width: 100%; padding: 5px; }
    .discushub-vote-num { font-size: 16px; }
    .discushub-profile-card { flex-direction: column; text-align: center; }
    .dh-profile-stats { justify-content: center; }
    .discushub-topic-body-box { flex-direction: column; }
    .discushub-vote-actions { flex-direction: row; gap: 15px; justify-content: flex-start; margin-bottom: 15px; }
}