/* ========================================
   قسم الفوتر - Footer Section
   الملف: public/web/css/footer.css
======================================== */

/* ========================================
   الجزء العلوي من الفوتر
======================================== */
.main-footer {
    position: relative;
}

.footer-top {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mohammed-almalgami.com/public/web/img/pattern-3.jpg');
    opacity: 0.02;
    pointer-events: none;
}

/* الأشكال الزخرفية */
.footer-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.footer-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
    top: -200px;
    right: -200px;
}

.footer-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    bottom: -150px;
    left: -150px;
}

/* ========================================
   الـ Widgets
======================================== */
.footer-widget {
    margin-bottom: 40px;
}

/* عنوان الـ Widget */
.widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, transparent);
}

.widget-title i {
    color: #ffd700;
    font-size: 18px;
}

/* ========================================
   Widget - معلومات الموقع
======================================== */
.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 25px;
}

/* الشارات */
.footer-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
}

.badge-item i {
    color: #ffd700;
    font-size: 18px;
}

.badge-item span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* روابط التواصل الاجتماعي */
.footer-widget .social-links {
    display: flex;
    gap: 12px;
}

.footer-widget .social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.footer-widget .social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
}

.social-link.whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }
.social-link.facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4); }
.social-link.twitter:hover { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4); }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4); }
.social-link.linkedin:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4); }
.social-link.github:hover { background: #333; border-color: #333; box-shadow: 0 10px 25px rgba(51, 51, 51, 0.4); }

/* ========================================
   Widget - الروابط
======================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.footer-links a i {
    font-size: 10px;
    color: #ffd700;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
    transform: translateX(-8px);
}

.footer-links a:hover i {
    transform: translateX(-5px);
}

/* ========================================
   Widget - معلومات التواصل
======================================== */
.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.contact-icon.email { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.contact-icon.location { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.contact-icon.time { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.contact-details .value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.contact-details .value.available {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00c853;
}

.contact-details .value .dot {
    width: 8px;
    height: 8px;
    background: #00c853;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* زر التواصل */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.footer-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.footer-cta-btn i {
    font-size: 20px;
}

/* ========================================
   النشرة البريدية
======================================== */
.newsletter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ffab00);
    border-radius: 20px;
    color: #1a1a2e;
    font-size: 28px;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.newsletter-text h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.newsletter-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    transition: all 0.3s ease;
}

.newsletter-form .input-group:focus-within {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    min-width: 280px;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ffd700, #ffab00);
    border: none;
    border-radius: 50px;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.newsletter-form button i {
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(-5px);
}

/* ========================================
   شريط التقنيات
======================================== */
.tech-strip {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.tech-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.tech-icons-strip {
    display: flex;
    align-items: center;
    gap: 25px;
}

.tech-icons-strip i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icons-strip i:hover {
    transform: translateY(-5px) scale(1.2);
}

.tech-icons-strip i.fa-html5:hover { color: #e34f26; }
.tech-icons-strip i.fa-css3-alt:hover { color: #1572b6; }
.tech-icons-strip i.fa-js-square:hover { color: #f7df1e; }
.tech-icons-strip i.fa-php:hover { color: #777bb4; }
.tech-icons-strip i.fa-laravel:hover { color: #ff2d20; }
.tech-icons-strip i.fa-vuejs:hover { color: #4fc08d; }
.tech-icons-strip i.fa-react:hover { color: #61dafb; }
.tech-icons-strip i.fa-node-js:hover { color: #339933; }
.tech-icons-strip i.fa-android:hover { color: #3ddc84; }
.tech-icons-strip i.fa-apple:hover { color: #a2aaad; }
.tech-icons-strip i.fa-wordpress:hover { color: #21759b; }
.tech-icons-strip i.fa-bootstrap:hover { color: #7952b3; }

/* ========================================
   الجزء السفلي - حقوق النشر
======================================== */
.footer-bottom {
    background: #0a0a1a;
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.copyright a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #fff;
}

.copyright i.fa-heart {
    color: #ff4757;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* الروابط القانونية */
.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffd700;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* طرق الدفع */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-methods span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icons i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: #fff;
    transform: scale(1.1);
}

/* ========================================
   زر العودة للأعلى
======================================== */
.scroll-top-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
}

.scroll-top-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: none;
    border-radius: 50%;
    color: #ffd700;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.scroll-top-btn i {
    position: relative;
    z-index: 2;
}

.progress-ring {
    position: absolute;
    top: 0;
    right: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.1s ease;
}

/* ========================================
   زر الواتساب العائم
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-btn i {
    font-size: 24px;
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50px;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* ========================================
   التجاوب مع الشاشات
======================================== */
@media (max-width: 1199px) {
    .newsletter-section {
        flex-direction: column;
        text-align: center;
        padding: 35px;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 250px;
    }
}

@media (max-width: 991px) {
    .footer-top {
        padding: 70px 0 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-strip-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .tech-icons-strip {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer-badges {
        flex-wrap: wrap;
    }
    
    .badge-item {
        flex: 0 0 calc(50% - 10px);
        justify-content: center;
    }
    
    .newsletter-section {
        padding: 30px 20px;
    }
    
    .newsletter-form input {
        min-width: 200px;
    }
    
    .newsletter-form button span {
        display: none;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 8px;
    }
    
    .scroll-top-container,
    .whatsapp-float {
        left: 20px;
        bottom: 20px;
    }
    
    .whatsapp-btn .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

@media (max-width: 575px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .widget-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-desc {
        font-size: 14px;
    }
    
    .footer-widget .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .newsletter-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .newsletter-text h4 {
        font-size: 18px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .newsletter-form input {
        min-width: 100%;
        border-radius: 12px;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
    
    .newsletter-form button span {
        display: inline;
    }
    
    .tech-icons-strip i {
        font-size: 22px;
    }
    
    .copyright p {
        font-size: 13px;
    }
}