/**
 * Footer Styles
 * MediFlow Theme
 */

/* ==========================================================================
   Footer Widgets
   ========================================================================== */

.site-footer {
    background: var(--footer-bg, #1e293b);
    color: var(--footer-text, #94a3b8);
}

.footer-widgets {
    padding: 80px 0 40px;
}

.footer-widgets-inner {
    display: grid;
    gap: 40px;
}

/* Footer Layouts */
.footer-layout-1 {
    grid-template-columns: 1fr;
}

.footer-layout-2 {
    grid-template-columns: repeat(2, 1fr);
}

.footer-layout-3 {
    grid-template-columns: repeat(3, 1fr);
}

.footer-layout-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Footer Column */
.footer-column {
    animation: fadeInUp 0.6s ease;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Widget Styles */
.footer-column .widget {
    margin-bottom: 30px;
}

.footer-column .widget:last-child {
    margin-bottom: 0;
}

.footer-column .widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.footer-column .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ==========================================================================
   Footer Bottom
   ========================================================================== */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: #94a3b8;
}

.footer-copyright a {
    color: #3b82f6;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .footer-layout-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-layout-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        padding: 60px 0 30px;
    }

    .footer-layout-2,
    .footer-layout-3,
    .footer-layout-4 {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        padding: 40px 0 20px;
    }

    .footer-column .widget-title {
        font-size: 16px;
    }

    .footer-copyright {
        font-size: 13px;
    }
}