/* =================================================================
   COMPONENT: Trivia Game Widget
   STYLE: "Butter-Smooth"
   ================================================================= */
.bp-trivia-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    max-width: 100%; /* Fits container */
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    transition: transform 0.2s ease;
}
.bp-trivia-card:hover { transform: translateY(-2px); }

/* Header */
.bp-trivia-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 2px solid #f4f4f4; padding-bottom: 10px;
}
.bp-trivia-header h3 { margin: 0; font-size: 1.1rem; color: #2c3e50; font-weight: 700; }
.bp-badge { background: #FFD700; color: #333; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; font-weight: bold; }

/* Image Area */
.bp-trivia-image-container {
    position: relative; width: 100%; height: 250px; /* Compact height */
    background: #f9f9f9; border-radius: 8px; overflow: hidden; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center;
}
#bp-trivia-img { width: 100%; height: 100%; object-fit: cover; display: none; }

/* Spinner */
.bp-spinner {
    width: 30px; height: 30px; border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Controls */
.bp-trivia-controls { display: flex; gap: 8px; margin-bottom: 10px; }
#bp-trivia-input {
    flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95rem;
}
.btn-primary {
    background: #3498db; color: white; border: none; padding: 0 16px;
    border-radius: 6px; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { background: #2980b9; }

/* Feedback & Actions */
.bp-feedback-area { padding: 8px; border-radius: 6px; margin-bottom: 10px; font-weight: 600; text-align: center; font-size: 0.9rem; }
.bp-feedback-area.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.bp-feedback-area.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.bp-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.btn-secondary { background: #2ecc71; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.btn-link { background: none; border: none; color: #7f8c8d; text-decoration: underline; font-size: 0.8rem; cursor: pointer; }
.hidden { display: none !important; }