/**
 * أنماط صفحة الخطأ المانجا
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

body.manga-error-page {
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    overflow-x: hidden;
    direction: rtl;
}

#manga-error-container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#manga-error-bubble {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid #333;
}

#manga-error-bubble:before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 40px;
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: #333 transparent;
}

#manga-error-bubble:after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 43px;
    border-width: 17px 17px 0;
    border-style: solid;
    border-color: #fff transparent;
}

.manga-character {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
}

.manga-character .head {
    width: 150px;
    height: 180px;
    background: #FFE0BD;
    border-radius: 50% 50% 45% 45%;
    position: relative;
    margin: 0 auto;
    border: 3px solid #333;
    overflow: hidden;
}

.manga-character .eye {
    width: 40px;
    height: 50px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 60px;
    border: 3px solid #333;
    overflow: hidden;
}

.manga-character .eye.left {
    left: 30px;
    transform: rotate(-10deg);
}

.manga-character .eye.right {
    right: 30px;
    transform: rotate(10deg);
}

.manga-character .eye .pupil {
    width: 15px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 12px;
}

.manga-character .eye .highlight {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 3px;
}

.manga-character .eyebrow {
    width: 40px;
    height: 8px;
    background: #333;
    position: absolute;
    top: 45px;
}

.manga-character .eyebrow.left {
    left: 30px;
    transform: rotate(-20deg);
}

.manga-character .eyebrow.right {
    right: 30px;
    transform: rotate(20deg);
}

.manga-character .mouth {
    width: 40px;
    height: 10px;
    background: #333;
    position: absolute;
    bottom: 40px;
    left: calc(50% - 20px);
    border-radius: 0 0 10px 10px;
}

.manga-character .sweat {
    width: 15px;
    height: 25px;
    background: #8DD7F7;
    position: absolute;
    top: 50px;
    right: 10px;
    border-radius: 50%;
    border: 2px solid #333;
}

.manga-character .body {
    width: 180px;
    height: 100px;
    background: #FF7B7B;
    position: relative;
    margin: -20px auto 0;
    border-radius: 30px 30px 0 0;
    border: 3px solid #333;
    z-index: -1;
}

.manga-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.manga-effect {
    position: absolute;
    font-weight: bold;
    font-size: 24px;
    color: #333;
}

.effect1 {
    top: 10%;
    left: 10%;
    transform: rotate(-20deg);
}

.effect2 {
    top: 20%;
    right: 10%;
    transform: rotate(15deg);
}

.effect3 {
    bottom: 15%;
    left: 15%;
    transform: rotate(-10deg);
}

.effect4 {
    bottom: 10%;
    right: 15%;
    transform: rotate(5deg);
}

.manga-title {
    font-size: 60px;
    font-weight: bold;
    color: #FF3B3B;
    text-align: center;
    text-shadow: 3px 3px 0 #333;
    margin: 20px 0;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.manga-message {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.manga-button {
    display: inline-block;
    padding: 12px 25px;
    background: #FF3B3B;
    color: white !important;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #333;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 0 #333;
    position: relative;
    top: 0;
}

.manga-button:hover {
    box-shadow: 0 3px 0 #333;
    top: 2px;
    color: white !important;
    text-decoration: none;
}

.manga-error-code {
    font-size: 18px;
    color: #888;
    margin-top: 20px;
}

/* إضافة حركة للشخصية */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.manga-character {
    animation: shake 2s ease-in-out infinite;
}

/* إضافة حركة للفقاعة */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#manga-error-bubble {
    animation: float 4s ease-in-out infinite;
}

/* إضافة علامات التعجب متحركة */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.manga-effect {
    animation: pulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.5s);
}

.effect1 { --i: 0; }
.effect2 { --i: 1; }
.effect3 { --i: 2; }
.effect4 { --i: 3; }

/* تعديلات متوافقة مع الموبايل */
@media (max-width: 768px) {
    .manga-title {
        font-size: 40px;
    }
    
    .manga-message {
        font-size: 18px;
    }
    
    .manga-character {
        width: 200px;
        height: 200px;
    }
    
    .manga-character .head {
        width: 120px;
        height: 140px;
    }
    
    .manga-character .eye {
        width: 30px;
        height: 40px;
        top: 50px;
    }
    
    .manga-character .eye.left {
        left: 20px;
    }
    
    .manga-character .eye.right {
        right: 20px;
    }
    
    .manga-character .body {
        width: 140px;
        height: 80px;
    }
} 