/* شاشة Splash - ابواب الابتكار */
/* تصميم جديد مع تأثيرات حركية - خلفية صفراء */

:root {
    /* تعريف الألوان محلياً لضمان تحميلها */
    --yellow-top: #f5d742;
    --yellow-mid: #f5e6a0;
    --cream: #fff8e7;
    --off-white: #fffef5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

.splash-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* نفس التدرج المستخدم في login.css */
    background: linear-gradient(180deg, #f5d742 0%, #f5e6a0 35%, #fff8e7 70%, #fffef5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* حاوية المحتوى الرئيسي */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    /* زيادة المسافة */
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

/* صورة نبتكر لننمو - في الأعلى */
.splash-nabtaker {
    animation: fadeInDown 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.splash-nabtaker img {
    height: 80px;
    /* تكبير الصورة */
    width: auto;
    object-fit: contain;
    /* ظلال ناعمة مناسبة للخلفية الفاتحة */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

/* صورة ابواب الابتكار IdeasDoors - في المنتصف */
.splash-ideas-doors {
    animation: scaleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    opacity: 0;
    transform: scale(0.8);
}

.splash-ideas-doors img {
    height: 120px;
    /* تكبير الصورة */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

/* حاوية الشعارين المتحركين */
.splash-logos-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

/* شعار HSA Full Logo */
.splash-hsa-logo {
    animation: slideInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.splash-hsa-logo img {
    height: 60px;
    /* تكبير */
    width: auto;
    object-fit: contain;
    /* إزالة filter القوي للحفاظ على ألوان الشعار الأصلية */
}

/* شعار AnimateLogoTwo */
.splash-animate-logo {
    animation: slideInRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    opacity: 0;
    transform: translateX(50px);
}

.splash-animate-logo img {
    height: 60px;
    /* تكبير */
    width: auto;
    object-fit: contain;
}

/* تأثيرات الحركة */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* زر التخطي */
.splash-skip {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.splash-skip:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* توجيه RTL للعربية */
[dir="rtl"] .splash-skip {
    left: auto;
    right: 30px;
}

/* مؤشر التحميل */
.splash-loader {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
    opacity: 0;
}

.splash-loader span {
    width: 12px;
    height: 12px;
    background: #e67e22;
    /* لون برتقالي ليكون واضحاً على الأصفر */
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite;
}

.splash-loader span:nth-child(1) {
    animation-delay: 0s;
}

.splash-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.splash-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loaderBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .splash-nabtaker img {
        height: 60px;
    }

    .splash-ideas-doors img {
        height: 90px;
    }

    .splash-hsa-logo img,
    .splash-animate-logo img {
        height: 45px;
    }

    .splash-content {
        gap: 30px;
    }
}