/* ============================================================
   Expert Q&A Styles
   ============================================================ */

.qa-container {
    padding: 40px 0;
}

.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.qa-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.ask-question-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ask-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

/* Question Cards */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 4px solid #667eea;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.question-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.question-title a {
    color: #667eea;
    text-decoration: none;
}

.question-title a:hover {
    text-decoration: underline;
}

.question-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.question-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.question-preview {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.question-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.question-tag {
    background: #f1f5f9;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.question-difficulty {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.difficulty-beginner {
    background: #dbeafe;
    color: #1e40af;
}

.difficulty-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-advanced {
    background: #fee2e2;
    color: #991b1b;
}

/* Answer Container */
.answers-section {
    margin-top: 30px;
}

.answers-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.answer-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #10b981;
}

.answer-item.accepted {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.answer-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.answer-role {
    display: inline-block;
    padding: 2px 6px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.answer-role.verified {
    background: #dcfce7;
    color: #15803d;
}

.answer-role.certified {
    background: #fef3c7;
    color: #92400e;
}

.answer-time {
    font-size: 12px;
    color: #94a3b8;
}

.answer-content {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.answer-actions {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.vote-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-vote {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-vote:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-vote.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.vote-count {
    font-weight: 600;
    color: #667eea;
    margin: 0 4px;
}

.btn-action {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-action:hover {
    color: #764ba2;
    text-decoration: underline;
}

.accepted-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Expert Profile */
.expert-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f59e0b;
}

.expert-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.expert-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #1e293b;
}

.expert-label {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.expert-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.expert-stat {
    text-align: center;
}

.expert-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.expert-stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Filter & Search */
.qa-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Status Badges */
.status-open {
    background: #dbeafe;
    color: #1e40af;
}

.status-answered {
    background: #dcfce7;
    color: #15803d;
}

.status-closed {
    background: #e5e7eb;
    color: #374151;
}

.status-featured {
    background: #fef3c7;
    color: #92400e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .qa-header {
        flex-direction: column;
        gap: 15px;
    }

    .qa-header h1 {
        font-size: 24px;
    }

    .question-stats {
        gap: 10px;
    }

    .question-meta {
        flex-direction: column;
        gap: 8px;
    }

    .expert-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .answer-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .question-card,
    .answer-item,
    .expert-card {
        background: #1e293b;
        border-color: #475569;
    }

    .question-title,
    .answer-author {
        color: #e2e8f0;
    }

    .question-preview,
    .answer-content {
        color: #cbd5e1;
    }

    .question-meta,
    .answer-time {
        color: #94a3b8;
    }

    .filter-btn {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }

    .filter-btn:hover,
    .filter-btn.active {
        background: #667eea;
        border-color: #667eea;
        color: white;
    }
}
