/* تنظیمات کلی */
body {
    direction: rtl;
    font-family: 'Vazir', 'Open Sans', sans-serif; /* Vazir برای فارسی، Open Sans به عنوان بکاپ */
}

/* کانتینر اصلی */
#ceg-game {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* کانتینر آزمون */
.quiz-container {
    background: url('<?php echo CEG_PLUGIN_URL; ?>assets/images/culinary-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #4A2C2A;
}

/* دکمه‌های منوی تست */
.test-btn {
    background: #ff6b6b; /* رنگ قرمز روشن */
    color: white;
    padding: 15px 30px;
    margin: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.test-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.test-btn.locked {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* گزینه‌های سوال */
.option-btn {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 15px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.option-btn.correct {
    background: #2ecc71; /* سبز */
    color: white;
    animation: shake 0.5s;
    transform: scale(1.1);
}

.option-btn.incorrect {
    background: #e74c3c; /* قرمز */
    color: white;
    transform: scale(0.9);
}

/* انیمیشن لرزش */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* نوار پیشرفت */
#progress-bar {
    width: 100%;
    height: 20px;
    margin: 15px 0;
    background: #eee;
    border-radius: 10px;
    transition: value 0.5s ease;
}

/* نتیجه */
#result {
    font-weight: bold;
    margin: 20px 0;
    font-size: 18px;
}

/* دکمه تلاش دوباره */
.retry-btn {
    background: #f39c12; /* نارنجی */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.retry-btn:hover {
    transform: scale(1.05);
}

/* ویدیو پاداش */
.reward-video {
    width: 100%;
    height: 200px;
    margin-top: 15px;
    border-radius: 5px;
}

/* فرم ایمیل پاپ‌آپ */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 0.5s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
}

#email-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.submit-btn {
    background: #8e44ad; /* بنفش */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: scale(1.05);
}

/* انیمیشن ورود */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}