/* Footer Styles */

.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 4rem;
}

/* Footer Widgets */
.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area {
    display: grid;
    gap: 2rem;
}

/* Automatically adjust columns based on active sidebars */
.footer-widget-area {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* If you want specific column layouts, use these classes */
.footer-widget-area.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.footer-widget-area.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.footer-column {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Footer Widget Styles */
.footer-widgets .widget {
    margin-bottom: 0;
}

.footer-widgets .widget-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.footer-widgets .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widgets .widget li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.footer-widgets .widget li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
}

.footer-widgets .widget a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widgets .widget a:hover {
    color: #3498db;
}

.footer-widgets .widget p {
    color: #bdc3c7;
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-info {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.site-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.site-info a:hover {
    color: #5faee3;
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    transition: all 0.3s;
}

.footer-social-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-widget-area {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-widgets {
        padding: 2rem 0;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .footer-widget-area.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Mode Support */
body.dark-mode .site-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
}

body.dark-mode .footer-bottom {
    background: rgba(0, 0, 0, 0.4);
}