/* Shared engagement panel used by the "give me an answer" tools:
   streak counter, optional question box, result history chips, and
   share buttons. */

.engagement-panel {
    width: 100%;
    max-width: 480px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.streak-badge {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.question-input-row {
    width: 100%;
}

.question-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
}

.question-input:focus {
    outline: none;
    border-color: #667eea;
}

.history-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    min-height: 1.5rem;
}

.history-chips .history-label {
    color: #6c757d;
    font-weight: 600;
    margin-right: 0.2rem;
}

.history-chips .chip {
    background: #eef1ff;
    color: #4c4fa0;
    border-radius: 14px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-twitter {
    background: #000000;
}

.share-whatsapp {
    background: #25d366;
}

[data-theme="dark"] .streak-badge,
[data-theme="dark"] .share-label {
    color: #adb5bd;
}

[data-theme="dark"] .question-input {
    background: #34495e;
    border-color: #2c3e50;
    color: #e9ecef;
}

[data-theme="dark"] .history-chips .chip {
    background: #34495e;
    color: #a3b1ff;
}
