/**
 * ملف CSS مخصص لصفحات الخدمات الطبية
 * يحتوي على تصاميم وتأثيرات خاصة بصفحات الخدمات
 */

/* ===== Hero Section Styles ===== */
.hero-section-services {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.hero-section-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-section-services .container {
    position: relative;
    z-index: 2;
}

/* ===== Service Cards ===== */
.service-card {
    transition: all 0.3s ease;
}

.service-card .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background-color: #0d6efd !important;
}

.service-card:hover .service-icon i {
    color: white !important;
}

/* ===== Center Cards ===== */
.center-card {
    transition: all 0.3s ease;
}

.center-card .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.center-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.center-card .card-img-top {
    transition: all 0.3s ease;
}

.center-card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== Service Link Cards ===== */
.service-link-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #dee2e6 !important;
}

.service-link-card:hover {
    background-color: #f8f9fa !important;
    border-color: #0d6efd !important;
    transform: translateX(-3px);
}

.service-link-card:hover .text-dark {
    color: #0d6efd !important;
}

.service-link-card:hover .bi-arrow-left {
    transform: translateX(-3px);
    transition: transform 0.3s ease;
}

/* ===== Gradient Backgrounds ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

/* ===== Hover Effects ===== */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* ===== Search Section ===== */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== Stats Section ===== */
.stats-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
}

/* ===== Breadcrumb Styles ===== */
.breadcrumb-item + .breadcrumb-item::before {
    content: "←";
    color: rgba(255,255,255,0.5);
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.9) !important;
}

/* ===== Button Styles ===== */
.btn-services {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-services:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-services:active {
    transform: translateY(0);
}

/* ===== Text Shadows ===== */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    .hero-section-services {
        min-height: 50vh;
    }
    
    .service-card:hover .card {
        transform: translateY(-4px);
    }
    
    .center-card:hover .card {
        transform: translateY(-3px);
    }
}

@media (max-width: 767.98px) {
    .hero-section-services {
        min-height: 40vh;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .service-icon i {
        font-size: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section-services {
        min-height: 35vh;
    }
    
    .service-card .card-body {
        padding: 1rem !important;
    }
    
    .center-card .card-body {
        padding: 1rem !important;
    }
    
    .btn-services {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-in-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-in-out;
}

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

/* ===== Loading States ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Custom Scrollbar ===== */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ===== Print Styles ===== */
@media print {
    .hero-section-services,
    .search-section,
    .btn,
    .navbar,
    .footer {
        display: none !important;
    }
    
    .service-card .card,
    .center-card .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
