/* أنماط أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #2c3e50;
    min-height: 100vh;
}

/* الهيدر */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #3498db;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
    color: #2980b9;
}

.logo i {
    margin-left: 10px;
    font-size: 28px;
}

/* أزرار المصادقة */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    display: inline-block;
}

.auth-btn.active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-btn {
    background-color: #f1f1f1;
    color: #333;
}
.logout-btn{
   background-color: #d80000;
    color: #333; 
}
.login-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.logout-btn:hover {
    background-color: #a12a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.signup-btn {
    background-color: #3498db;
    color: white;
}

.signup-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* المحتوى الرئيسي */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 5% 80px;
    text-align: center;
    position: relative;
}

.welcome-text {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: 700;
    animation: fadeInUp 0.8s ease forwards;
}

/* مربع البحث */
.search-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.search-box {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 18px;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.search-box:focus {
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 20px;
}

.search-button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-button:hover {
    background-color: #27ae60;
    transform: translateY(-50%) scale(1.05);
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* التصميم للجوالات */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .auth-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .welcome-text {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .search-box {
        padding: 15px 50px 15px 45px;
        font-size: 16px;
    }
    
    .search-icon {
        left: 20px;
        font-size: 18px;
    }
    
    .search-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .welcome-text {
        font-size: 1.5rem;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: space-around;
    }
    
    .auth-btn {
        width: 45%;
        text-align: center;
    }
}
.auth-list-item {
    list-style-type: none;
}
.user-greeting {
    font-size: 1.15em; /* حجم أكبر قليلاً */
    color: #f0f0f0; /* لون فاتح مناسب للخلفية الغامقة */
    font-weight: 600; /* خط شبه عريض */
    display: flex; /* استخدم فليكس بوكس لـ "مرحبا بك" والاسم */
    align-items: center; /* محاذاة عمودية */
    gap: 7px; /* مسافة بين "مرحبا بك" والاسم */
    padding: 8px 12px; /* بادينج خفيف حول الاسم */
    border-radius: 5px; /* حواف دائرية */
    background-color: rgba(255, 255, 255, 0.1); /* خلفية شفافة خفيفة */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* ظل خفيف */
    transition: all 0.3s ease; /* انتقال سلس عند التغيير */
}

.user-greeting:hover {
    background-color: rgba(255, 255, 255, 0.2); /* تتغير الخلفية عند مرور الماوس */
    transform: translateY(-2px); /* تأثير بسيط للرفع */
}

.welcome-text-span {
    color: #2c3e50; /* لون أخضر فاتح لـ "مرحبا بك" */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* ظل نصي خفيف */
}

.username-span {
    color: #3498db; /* لون أبيض نقي لاسم المستخدم */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* ظل نصي خفيف */
    padding-bottom: 3px;
    position: relative; /* لتحديد مكان الخط السفلي */
}

/* تأثير خط تحت الاسم عند المرور بالماوس */
.username-span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff; /* لون الخط */
    transition: width 0.3s ease-out; /* انتقال سلس لظهور الخط */
}

.username-span:hover::after {
    width: 100%; /* الخط يظهر بالكامل عند مرور الماوس */
}


