/*
 * UJUZI Web Footer Component Styles
 * High specificity styles to override other CSS while maintaining performance
 * Used by: resources/views/components/web-footer.blade.php
 */

/* CSS Containment for better performance */
.ujuzi-web-footer-component {
    contain: layout style paint;
    isolation: isolate;
}

/* High specificity scoped styles to override any conflicting CSS */
.ujuzi-web-footer-component.ujuzi-web-footer-component .s-footer {
    background: #1a1d23 !important;
    color: #ffffff !important;
    padding: 3rem 0 1rem !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: inherit !important;
}

.ujuzi-web-footer-component .footer-category-title {
    color: #FF6B35 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid #FF6B35 !important;
    padding-bottom: 0.5rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.ujuzi-web-footer-component .footer-category-products {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ujuzi-web-footer-component .footer-product-item {
    margin-bottom: 0.8rem !important;
    padding: 0.5rem !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    list-style: none !important;
}

.ujuzi-web-footer-component .footer-product-item:hover {
    background-color: rgba(255, 107, 53, 0.1) !important;
    transform: none !important;
}

.ujuzi-web-footer-component .footer-product-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ujuzi-web-footer-component .footer-product-link:hover,
.ujuzi-web-footer-component .footer-product-link:focus {
    color: #FF6B35 !important;
    text-decoration: none !important;
    background: none !important;
}

.ujuzi-web-footer-component .product-name {
    font-size: 0.9rem !important;
    flex: 1 !important;
    margin-right: 0.5rem !important;
    color: inherit !important;
    font-weight: normal !important;
}

.ujuzi-web-footer-component .product-price {
    font-weight: 600 !important;
    color: #FF6B35 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.ujuzi-web-footer-component .footer__site-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ujuzi-web-footer-component .footer__site-links li {
    margin-bottom: 0.6rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.ujuzi-web-footer-component .footer__site-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    line-height: 1.5 !important;
}

.ujuzi-web-footer-component .footer__site-links a:hover,
.ujuzi-web-footer-component .footer__site-links a:focus {
    color: #FF6B35 !important;
    text-decoration: none !important;
    background: none !important;
}

.ujuzi-web-footer-component .footer__social {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.ujuzi-web-footer-component .footer__social li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ujuzi-web-footer-component .footer__social a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.2rem !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 0.25rem !important;
    border-radius: 4px !important;
}

.ujuzi-web-footer-component .footer__social a:hover,
.ujuzi-web-footer-component .footer__social a:focus {
    color: #FF6B35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
    text-decoration: none !important;
}

.ujuzi-web-footer-component .subscribe-form {
    display: flex !important;
    gap: 0.5rem !important;
    margin: 1rem 0 !important;
    flex-wrap: wrap !important;
}

.ujuzi-web-footer-component .subscribe-form input[type="email"] {
    flex: 1 !important;
    min-width: 250px !important;
    padding: 0.75rem !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    background: #2a2d35 !important;
    color: #ffffff !important;
    outline: none !important;
    font-size: 0.9rem !important;
}

.ujuzi-web-footer-component .subscribe-form input[type="email"]:focus {
    border-color: #FF6B35 !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2) !important;
}

.ujuzi-web-footer-component .subscribe-form .btn-subscribe {
    padding: 0.75rem 1.5rem !important;
    background: #FF6B35 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

.ujuzi-web-footer-component .subscribe-form .btn-subscribe:hover,
.ujuzi-web-footer-component .subscribe-form .btn-subscribe:focus {
    background: #e55a2b !important;
    outline: none !important;
}

.ujuzi-web-footer-component .footer-legal-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.ujuzi-web-footer-component .footer-legal-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ujuzi-web-footer-component .footer-legal-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.3s ease !important;
    padding: 0.25rem !important;
    border-radius: 2px !important;
}

.ujuzi-web-footer-component .footer-legal-links a:hover,
.ujuzi-web-footer-component .footer-legal-links a:focus {
    color: #FF6B35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
    text-decoration: none !important;
}

.ujuzi-web-footer-component .age-verification-notice {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 1px solid #FF6B35 !important;
    border-radius: 4px !important;
    padding: 1rem !important;
    text-align: center !important;
    color: #ffffff !important;
    margin: 1rem 0 !important;
}

.ujuzi-web-footer-component .age-verification-notice p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

.ujuzi-web-footer-component .age-verification-notice i {
    color: #FF6B35 !important;
    margin-right: 0.5rem !important;
}

.ujuzi-web-footer-component .footer-contact-info p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5 !important;
}

.ujuzi-web-footer-component .footer-contact-info i {
    color: #FF6B35 !important;
    margin-right: 0.5rem !important;
    width: 16px !important;
    text-align: center !important;
}

.ujuzi-web-footer-component .business-hours h6 {
    color: #FF6B35 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

.ujuzi-web-footer-component .business-hours p {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.ujuzi-web-footer-component .app-badge {
    display: block !important;
    margin-bottom: 0.8rem !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
}

.ujuzi-web-footer-component .app-badge:hover {
    opacity: 0.8 !important;
}

.ujuzi-web-footer-component .app-badge img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    border-radius: 4px !important;
}

.ujuzi-web-footer-component .footer-connect-info p {
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

.ujuzi-web-footer-component .connect-features p {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.ujuzi-web-footer-component .connect-features i {
    color: #FF6B35 !important;
    margin-right: 0.5rem !important;
    width: 16px !important;
}

.ujuzi-web-footer-component .ss-copyright {
    text-align: center !important;
}

.ujuzi-web-footer-component .ss-copyright p {
    margin: 0 !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.ujuzi-web-footer-component .ss-copyright a {
    color: #FF6B35 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.ujuzi-web-footer-component .ss-copyright a:hover,
.ujuzi-web-footer-component .ss-copyright a:focus {
    color: #e55a2b !important;
    text-decoration: underline !important;
}

/* Performance optimizations */
.ujuzi-web-footer-component .footer-product-link,
.ujuzi-web-footer-component .footer__site-links a,
.ujuzi-web-footer-component .footer__social a,
.ujuzi-web-footer-component .footer-legal-links a {
    will-change: color !important;
}

.ujuzi-web-footer-component .footer-product-item,
.ujuzi-web-footer-component .footer__social a,
.ujuzi-web-footer-component .subscribe-form .btn-subscribe {
    will-change: background-color !important;
}

/* 5-column layout for footer links */
.ujuzi-web-footer-component .footer-links-section .row .col-md {
    flex: 1 !important;
    min-width: 0 !important;
}

@media (min-width: 768px) {
    .ujuzi-web-footer-component .footer-links-section .row .col-md {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ujuzi-web-footer-component .s-footer {
        padding: 2rem 0 1rem !important;
    }

    .ujuzi-web-footer-component .footer-category-column {
        margin-bottom: 2rem !important;
    }

    .ujuzi-web-footer-component .subscribe-form {
        flex-direction: column !important;
    }

    .ujuzi-web-footer-component .subscribe-form input[type="email"] {
        min-width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    .ujuzi-web-footer-component .footer-legal-links {
        justify-content: center !important;
        gap: 1rem !important;
    }

    .ujuzi-web-footer-component .footer__social {
        justify-content: center !important;
    }

    .ujuzi-web-footer-component .footer-links-section .row .col-md {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 1rem !important;
    }

    .ujuzi-web-footer-component .footer-category-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .ujuzi-web-footer-component .footer-links-section .row .col-md {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .ujuzi-web-footer-component .footer__social {
        gap: 0.5rem !important;
    }

    .ujuzi-web-footer-component .footer-legal-links {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
}

/* Mobile footer specific styles */
.ujuzi-web-footer-component #footer-mobile {
    background: #0f1114 !important;
    padding: 1rem 0 !important;
    text-align: center !important;
    border-top: 1px solid #333 !important;
}

.ujuzi-web-footer-component #footer-mobile h6 {
    color: #FF6B35 !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.ujuzi-web-footer-component .mobile-footer-categories {
    margin-bottom: 1rem !important;
}

.ujuzi-web-footer-component .mobile-footer-categories a {
    color: rgba(255,255,255,0.8) !important;
    margin: 0 1rem !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.ujuzi-web-footer-component .mobile-footer-categories a:hover,
.ujuzi-web-footer-component .mobile-footer-categories a:focus {
    color: #FF6B35 !important;
    text-decoration: none !important;
}

/* Mobile footer copyright styling */
.ujuzi-web-footer-component .mobile-copyright {
    text-align: center !important;
    font-size: 0.8rem !important;
    margin-top: 1rem !important;
    color: rgba(255,255,255,0.7) !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.ujuzi-web-footer-component .mobile-copyright a {
    color: #FF6B35 !important;
    text-decoration: none !important;
}

.ujuzi-web-footer-component .mobile-copyright a:hover {
    text-decoration: underline !important;
}

/* Mobile contact info styling */
.ujuzi-web-footer-component .mobile-contact-info {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.ujuzi-web-footer-component .mobile-contact-info h6 {
    color: #FF6B35 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.8rem !important;
}

.ujuzi-web-footer-component .mobile-contact-info p {
    margin-bottom: 0.5rem !important;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.9) !important;
}

.ujuzi-web-footer-component .mobile-contact-info i {
    margin-right: 0.5rem !important;
    color: #FF6B35 !important;
    width: 16px !important;
    text-align: center !important;
}

/* Mobile social section styling */
.ujuzi-web-footer-component .mobile-social-section {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.ujuzi-web-footer-component .mobile-social-section h6 {
    color: #FF6B35 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.8rem !important;
}

.ujuzi-web-footer-component .mobile-social-links {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-top: 0.5rem !important;
}

.ujuzi-web-footer-component .mobile-social-links a {
    display: inline-block !important;
    font-size: 1.5rem !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
}

.ujuzi-web-footer-component .mobile-social-links a:hover {
    transform: scale(1.1) !important;
}

/* View all link styling */
.ujuzi-web-footer-component .footer-view-all a,
.ujuzi-web-footer-component .view-all-link {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem !important;
    font-style: italic !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.ujuzi-web-footer-component .footer-view-all a:hover,
.ujuzi-web-footer-component .view-all-link:hover {
    color: #FF6B35 !important;
}

/* Container and grid overrides */
.ujuzi-web-footer-component .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ujuzi-web-footer-component .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

.ujuzi-web-footer-component .row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
    width: 100% !important;
    min-height: 1px !important;
}

/* Bootstrap-like grid system for component independence */
.ujuzi-web-footer-component .col-1 { flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
.ujuzi-web-footer-component .col-2 { flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
.ujuzi-web-footer-component .col-3 { flex: 0 0 25% !important; max-width: 25% !important; }
.ujuzi-web-footer-component .col-4 { flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
.ujuzi-web-footer-component .col-5 { flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
.ujuzi-web-footer-component .col-6 { flex: 0 0 50% !important; max-width: 50% !important; }
.ujuzi-web-footer-component .col-7 { flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
.ujuzi-web-footer-component .col-8 { flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
.ujuzi-web-footer-component .col-9 { flex: 0 0 75% !important; max-width: 75% !important; }
.ujuzi-web-footer-component .col-10 { flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
.ujuzi-web-footer-component .col-11 { flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
.ujuzi-web-footer-component .col-12 { flex: 0 0 100% !important; max-width: 100% !important; }

.ujuzi-web-footer-component .col {
    flex-basis: 0 !important;
    flex-grow: 1 !important;
    max-width: 100% !important;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .ujuzi-web-footer-component .col-sm-1 { flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
    .ujuzi-web-footer-component .col-sm-2 { flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
    .ujuzi-web-footer-component .col-sm-3 { flex: 0 0 25% !important; max-width: 25% !important; }
    .ujuzi-web-footer-component .col-sm-4 { flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
    .ujuzi-web-footer-component .col-sm-5 { flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
    .ujuzi-web-footer-component .col-sm-6 { flex: 0 0 50% !important; max-width: 50% !important; }
    .ujuzi-web-footer-component .col-sm-7 { flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
    .ujuzi-web-footer-component .col-sm-8 { flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
    .ujuzi-web-footer-component .col-sm-9 { flex: 0 0 75% !important; max-width: 75% !important; }
    .ujuzi-web-footer-component .col-sm-10 { flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
    .ujuzi-web-footer-component .col-sm-11 { flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
    .ujuzi-web-footer-component .col-sm-12 { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .ujuzi-web-footer-component .col-md-1 { flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
    .ujuzi-web-footer-component .col-md-2 { flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
    .ujuzi-web-footer-component .col-md-3 { flex: 0 0 25% !important; max-width: 25% !important; }
    .ujuzi-web-footer-component .col-md-4 { flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
    .ujuzi-web-footer-component .col-md-5 { flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
    .ujuzi-web-footer-component .col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; }
    .ujuzi-web-footer-component .col-md-7 { flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
    .ujuzi-web-footer-component .col-md-8 { flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
    .ujuzi-web-footer-component .col-md-9 { flex: 0 0 75% !important; max-width: 75% !important; }
    .ujuzi-web-footer-component .col-md-10 { flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
    .ujuzi-web-footer-component .col-md-11 { flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
    .ujuzi-web-footer-component .col-md-12 { flex: 0 0 100% !important; max-width: 100% !important; }
    
    .ujuzi-web-footer-component .col-md {
        flex-basis: 0 !important;
        flex-grow: 1 !important;
        max-width: 100% !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .ujuzi-web-footer-component .col-lg-1 { flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
    .ujuzi-web-footer-component .col-lg-2 { flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
    .ujuzi-web-footer-component .col-lg-3 { flex: 0 0 25% !important; max-width: 25% !important; }
    .ujuzi-web-footer-component .col-lg-4 { flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
    .ujuzi-web-footer-component .col-lg-5 { flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
    .ujuzi-web-footer-component .col-lg-6 { flex: 0 0 50% !important; max-width: 50% !important; }
    .ujuzi-web-footer-component .col-lg-7 { flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
    .ujuzi-web-footer-component .col-lg-8 { flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
    .ujuzi-web-footer-component .col-lg-9 { flex: 0 0 75% !important; max-width: 75% !important; }
    .ujuzi-web-footer-component .col-lg-10 { flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
    .ujuzi-web-footer-component .col-lg-11 { flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
    .ujuzi-web-footer-component .col-lg-12 { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Bootstrap utility classes */
.ujuzi-web-footer-component .d-flex { display: flex !important; }
.ujuzi-web-footer-component .d-block { display: block !important; }
.ujuzi-web-footer-component .d-none { display: none !important; }
.ujuzi-web-footer-component .d-md-none { 
    @media (min-width: 768px) {
        display: none !important;
    }
}
.ujuzi-web-footer-component .d-md-block { 
    @media (min-width: 768px) {
        display: block !important;
    }
}

.ujuzi-web-footer-component .justify-content-between { justify-content: space-between !important; }
.ujuzi-web-footer-component .justify-content-center { justify-content: center !important; }
.ujuzi-web-footer-component .align-items-center { align-items: center !important; }
.ujuzi-web-footer-component .align-items-start { align-items: flex-start !important; }

.ujuzi-web-footer-component .mb-3 { margin-bottom: 1rem !important; }
.ujuzi-web-footer-component .mb-4 { margin-bottom: 1.5rem !important; }
.ujuzi-web-footer-component .mb-5 { margin-bottom: 3rem !important; }
.ujuzi-web-footer-component .mt-3 { margin-top: 1rem !important; }
