/* Footer Styles */

.main-footer {
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: auto 0 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center; /* Center by default when only social links */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* When page links exist, use space-between */
.footer-content:has(.page-links) {
    justify-content: space-between;
}

.page-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.footer-link:hover {
    background: rgba(108, 123, 138, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
    color: #2d3748;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: #4a5568;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(108, 123, 138, 0.1);
}

.social-link:hover {
    background: rgba(108, 123, 138, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: #2d3748;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(108, 123, 138, 0.2);
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .main-footer {
        margin: 0;
        padding: 1rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-links {
        order: 1;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        order: 0;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        padding: 0.375rem;
    }
    
    .footer-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Tablet responsive */
@media (min-width: 641px) and (max-width: 768px) {
    .footer {
        margin: 20px;
        padding: 1rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-links {
        order: 1;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        order: 0;
    }
    
    .footer-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}