/*
Theme Name:   Astra Child - Cell Phone Doctor
Theme URI:    https://cellphonedoctor.com
Description:  Custom child theme for Cell Phone Doctor with improved footer layout
Author:       Cell Phone Doctor
Author URI:   https://cellphonedoctor.com
Template:     astra
Version:      1.0.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ===========================================
   Footer Customizations - Force Horizontal Layout
   =========================================== */

/* Footer Navigation Container */
.footer-navigation,
.site-footer .footer-navigation,
.ast-small-footer .footer-navigation,
.ast-small-footer-wrap .footer-navigation {
    text-align: center;
    margin-bottom: 15px;
}

/* Footer Navigation List - Force Horizontal Layout and Remove List Styling */
.footer-navigation ul,
.site-footer .footer-navigation ul,
.ast-small-footer .footer-navigation ul,
.ast-small-footer-wrap .footer-navigation ul,
nav.footer-navigation > ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style-type: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Footer Navigation List Items - Remove Numbering */
.footer-navigation ul li,
.site-footer .footer-navigation ul li,
.ast-small-footer .footer-navigation ul li,
.ast-small-footer-wrap .footer-navigation ul li,
nav.footer-navigation > ul > li {
    display: inline-block !important;
    list-style-type: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 15px !important;
    position: relative;
}

/* Remove any ::marker pseudo-elements */
.footer-navigation ul li::marker,
.site-footer .footer-navigation ul li::marker {
    content: none !important;
    display: none !important;
}

/* Add separator between footer nav links */
.footer-navigation ul li:not(:last-child)::after,
.site-footer .footer-navigation ul li:not(:last-child)::after,
nav.footer-navigation > ul > li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: #333333 !important;
    opacity: 0.5;
}

/* Footer Navigation Links - Override color:inherit */
.footer-navigation ul li a,
.site-footer .footer-navigation ul li a,
.ast-small-footer .footer-navigation ul li a,
nav.footer-navigation a {
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Footer Navigation Links Hover */
.footer-navigation ul li a:hover,
.site-footer .footer-navigation ul li a:hover,
.ast-small-footer .footer-navigation ul li a:hover,
nav.footer-navigation a:hover {
    color: #0073aa !important;
    text-decoration: underline !important;
}

/* Footer Credit Separation */
.site-footer .ast-footer-copyright,
.site-footer .footer-copyright,
.ast-small-footer,
.ast-small-footer-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Copyright text color */
.ast-small-footer .ast-footer-copyright,
.ast-small-footer-wrap .ast-footer-copyright {
    color: #666666;
}

/* Social Media Icons Section */
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px 0;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: #046bd2;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.footer-social-icons a svg,
.footer-social-icons a i {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-navigation ul,
    .site-footer .footer-navigation ul,
    nav.footer-navigation > ul {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .footer-navigation ul li,
    .site-footer .footer-navigation ul li,
    nav.footer-navigation > ul > li {
        padding: 5px 0 !important;
    }

    /* Hide separators on mobile */
    .footer-navigation ul li::after,
    .site-footer .footer-navigation ul li::after,
    nav.footer-navigation > ul > li::after {
        display: none !important;
    }

    .footer-social-icons {
        gap: 15px;
    }

    .footer-social-icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-navigation ul li,
    .site-footer .footer-navigation ul li,
    nav.footer-navigation > ul > li {
        padding: 8px 0 !important;
    }

    .site-footer .ast-footer-copyright,
    .site-footer .footer-copyright,
    .ast-small-footer,
    .ast-small-footer-wrap {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 14px;
    }
}

/* Additional Footer Styling */
.site-footer {
    padding: 40px 0 20px;
}

.footer-widget-area {
    margin-bottom: 30px;
}

/* Light background footer */
.site-footer,
.ast-small-footer,
.ast-small-footer-wrap {
    background-color: #f8f9fa;
    color: #333333;
}

.site-footer a,
.ast-small-footer a,
.ast-small-footer-wrap a {
    color: #333333;
}

.site-footer a:hover,
.ast-small-footer a:hover,
.ast-small-footer-wrap a:hover {
    color: #0073aa;
}