/**
 * African-themed Footer for Beck's Kitchen
 */

/* Footer Container */
footer {
    background-color: var(--pattern-primary);
    color: #fff;
    position: relative;
    padding: 60px 0 30px;
    margin-top: 80px;
    overflow: hidden;
}

/* African Pattern Background */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/footer-pattern.svg');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}

/* Kente Pattern Top Border */
.footer-kente-pattern {
    height: 15px;
    background-image: url('../images/kente-border.svg');
    background-size: contain;
    background-repeat: repeat-x;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

/* Footer Section */
.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--pattern-accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-image: linear-gradient(
        to right,
        var(--pattern-accent),
        var(--pattern-light)
    );
    border-radius: 3px;
}

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

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

.footer-links li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links li a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    background-color: var(--pattern-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--pattern-accent);
    transform: translateX(5px);
}

.footer-links li a:hover::before {
    background-color: var(--pattern-light);
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 30px;
}

.contact-info li .material-icons {
    color: var(--pattern-accent);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    text-align: center;
    vertical-align: middle;
}

/* Social Media */
.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/social-icon-pattern.svg');
    background-size: cover;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.social-media a:hover {
    background-color: var(--pattern-accent);
    transform: translateY(-3px);
}

.social-media a:hover::before {
    opacity: 0.2;
}

/* Newsletter */
.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border: none;
    background-color: var(--pattern-accent);
    color: var(--dark-color);
    border-radius: 30px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--pattern-light);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* African Symbol Decoration */
.african-symbol {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('../images/adinkra-sankofa.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.african-symbol.left {
    left: 5%;
    top: 20%;
}

.african-symbol.right {
    right: 5%;
    bottom: 20%;
    transform: rotate(45deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    footer {
        padding: 50px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .african-symbol {
        display: none;
    }
}
