/* Footer Styles */
.site-footer {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    margin-top: 60px;
    padding-top: 60px;
}

.footer-content {
    background-color: var(--text-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-about p {
    font-size: 0.875rem;
    color: var(--border-color);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-categories ul,
.footer-company ul,
.footer-legal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-categories li,
.footer-company li,
.footer-legal li {
    margin-bottom: 8px;
}

.footer-categories a,
.footer-company a,
.footer-legal a {
    font-size: 0.875rem;
    color: var(--border-color);
    transition: var(--transition);
}

.footer-categories a:hover,
.footer-company a:hover,
.footer-legal a:hover {
    color: white;
    padding-left: 4px;
}

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

.footer-newsletter p {
    font-size: 0.875rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 12px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-md) !important;
    color: white !important;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-color) !important;
}

.newsletter-form button {
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

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

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.copyright {
    font-size: 0.875rem;
    color: var(--border-color);
    margin: 0;
}

.copyright a {
    color: white;
    text-decoration: underline;
}

.copyright a:hover {
    color: var(--primary-color);
}

.footer-credits {
    font-size: 0.75rem;
    color: var(--border-color);
    text-align: right;
}

.footer-credits a {
    color: white;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        gap: 24px;
        padding: 32px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-credits {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .site-footer {
        margin-top: 40px;
        padding-top: 40px;
    }
    
    .footer-bottom {
        padding: 16px 0;
    }
    
    .copyright,
    .footer-credits {
        font-size: 0.75rem;
    }
}
