﻿/* عنوان الصفحة */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* رسالة التحميل وعدم وجود واجبات */
.loading-msg, .no-homework-msg {
    text-align: center;
    font-size: 20px;
    color: #ff6b6b;
    font-weight: bold;
}

/* الحاوية العامة */
.homework-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* كارت الواجب */
.homework-card {
    background: linear-gradient(to right, #ffefc7, #ffdab9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease-in-out;
}

    .homework-card:hover {
        transform: scale(1.05);
    }

/* صورة الواجب */
.homework-img {
    width: 100%;
    border-radius: 12px;
    border: 3px solid #ff8c42;
    margin-bottom: 10px;
}

/* العنوان داخل كل واجب */
.homework-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

/* الأزرار */
.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    background: #ffcc70;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .choice-btn:hover {
        background: #ff8c42;
        transform: scale(1.05);
    }

/* الرسائل */
.feedback {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
}

.correct {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* صورة برافو */
.bravo-img {
    width: 80px;
    margin-top: 10px;
}

/* ✅ تصميم المربع المنبثق */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: popupShow 0.4s ease-in-out;
    position: relative;
}

.popup-correct {
    border: 5px solid #28a745;
    background-color: #eafbe6;
    color: #155724;
}

.popup-wrong {
    border: 5px solid #dc3545;
    background-color: #fdecea;
    color: #721c24;
}

.popup-image {
    width: 100px;
    height: auto;
    margin: 15px auto;
    display: block;
    animation: pulse 1s infinite; /* ✅ تم إضافة التأثير هنا */
}

.close-popup {
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

    .close-popup:hover {
        background: linear-gradient(to right, #5b0ee3, #1e60d2);
        transform: scale(1.05);
    }

@keyframes popupShow {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ✅ تأثير نبض للحركة */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}
