/* ===== footer.css - for African Products Global Marketplace Footer Styles (Language Selector REMOVED) ===== */

/* ===== FOOTER SECTION ===== */
.footer-section {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333333 !important;
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(5, 84, 64, 0.1);
    margin-top: auto;
    width: 100%;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E88824, #643919);
}

.footer-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('../images/background_image.png') repeat,
        url('../images/background_image2.png') repeat;
    background-size: 400px 400px, 350px 350px;
    background-position: 0 0, 200px 200px;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.footer-content {
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.footer-content .row {
    margin: 0;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-content .row > * {
    padding: 0 15px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.9);
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

.footer-about p {
    color: rgba(51, 51, 51, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(5, 84, 64, 0.1);
    border: 2px solid rgba(5, 84, 64, 0.2);
    border-radius: 50%;
    color: #055440;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #055440, #E88824);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    border-color: #E88824;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(232, 136, 36, 0.3);
}

.footer-links h5 {
    color: #055440;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #E88824;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(51, 51, 51, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    padding: 4px 0;
    line-height: 1.4;
    font-weight: 400;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #055440;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #055440;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
    background: #055440;
}

.footer-contact h5 {
    color: #055440;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer-contact h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #E88824;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(5, 84, 64, 0.05);
    transform: translateX(5px);
}

.contact-item i {
    color: #E88824;
    width: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-item a,
.contact-item span {
    color: rgba(51, 51, 51, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 400;
    line-height: 1.5;
}

.contact-item a:hover {
    color: #055440;
}

.footer-bottom {
    border-top: 1px solid rgba(5, 84, 64, 0.2);
    padding-top: 2rem;
    position: relative;
    z-index: 10;
}

.footer-bottom-content {
    width: 100%;
}

.footer-bottom p {
    color: rgba(51, 51, 51, 0.8);
    margin: 0;
    font-weight: 400;
    text-align: center;
}

.footer-bottom a {
    color: #055440;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: #E88824;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
    .footer-content .row {
        gap: 2rem;
    }
}

@media (max-width: 991.98px) {
    .footer-section {
        padding: 3rem 0 2rem;
    }
    
    .footer-content .row > * {
        margin-bottom: 2rem;
    }
    
    .footer-content .row {
        gap: 1.5rem;
    }
}

/* ===== MOBILE SPECIFIC STYLES ===== */
@media (max-width: 767.98px) {
    .footer-section {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content .row > * {
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .footer-social {
        justify-content: flex-start;
        margin-bottom: 2rem;
    }
    
    .footer-logo-img {
        height: 60px;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        text-align: center !important;
    }

    /* Mobile Layout Adjustments */
    .footer-content .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-about {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-contact {
        text-align: left;
        width: 100%;
        max-width: 400px;
    }

    .footer-contact h5 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-contact h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .footer-section {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content .row > * {
        padding: 0 5px;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-social {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer-links h5,
    .footer-contact h5 {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 0.25rem;
    }
    
    .contact-item i {
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* ===== ULTRA SMALL MOBILE (320px and below) ===== */
@media (max-width: 320px) {
    .footer-section {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo-img {
        height: 45px;
    }
    
    .footer-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* ===== GRID FIXES ===== */
.footer-content .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.footer-content .row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

/* Large screens */
@media (min-width: 992px) {
    .footer-content .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    .footer-content .col-lg-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    
    .footer-content .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-content .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .footer-content .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    /* Keep Quick Links and Product Categories visible on tablet */
    .footer-content .d-none.d-md-block {
        display: block !important;
    }
}

/* Small screens */
@media (max-width: 767.98px) {
    .footer-content .col-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .footer-content .col-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    /* Hide Quick Links and Product Categories on mobile only */
    .footer-content .d-none.d-md-block {
        display: none !important;
    }
}

/* ===== LANGUAGE-SPECIFIC FONT ADJUSTMENTS ===== */
.lang-ar .footer-links a,
.lang-ar .footer-contact span,
.lang-ar .footer-about p {
    font-family: 'Tajawal', 'Arial', sans-serif;
    line-height: 1.6;
}

.lang-zh .footer-links a,
.lang-zh .footer-contact span,
.lang-zh .footer-about p {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.social-link:focus,
.footer-links a:focus,
.contact-item a:focus,
.footer-bottom a:focus {
    outline: 2px solid #055440;
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content > .row > * {
    animation: fadeInUp 0.6s ease-out;
}

.footer-content > .row > *:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-content > .row > *:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-content > .row > *:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-content > .row > *:nth-child(4) {
    animation-delay: 0.4s;
}

/* ===== HOVER EFFECTS ===== */
.footer-links li {
    position: relative;
    overflow: hidden;
}

.footer-links li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 136, 36, 0.1), transparent);
    transition: left 0.5s;
}

.footer-links li:hover::before {
    left: 100%;
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .social-link:hover,
    .footer-links a:hover,
    .contact-item:hover {
        transform: none;
    }
    
    .footer-logo-img:hover {
        transform: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .footer-section {
        background: rgba(248, 249, 250, 1);
        border-top: 2px solid rgba(5, 84, 64, 0.3);
    }
    
    .footer-links a,
    .contact-item a,
    .contact-item span,
    .footer-about p {
        color: rgba(51, 51, 51, 1);
    }
    
    .social-link {
        border-width: 2px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .footer-section {
        background: white;
        color: black;
    }
    
    .footer-section::after {
        display: none;
    }
    
    .footer-links a,
    .contact-item a,
    .contact-item span,
    .footer-about p {
        color: black;
    }
    
    .footer-links h5,
    .footer-contact h5 {
        color: black;
    }
    
    .social-link {
        border-color: black;
        color: black;
    }
}