/* styles/footer.css */

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #f8f9f9;
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
}

/* --- Footer Top Section (Main Layout) --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    flex-grow: 1;
}

.footer-logo img {
    height: 50px;
    transition: transform 0.3s ease;
    margin-top: -25px;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-links-main {
    display: flex;
    gap: 1rem 1.9rem;
    flex-wrap: wrap;
}

.footer-links-main a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links-main a:hover {
    color: #a5d6a7;
    transform: translateY(-2px);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 20px;
    margin-bottom: 20px;
    margin-left: 30%;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-socials .footer-text-link {
    color: #FFFFFF;
    font-size: large;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #a5d6a7;
    transform: translateY(-3px) scale(1.1);
}

/* --- Newsletter Section --- */
.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    flex-shrink: 0;
    margin-right: -95px;
    margin-top: -40px;
    margin-bottom: -20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.footer-newsletter h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: #DDDDDD;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #cccccc;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #a5d6a7;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Fix for browser autofill background */
.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover, 
.newsletter-form input:-webkit-autofill:focus, 
.newsletter-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #a5d6a7;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #FFFFFF;
}

/* --- Footer Main & Bottom --- */
.footer-main {
    text-align: center;
    padding: 1rem 0 2rem 0;
}

.footer-about-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #DDDDDD;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    background-color: rgba(0,0,0,0.2);
    font-size: 0.85rem;
    color: #DDDDDD;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-top {
        flex-wrap: wrap;
    }
    
    .footer-newsletter {
        max-width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-left {
        align-items: center;
        width: 100%;
    }
    
    .footer-logo img {
        margin-top: 0;
    }
    
    .footer-links-main {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-socials {
        justify-content: center;
        margin-left: 0;
    }
    
    .footer-newsletter {
        max-width: 100%;
        margin: 0;
        padding: 1.5rem;
    }
    
    .footer-about-text {
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-links-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-socials {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-socials .separator {
        display: none;
    }
}

@media (max-width: 400px) {
    .footer-socials {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
}
