/**
 * Footer Styles - Admin Manageable Footer System
 * @package Grabit
 */

/* ======================================
   FOOTER GENERAL
   ====================================== */

.gi-footer {
    position: relative;
    width: 100%;
}

/* Footer Top Section */
.footer-top {
    position: relative;
}

/* Footer Columns - Mobile First Approach */
.gi-footer-widget {
    margin-bottom: 30px;
}

.gi-footer-heading {
    position: relative;
}

/* Footer Links */
.gi-footer-link {
    transition: all 0.3s ease;
}

.gi-footer-link a {
    display: inline-block;
    transition: color 0.3s ease, transform 0.2s ease;
}

.gi-footer-link a:hover,
.gi-footer-link a:focus {
    color: #5caf90;
    transform: translateX(3px);
}

/* ======================================
   FOOTER TOGGLES (Mobile Accordion)
   ====================================== */

@media (max-width: 991px) {
    .gi-footer-toggle .gi-footer-heading {
        cursor: pointer;
        position: relative;
        padding-right: 30px;
    }
    
    .gi-footer-toggle .gi-footer-heading::after {
        content: "\f078"; /* Down arrow */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    .gi-footer-toggle.active .gi-footer-heading::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .gi-footer-toggle .gi-footer-dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .gi-footer-toggle.active .gi-footer-dropdown {
        max-height: 500px;
    }
}

/* ======================================
   COMPANY INFO COLUMN
   ====================================== */

.gi-footer-company .custom-logo-link img,
.gi-footer-company .gi-footer-logo {
    display: block;
    transition: opacity 0.3s ease;
}

.gi-footer-company .custom-logo-link:hover img,
.gi-footer-company .custom-logo-link:focus img {
    opacity: 0.8;
}

.gi-footer-detail {
    line-height: 1.7;
}

/* App Store Badges */
.gi-app-store {
    display: flex;
    flex-wrap: wrap;
}

.gi-app-store .app-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.gi-app-store .app-img:hover,
.gi-app-store .app-img:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gi-app-store img {
    height: auto;
}

/* Legal Info (VAT, GEMI) */
.gi-footer-legal-info {
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

/* ======================================
   CONTACT INFO COLUMN
   ====================================== */

.gi-footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gi-footer-contact .gi-footer-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.gi-footer-contact .gi-footer-link i {
    flex-shrink: 0;
}

/* Store Hours Display */
.gi-foo-hours .flex {
    font-size: 13px;
}

.gi-foo-hours .font-medium {
    min-width: 80px;
}

/* ======================================
   SOCIAL LINKS
   ====================================== */

.gi-footer-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gi-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #4b5966;
    color: #fff;
    transition: all 0.3s ease;
}

.gi-footer-social a:hover,
.gi-footer-social a:focus {
    background: #5caf90;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(92, 175, 144, 0.3);
}

.gi-footer-social a i {
    font-size: 18px;
}

/* ======================================
   NEWSLETTER
   ====================================== */

.gi-footer-newsletter {
    max-width: 400px;
}

.gi-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gi-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.gi-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #5caf90;
    box-shadow: 0 0 0 3px rgba(92, 175, 144, 0.1);
}

.gi-newsletter-form button {
    padding: 12px 20px;
    background: #5caf90;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gi-newsletter-form button:hover,
.gi-newsletter-form button:focus {
    background: #4b5966;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ======================================
   FOOTER BOTTOM BAR
   ====================================== */

.footer-bottom {
    border-top: 1px solid #eee;
}

.gi-copy {
    line-height: 1.6;
}

.gi-copy a {
    transition: all 0.2s ease;
}

/* Legal Links */
.gi-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.gi-legal-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 12px;
    transition: color 0.3s ease;
}

.gi-legal-links a:hover,
.gi-legal-links a:focus {
    color: #5caf90;
}

.gi-legal-links i {
    font-size: 10px;
}

/* Payment & Shipping Methods */
.footer-bottom-payment,
.footer-bottom-shipping {
    text-align: center;
}

.payment-link,
.shipping-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.payment-link img,
.shipping-link img {
    height: 24px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-link a:hover img,
.shipping-link a:hover img {
    transform: scale(1.1);
}

/* Trust Badges */
.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #999;
}

.trust-badge img {
    width: auto;
    height: 16px;
}

/* ======================================
   BACK TO TOP BUTTON
   ====================================== */

#gi-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5caf90;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

#gi-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#gi-back-to-top:hover,
#gi-back-to-top:focus {
    background: #4b5966;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#gi-back-to-top i {
    font-size: 20px;
}

/* ======================================
   LANGUAGE SWITCHER
   ====================================== */

.footer-language-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}

.footer-language-switcher select {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-language-switcher select:hover,
.footer-language-switcher select:focus {
    border-color: #5caf90;
    box-shadow: 0 2px 8px rgba(92, 175, 144, 0.2);
}

/* ======================================
   DARK MODE SUPPORT
   ====================================== */

.gi-footer.text-white .gi-footer-heading {
    color: #fff;
}

.gi-footer.text-white .gi-footer-detail,
.gi-footer.text-white .gi-footer-link a {
    color: rgba(255, 255, 255, 0.8);
}

.gi-footer.text-white .gi-footer-link a:hover,
.gi-footer.text-white .gi-footer-link a:focus {
    color: #fff;
}

.gi-footer.text-white .gi-copy,
.gi-footer.text-white .gi-legal-links a {
    color: rgba(255, 255, 255, 0.6);
}

.gi-footer.text-white .gi-legal-links a:hover {
    color: #fff;
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
   ====================================== */

@media (max-width: 991px) {
    .gi-footer-widget {
        margin-bottom: 25px;
    }
    
    .footer-top {
        padding: 60px 0;
    }
    
    #gi-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .footer-language-switcher {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 767px) {
    .footer-top {
        padding: 40px 0;
    }
    
    .gi-footer-heading {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .gi-app-store {
        flex-direction: column;
    }
    
    #gi-back-to-top {
        width: 40px;
        height: 40px;
    }
}

/* ======================================
   ACCESSIBILITY ENHANCEMENTS
   ====================================== */

/* Focus visible styles */
.gi-footer a:focus-visible {
    outline: 2px solid #5caf90;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gi-footer *,
    #gi-back-to-top {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gi-footer {
        border-top: 2px solid currentColor;
    }
    
    .gi-footer-heading {
        border-bottom: 2px solid currentColor;
    }
}

