/* =========================================
   Level Up Game - Full Design v2.0
   ========================================= */

/* מיכל ראשי */
.level-up-game {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    max-width: 800px;
    margin: 0 auto;
}

/* כותרת וסטטיסטיקה */
.lu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f1;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #e5e5e5;
}

.lu-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
}

.lu-stats {
    font-weight: bold;
    color: #555;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* אזור המשחק והכרטיסייה */
.lu-content {
    background: #fff;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    border-top: none;
    min-height: 300px;
}

.lu-question-card {
    animation: fadeIn 0.4s ease-out;
}

/* טקסט השאלה */
.lu-question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 600;
}

/* תמונות בשאלות (החלק החדש) */
.lu-q-image {
    text-align: center;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.lu-q-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

/* כפתורי התשובות */
.lu-options {
    display: grid;
    grid-template-columns: 1fr 1fr; /* שתי עמודות */
    gap: 15px;
    margin-bottom: 20px;
}

/* במובייל - עמודה אחת */
@media (max-width: 600px) {
    .lu-options {
        grid-template-columns: 1fr;
    }
}

.lu-opt-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lu-opt-btn:hover:not(:disabled) {
    border-color: #3498db;
    background: #f0f8ff;
    transform: translateY(-2px);
}

/* מצבי תשובה (נכון/לא נכון) */
.lu-opt-btn.correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    font-weight: bold;
}

.lu-opt-btn.wrong {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    opacity: 0.7;
}

/* אזור המשוב */
.lu-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}

.msg-success {
    color: #28a745;
    font-weight: bold;
}

.msg-error {
    color: #dc3545;
}

.next-q-btn {
    margin-top: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* פופ-אפ "כל הכבוד" (החלק החדש) */
.lu-popup {
    position: fixed; /* או absolute אם בתוך הcontainer */
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* רקע כהה חצי שקוף */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.lu-popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 400px;
    position: relative;
}

.lu-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce 1.5s infinite;
}

#lu-continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    transition: transform 0.2s;
}

#lu-continue-btn:hover {
    transform: scale(1.05);
}

/* אנימציות */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}
/* --- עיצוב הרמזים --- */
.lu-hint-wrapper {
    margin-bottom: 20px;
    text-align: right;
}

.lu-hint-toggle {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lu-hint-toggle:hover {
    background: #ffe8a1;
    transform: translateY(-1px);
}

.lu-hint-content {
    margin-top: 10px;
    background: #fffbf0;
    padding: 15px;
    border-right: 4px solid #ffeeba;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #555;
    animation: fadeIn 0.3s;
}

/* --- עדכון לכותרת --- */
.lu-header {
    display: block; /* שינוי מ-flex כדי לאפשר שורות */
    padding: 0;     /* איפוס פדינג חיצוני */
    background: #f8f9fa;
}

.lu-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* --- בר התקדמות (Progress Bar) --- */
.lu-progress-container {
    background: #e9ecef;
    width: 100%;
    height: 8px; /* גובה הפס */
    position: relative;
    border-radius: 0; /* ישר ומקצועי */
}

.lu-progress-bar {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.lu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66bb6a);
    width: 0%;
    transition: width 0.6s ease-in-out; /* אנימציה חלקה */
    border-radius: 0 4px 4px 0;
}

.lu-progress-text {
    position: absolute;
    top: -30px; /* ממוקם ליד הכותרת */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 10px;
}