/* =============================================
 * أنماط الصفحة الرئيسية — Slider, Gallery, Social
 * ============================================= */

/* === Slider === */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .slider-container {
        height: 80vh;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    left: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    z-index: 3;
}

@media (min-width: 768px) {
    .slide-caption {
        left: auto;
        right: 5rem;
        max-width: 28rem;
        padding: 1.5rem 2rem;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 4;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 4;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Fallback hero */
.hero-fallback {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Social Media Icons */
.social-link-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 8px;
    color: #2563eb;
    font-size: 24px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link-mobile:hover {
    color: #1d4ed8;
    background-color: rgba(29, 78, 216, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Background patterns (replacing broken inline SVGs) */
.bg-pattern-dots {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.bg-pattern-circles {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .social-link-mobile {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin: 0 6px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .social-link-mobile .fa-facebook,
    .social-link-mobile .fa-facebook-f {
        font-size: 22px;
        line-height: 1;
    }
}

@media (max-width: 480px) {
    .social-link-mobile {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0 4px;
    }
    
    .social-link-mobile .fa-facebook,
    .social-link-mobile .fa-facebook-f {
        font-size: 20px;
    }
}
