/* Modern Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer sections */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Site info section */
.site-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.site-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.site-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Site runtime display */
.site-runtime {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.runtime-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.runtime-value {
    font-family: 'LXGWWenKaiMono', monospace;
    color: var(--primary-color);
    font-weight: 500;
}

/* Quick links section */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

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

.footer-link::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-link:hover::before {
    opacity: 1;
}

/* Contact section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat-icon {
    color: var(--primary-color);
}

.stat-value {
    font-weight: 600;
    color: var(--text-color);
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
}

.legal-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.legal-link:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Dark mode enhancements */
:root[data-theme="dark"] .footer-modern {
    background: linear-gradient(135deg, var(--surface-color) 0%, #1a0b3d 100%);
}

:root[data-theme="dark"] .site-runtime {
    background: rgba(177, 59, 255, 0.1);
    border-color: rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .social-link {
    background: rgba(177, 59, 255, 0.1);
    border-color: rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        justify-content: center;
    }
}

/* Animation for smooth appearance */
.footer-modern {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hover effects for better interactivity */
.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}

/* Loading state for runtime */
.runtime-loading {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
