/*========================= SUPER ENHANCED FOOTER =========================*/
.main-footer {
    position: relative;
    background: url("/assets/images/pg1.jpg") center/cover no-repeat;
    color: white;
    padding: 3rem 0 1.5rem;
    border-top: 6px solid var(--secondary-dark);
    margin-top: auto;
    overflow: hidden;
    z-index: 1;
}

/* Overlay */
.main-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(26, 54, 93, 0.85) 0%,
            rgba(45, 55, 72, 0.85) 100%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(229, 62, 62, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(251, 191, 36, 0.1) 0%,
            transparent 50%
        );
    z-index: -1;
}

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

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* الصف العلوي - تصميم شبكي مربع */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s ease;
    transform-origin: center;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

.footer-description {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 450px;
    font-weight: 300;
    position: relative;
    padding-right: 2rem;
    border-right: 3px solid var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-social .social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.footer-social .social-link:hover::before {
    left: 100%;
}

.footer-social .social-link:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--secondary-dark) 100%
    );
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.5);
    border-color: transparent;
}

/* النشرة البريدية - تصميم مميز */
.footer-newsletter {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.footer-newsletter::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(251, 191, 36, 0.1),
        transparent,
        rgba(229, 62, 62, 0.1),
        transparent
    );
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.newsletter-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #fbbf24);
    border-radius: 2px;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 300;
}

.newsletter-form {
    margin-top: 1.5rem;
    position: relative;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.input-group:focus-within {
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.newsletter-input {
    flex: 1;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    min-width: 0;
    font-weight: 300;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--secondary-dark) 100%
    );
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.newsletter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #9b2c2c 100%);
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.4);
}

/* الصف الأوسط - تصميم أفقي للروابط */
.footer-middle {
    margin: 2rem 0;
}

.footer-links-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-links-horizontal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.footer-links-list-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link-horizontal {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    position: relative;
    display: block;
    font-weight: 400;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link-horizontal::before {
    content: "➤";
    position: absolute;
    right: -1.2rem;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--secondary-dark);
    font-weight: bold;
}

.footer-link-horizontal:hover {
    color: white;
    background: rgba(251, 191, 36, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.footer-link-horizontal:hover::before {
    opacity: 1;
    right: -1.5rem;
}

/* الخط الفاصل المميز */
.footer-divider {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        var(--secondary-color) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    margin: 2rem 0;
    position: relative;
}

.footer-divider::before {
    content: "✦";
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background: var(--primary-color);
    color: #fbbf24;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 2px solid #fbbf24;
}

/* الصف السفلي - معدل بالكامل */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    gap: 1.5rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-separator {
    color: rgba(251, 191, 36, 0.6);
    font-size: 1.2rem;
    font-weight: bold;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 300;
}

.legal-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
}

.legal-link:hover {
    color: white;
}

.legal-link:hover::after {
    width: 100%;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

.developer-credit {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
}

.developer-link {
    color: #fbbf24 !important;
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 700;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    cursor: pointer;
}

.developer-link:hover {
    color: white !important;
    background: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* نافذة المبرمج - مخفية نهائياً */
.developer-modal {
    display: none !important;
}

/* زر الشكاوى العائم */
.complaint-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.complaint-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.complaint-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.complaint-btn i {
    font-size: 1.2rem;
}

/*========================= RESPONSIVE DESIGN =========================*/
@media (max-width: 1200px) {
    .footer-links-list-horizontal {
        gap: 2rem;
    }
    .footer-top {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    .footer-description {
        padding-right: 0;
        border-right: none;
        text-align: center;
        border-bottom: 3px solid var(--secondary-color);
        padding-bottom: 2rem;
        max-width: 100%;
    }
    .footer-links-list-horizontal {
        gap: 1.5rem;
    }
    .footer-link-horizontal {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 1rem;
    }

    .footer-links-horizontal {
        padding: 2rem;
    }

    .footer-links-list-horizontal {
        gap: 1rem;
    }

    .footer-link-horizontal {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .footer-legal {
        gap: 0.8rem;
    }

    .legal-separator {
        margin: 0 0.2rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: var(--border-radius);
    }

    .newsletter-btn {
        justify-content: center;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .footer-social {
        justify-content: center;
    }

    .complaint-float-btn {
        bottom: 20px;
        left: 20px;
    }

    .complaint-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.2rem;
    }

    .footer-logo {
        height: 150px;
    }

    .footer-newsletter {
        padding: 2rem 1.5rem;
    }

    .newsletter-input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .newsletter-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.8rem;
    }

    .legal-separator {
        display: none;
    }

    .footer-links-horizontal {
        padding: 1.5rem;
    }

    .footer-links-list-horizontal {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .footer-link-horizontal {
        width: 100%;
        text-align: center;
    }

    .footer-copyright p {
        font-size: 0.95rem;
    }

    .developer-credit {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 400px) {
    .footer-logo {
        height: 120px;
    }

    .footer-newsletter {
        padding: 1.5rem 1rem;
    }

    .footer-copyright p {
        font-size: 0.85rem;
    }

    .legal-link {
        font-size: 0.9rem;
    }

    .complaint-btn {
        padding: 8px 16px;
    }

    .complaint-btn i {
        font-size: 1.1rem;
    }
}

/*========================= زر العودة إلى الأعلى =========================*/
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--secondary-dark) 100%
    );
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
    text-decoration: none;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #9b2c2c 100%);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.6);
}

.scroll-top-btn i {
    font-size: 1.5rem;
    animation: floatUp 2s ease-in-out infinite;
}

/* حركة الطفو للسهـم */
@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* تنسيق متجاوب */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-top-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
