/* تحسينات إضافية لتنسيق الموقع */

/* تحسين تصميم الحاوية الرئيسية */
.container {
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* تحسين تأثير التلاشي */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* تحسين مظهر الشعار */
.logo {
    display: inline-block;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.logo i {
    background: linear-gradient(135deg, #2980b9, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(41, 128, 185, 0.4));
}

/* تحسين مظهر العنوان */
h1 {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* تحسين حاوية الحديث */
.hadith-container {
    transition: all 0.4s ease;
    border-right: 5px solid #2980b9;
    border-left: 1px solid rgba(41, 128, 185, 0.2);
    border-top: 1px solid rgba(41, 128, 185, 0.2);
    border-bottom: 1px solid rgba(41, 128, 185, 0.2);
}

.hadith-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* تحسين نص الحديث */
#hadith-text {
    position: relative;
    z-index: 1;
}

#hadith-text::after {
    content: "\201C";
    position: absolute;
    left: 0;
    bottom: -20px;
    font-size: 5rem;
    color: rgba(52, 152, 219, 0.1);
    line-height: 0;
    z-index: -1;
}

/* تحسين الأزرار */
.buttons-container {
    gap: 2rem;
}

button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

button:hover::before {
    width: 100%;
}

/* تحسين التذييل */
footer {
    border-top: 1px solid rgba(127, 140, 141, 0.15);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
}

/* تحسين الروابط الاجتماعية */
.social-links {
    margin-top: 1.2rem;
}

.social-links a {
    background-color: #f8f9fa;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    background-color: #3498db;
    color: white !important;
}

/* تحسين تجربة المستخدم على الأجهزة المحمولة */
@media screen and (max-width: 600px) {
    .main-nav {
        padding: 0.3rem;
        max-width: 90%;
    }
    
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .buttons-container {
        gap: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* إضافة تأثير نبض للأزرار */
@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

#share-image-btn {
    animation: pulse-button 2s infinite;
}

/* تحسين بطاقة مشاركة الحديث */
.hadith-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f3ff 100%);
}

.card-content {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* تحسين مظهر الصفحات الإضافية */
.about-container {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(248, 249, 250, 0.9);
}

/* زر العودة لأعلى الصفحة */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2980b9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
