/* Custom Styles for Gathering Project */

/* إعدادات عامة للاتجاه من اليمين لليسار */
* {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* تحسين الأزرار */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* البطاقات */
.card {
    border-radius: 16px;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hover-lift:hover .gradient-overlay {
    opacity: 1;
}

.icon-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.content-wrapper {
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: pulse 3s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: pulse 3s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-section h1 {
    color: white;
    position: relative;
    z-index: 1;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.hero-section .badge {
    position: relative;
    z-index: 1;
}

.hero-section .btn {
    position: relative;
    z-index: 1;
}

/* أيقونات المميزات */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

/* حركة الأيقونات عند الهوفر */
.icon-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hover-lift:hover .icon-box {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hover-lift:hover .icon-box::before {
    width: 100%;
    height: 100%;
}

.icon-box i {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hover-lift:hover .icon-box i {
    transform: scale(1.1);
}

/* بطاقات الأعضاء */
.member-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.member-avatar {
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-info {
    font-size: 0.9rem;
}

.member-info i {
    margin-left: 8px;
    width: 20px;
}

/* قسم الإحصائيات */
.stats-section .stat-card {
    transition: all 0.3s ease;
}

.stats-section .stat-card:hover {
    transform: scale(1.05);
}

/* صفحة تسجيل الدخول */
.login-section {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
}

.login-section .card {
    border-radius: 20px;
    overflow: hidden;
}

/* لوحة التحكم */
.sidebar {
    position: sticky;
    top: 20px;
}

.list-group-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-right: 20px;
}

.list-group-item.active {
    background-color: #0d6efd;
    color: white;
}

.list-group-item i {
    margin-left: 10px;
    width: 20px;
}

/* الجدول */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* الأزرار في الجدول */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* الشارات */
.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

/* الـ Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* رسائل التنبيه */
.alert {
    border-radius: 12px;
    border: none;
}

/* الأقسام المحتوى */
.content-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* صفحة الأعضاء */
.page-header {
    border-bottom: 3px solid #0d6efd;
}

.page-header h1 {
    font-weight: bold;
    color: #333;
}

/* تحسين البحث */
.input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border: none;
    padding: 0.75rem;
}

.input-group-text {
    background-color: white;
    border: none;
}

/* Spinner التحميل */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* تقنيات صفحة About */
.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tech-item h5 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

/* التحسينات للموبايل */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .member-avatar {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* تحسين النماذج */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* الـ Modal */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: none;
}

/* تحسينات إضافية */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* الرسوم المتحركة */
.animate-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين المساحات */
section {
    padding: 3rem 0;
}

/* ألوان مخصصة */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.text-primary {
    color: #667eea !important;
}

/* إضافات للأداء */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}
