/* ===========================================
   Custom Modern Footer - Madrastak
   Matching Site's Flat & Clean Design
============================================== */

/* Footer Area */
.footer__area {
    background: linear-gradient(180deg, #1a1f2e 0%, #141824 100%);
    color: #a0a8b8;
    position: relative;
    overflow: hidden;
}

/* Subtle Pattern Overlay */
.footer__area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Footer Top Section */
.footer__top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer Logo */
.footer__widget .logo {
    margin-bottom: 24px !important;
}

.footer__widget .logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Footer Content */
.footer__content p {
    color: #8b95a8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__content ul.list-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__content ul.list-wrap li {
    color: #a0a8b8;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__content ul.list-wrap li::before {
    content: '';
    display: none;
}

/* Footer Widget */
.footer__widget {
    margin-bottom: 32px;
}

/* Footer Widget Title */
.footer__widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer__widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #1a73e8, #4a9ff5);
    border-radius: 2px;
}

/* RTL Support for Title */
[dir="rtl"] .footer__widget-title::after {
    left: auto;
    right: 0;
}

/* Footer Links */
.footer__link ul.list-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link ul.list-wrap li {
    margin-bottom: 12px;
}

.footer__link ul.list-wrap li a {
    color: #8b95a8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer__link ul.list-wrap li a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer__link ul.list-wrap li a:hover {
    color: #ffffff;
    padding-left: 12px;
}

.footer__link ul.list-wrap li a:hover::before {
    width: 8px;
}

/* RTL Support for Links */
[dir="rtl"] .footer__link ul.list-wrap li a {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer__link ul.list-wrap li a:hover {
    padding-left: 0;
    padding-right: 12px;
}

[dir="rtl"] .footer__content ul.list-wrap li {
    flex-direction: row-reverse;
}

/* Footer Contact Content */
.footer__contact-content p {
    color: #8b95a8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Footer Social Links */
.footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.footer__social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer__social li a:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.footer__social li a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__social li a:hover img {
    opacity: 1;
}

/* App Download Buttons */
.app-download {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-download a {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-download a img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.app-download a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* Footer Bottom Section */
.footer__bottom {
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.2);
}

/* Copyright Text */
.copy-right-text p {
    color: #6b7585;
    font-size: 14px;
    margin: 0;
}

/* Footer Bottom Menu */
.footer__bottom-menu ul.list-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__bottom-menu ul.list-wrap li a {
    color: #6b7585;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__bottom-menu ul.list-wrap li a:hover {
    color: #1a73e8;
}

/* RTL Support for Bottom Menu */
[dir="rtl"] .footer__bottom-menu ul.list-wrap {
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 991px) {
    .footer__top {
        padding: 48px 0 24px;
    }

    .footer__widget {
        margin-bottom: 36px;
    }

    .footer__widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .footer__top {
        padding: 40px 0 16px;
    }

    .footer__widget .logo {
        text-align: center;
        margin-bottom: 20px !important;
    }

    .footer__content p,
    .footer__contact-content p {
        text-align: center;
    }

    .footer__content ul.list-wrap li {
        justify-content: center;
    }

    .footer__widget-title {
        text-align: center;
    }

    .footer__widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .footer__widget-title::after {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    .footer__link ul.list-wrap li {
        text-align: center;
    }

    .footer__link ul.list-wrap li a {
        justify-content: center;
    }

    .footer__link ul.list-wrap li a::before {
        display: none;
    }

    .footer__link ul.list-wrap li a:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .footer__social {
        justify-content: center;
    }

    .app-download {
        justify-content: center;
    }

    .footer__bottom {
        padding: 20px 0;
    }

    .copy-right-text {
        text-align: center;
        margin-bottom: 12px;
    }

    .footer__bottom-menu ul.list-wrap {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* Remove default shadows */
.footer__area,
.footer__area * {
    box-shadow: none !important;
}

/* Hover effects only */
.footer__social li a:hover {
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3) !important;
}
