/* 
 * Modern Footer CSS - Clean & Simple Design
 * Matches the modern header design - customizable through WordPress Customizer
 */

/* Modern Footer */
.modern-footer {
    background-color: #111;
    color: #ccc;
    margin-top: auto;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Sections & Widgets */
.footer-section {}

/* Widget Titles */
.footer-section .widget-title,
.footer-section h1,
.footer-section h2,
.footer-section h3,
.footer-section h4,
.footer-section h5,
.footer-section h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-section .widget-title::after,
.footer-section h1::after,
.footer-section h2::after,
.footer-section h3::after,
.footer-section h4::after,
.footer-section h5::after,
.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FFD700;
}

/* Widget Content */
.footer-section .widget {
    margin-bottom: 30px;
}

.footer-section .widget:last-child {
    margin-bottom: 0;
}

.footer-section p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Social Media Widget Support */
.footer-section .social-links,
.footer-section .footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-section .social-links a,
.footer-section .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover,
.footer-section .footer-social a:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-2px);
}

/* Contact Widget Support */
.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

.footer-section .contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.footer-bottom-content p {
    margin: 0;
}

.footer-bottom-left a,
.footer-bottom-right {
    color: inherit;
    text-decoration: none;
}

.footer-bottom-left a:hover {
    text-decoration: underline;
}

/* Footer Menu */
.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.footer-menu li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 30px;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        max-width: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section h4.footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .footer-content {
        padding: 30px 0 20px;
    }

    .footer-row {
        gap: 25px;
    }

    .footer-social .social-link {
        width: 35px;
        height: 35px;
    }

    .footer-menu {
        gap: 10px;
    }

    .footer-menu li a {
        font-size: 13px;
    }
}

/* Modern Theme Customizer Integration */
.modern-footer {
    background-color: var(--foodmaster-modern-footer-bg, #111) !important;
    color: var(--foodmaster-modern-footer-text, #ccc) !important;
}

.footer-bottom {
    background: var(--foodmaster-modern-footer-bg, #000);
}

.footer-section .widget-title,
.footer-section h1,
.footer-section h2,
.footer-section h3,
.footer-section h4,
.footer-section h5,
.footer-section h6 {
    color: var(--foodmaster-modern-footer-text, #fff);
}

.footer-section .widget-title::after,
.footer-section h1::after,
.footer-section h2::after,
.footer-section h3::after,
.footer-section h4::after,
.footer-section h5::after,
.footer-section h6::after {
    background: var(--foodmaster-modern-primary, #FFD700);
}

.footer-section p {
    color: var(--foodmaster-modern-footer-text, #999);
}

.footer-section a {
    color: var(--foodmaster-modern-footer-text, #999);
}

.footer-section a:hover {
    color: var(--foodmaster-modern-primary, #FFD700);
}

.footer-links li a {
    color: var(--foodmaster-modern-footer-text, #999);
}

.footer-links li a:hover {
    color: var(--foodmaster-modern-primary, #FFD700);
}

.footer-menu li a {
    color: var(--foodmaster-modern-footer-text, #666);
}

.footer-menu li a:hover {
    color: var(--foodmaster-modern-primary, #FFD700);
}

.footer-section .social-links a,
.footer-section .footer-social a {
    color: var(--foodmaster-modern-footer-text, #ccc);
}

.footer-section .social-links a:hover,
.footer-section .footer-social a:hover {
    background: var(--foodmaster-modern-primary, #FFD700);
    color: var(--foodmaster-modern-dark, #000);
}

.contact-item {
    color: var(--foodmaster-modern-footer-text, #999);
}

.footer-bottom-content {
    color: var(--foodmaster-modern-footer-text, #666);
}

.footer-bottom-content p {
    color: var(--foodmaster-modern-footer-text, #666);
}