/* ============================================================================
   E123 QUESTION CARD - Clean, Predictable Layout
   ============================================================================ */

.e123-question-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.15rem 0.4rem rgba(17, 24, 39, 0.12);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.e123-question-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 0.35rem 0.9rem rgba(79, 70, 229, 0.25);
}

.e123-question-card .ap-questions-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Line 1 · User Row ------------------------------------------------------- */
.e123-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.e123-user-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
}

.e123-avatar img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: block;
}

.e123-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.e123-username {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.e123-username:hover {
    color: #7c3aed;
}

.e123-expertise {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    width: fit-content;
}

.e123-follow-btn {
    border-radius: 999px;
    border: 1px solid #7c3aed;
    background: transparent;
    color: #7c3aed;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.e123-follow-btn:hover,
.e123-follow-btn:focus-visible {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0.35rem 0.8rem rgba(124, 58, 237, 0.3);
}

/* Line 2 · Question Title ------------------------------------------------- */
.e123-question-title a,
.e123-question-title .ap-questions-hyperlink {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    text-decoration: none;
}

.e123-question-title a:hover,
.e123-question-title .ap-questions-hyperlink:hover {
    color: #7c3aed;
}

/* Line 3 · Meta Row ------------------------------------------------------- */
.e123-meta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.e123-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.e123-meta-item i {
    font-size: 0.85rem;
    color: #9ca3af;
}

.e123-meta-row .ap-questions-count {
    border-radius: 0.4rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: #ffffff;
}

.e123-meta-row .ap-questions-vcount {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.e123-meta-row .ap-questions-acount {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.e123-meta-row .ap-questions-count span {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Line 4 · Answer Snippet ------------------------------------------------- */
.e123-answer-snippet {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 0.25rem;
}

.e123-answer-snippet::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), transparent);
}

/* Responsive Tweaks ------------------------------------------------------ */
@media (max-width: 640px) {
    .e123-user-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .e123-follow-btn {
        width: 100%;
        text-align: center;
    }

    .e123-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

