/* Footer Styles */

.footer {
    background: var(--background-alt);
    border-top: 1px solid var(--border);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

/* About Section */
.footer-about {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: bold;
}

.footer-logo-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Footer Links */
.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: var(--spacing-sm);
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    font-size: var(--font-size-sm);
}

.footer-menu a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Newsletter Section */
.footer-newsletter {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.footer-newsletter .footer-title {
    text-align: center;
}

.footer-newsletter .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
}

.footer-newsletter-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--background);
    color: var(--text-primary);
    font-size: var(--font-size-md);
}

.footer-newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.footer-newsletter-button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0 var(--spacing-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.footer-newsletter-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-note {
    font-size: var(--font-size-xs);
    color: var(--text-disabled);
    margin-top: var(--spacing-md);
}

/* Bottom Footer */
.footer-bottom {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.developed-by {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.developed-by a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about {
        grid-column: span 2;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-button {
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: span 1;
    }

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

    .footer-menu {
        text-align: center;
    }

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

    .footer-menu a:hover {
        transform: translateX(0);
    }
}

/* Newsletter Success Message */
.newsletter-success {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: #E8F5E9;
    border-radius: var(--radius-md);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    animation: slideUp 0.3s ease;
}

.newsletter-success i {
    font-size: var(--font-size-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


