/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--footer-bg, #2c3e50) 0%, var(--footer-bg-dark, #1a252f) 100%);
    color: var(--footer-text, #ecf0f1);
    padding: 60px 0 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-accent, #e74c3c), var(--footer-link, #3498db));
}

.footer-content {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Layouts */
.footer-layout-4-column .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
}

.footer-layout-3-column .footer-content {
    grid-template-columns: 2fr 1fr 1.5fr;
}

.footer-layout-2-column .footer-content {
    grid-template-columns: 1fr 1fr;
}

.footer-layout-centered .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Logo Area */
.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--footer-accent, #e74c3c);
    margin: 0;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Footer Social Media */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--footer-link, #3498db);
    border-radius: 50%;
    color: var(--footer-link, #3498db);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--footer-accent, #e74c3c);
    transition: left 0.3s ease;
    z-index: -1;
}

.footer-social a:hover::before {
    left: 0;
}

.footer-social a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: var(--footer-accent, #e74c3c);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--footer-accent, #e74c3c);
}

.footer-layout-centered .footer-widget h4::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.footer-widget ul li::before {
    content: '▶';
    position: absolute;
    left: -15px;
    color: var(--footer-accent, #e74c3c);
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-widget ul li:hover {
    padding-left: 15px;
}

.footer-widget ul li:hover::before {
    opacity: 1;
    left: 0;
}

.footer-widget ul li a {
    color: var(--footer-text, #ecf0f1);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-widget ul li a:hover {
    color: var(--footer-accent, #e74c3c);
    opacity: 1;
}

/* Contact Widget */
.contact-widget ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-widget ul li::before {
    display: none;
}

.contact-icon {
    color: var(--footer-accent, #e74c3c);
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.contact-widget a {
    color: var(--footer-link, #3498db) !important;
    text-decoration: none;
}

.contact-widget a:hover {
    color: var(--footer-accent, #e74c3c) !important;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-layout-4-column .footer-content,
    .footer-layout-3-column .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-widget ul li::before {
        display: none;
    }
    
    .footer-widget ul li:hover {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .footer-social {
        gap: 8px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-text {
        font-size: 20px;
    }
}

/* Animation Classes */
.footer-widget {
    animation: fadeInUp 0.6s ease-out;
}

.footer-widget:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-widget:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-widget:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .site-footer {
        --footer-bg: #1a1a1a;
        --footer-bg-dark: #0d0d0d;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .site-footer {
        --footer-text: #ffffff;
        --footer-link: #ffff00;
        --footer-accent: #ff6b6b;
    }
    
    .footer-social a {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .footer-widget,
    .footer-social a,
    .footer-logo img,
    .footer-widget ul li {
        animation: none;
        transition: none;
    }
}