/* ========================================
   BEFINDX FOOTER STYLES
   Prefix: bfx-footer-
   ======================================== */

/* Footer Container */
.bfx-footer {
    background: var(--bfx-bg-dark);
    position: relative;
    margin-top: var(--bfx-spacing-16);
}

.bfx-footer-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bfx-primary), transparent);
}

/* Footer Logo */
.bfx-footer-logo {
    display: flex;
    align-items: center;
    gap: var(--bfx-spacing-2);
    margin-bottom: var(--bfx-spacing-4);
}

.bfx-footer-logo-icon {
    font-size: var(--bfx-font-size-2xl);
    color: var(--bfx-primary);
}

.bfx-footer-logo-text {
    font-size: var(--bfx-font-size-xl);
    font-weight: bold;
    color: white;
}

/* Footer Description */
.bfx-footer-description {
    color: var(--bfx-text-light);
    line-height: 1.6;
    margin-bottom: var(--bfx-spacing-4);
    font-size: var(--bfx-font-size-sm);
}

/* Social Icons */
.bfx-footer-social {
    display: flex;
    gap: var(--bfx-spacing-3);
}

.bfx-footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--bfx-radius-full);
    color: var(--bfx-text-light);
    transition: all var(--bfx-transition-fast);
    text-decoration: none;
}

.bfx-footer-social-link:hover {
    background: var(--bfx-primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer Headings */
.bfx-footer-heading {
    font-weight: 600;
    color: white;
    margin-bottom: var(--bfx-spacing-4);
    font-size: var(--bfx-font-size-lg);
}

/* Footer Links List */
.bfx-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--bfx-spacing-2);
}

/* Individual Footer Link */
.bfx-footer-link {
    color: var(--bfx-text-light);
    transition: all var(--bfx-transition-fast);
    display: inline-block;
    position: relative;
    text-decoration: none;
    font-size: var(--bfx-font-size-sm);
}

.bfx-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bfx-primary);
    transition: width var(--bfx-transition-fast);
}

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

.bfx-footer-link:hover::after {
    width: 100%;
}

/* Footer Bottom Section */
.bfx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--bfx-spacing-8);
    padding-top: var(--bfx-spacing-8);
    text-align: center;
    color: var(--bfx-text-light);
    font-size: var(--bfx-font-size-sm);
}

/* Heart Animation */
.bfx-footer-heart {
    color: var(--bfx-primary);
    display: inline-block;
    animation: bfx-footer-heartbeat 1.5s ease infinite;
}

@keyframes bfx-footer-heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Newsletter Section (Optional) */
.bfx-footer-newsletter {
    margin-top: var(--bfx-spacing-4);
}

.bfx-footer-newsletter-title {
    color: white;
    font-size: var(--bfx-font-size-sm);
    margin-bottom: var(--bfx-spacing-2);
    font-weight: 500;
}

.bfx-footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--bfx-spacing-2);
}

.bfx-footer-newsletter-input {
    width: 100%;
    padding: var(--bfx-spacing-2) var(--bfx-spacing-3);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--bfx-radius-lg);
    color: white;
    font-size: var(--bfx-font-size-sm);
}

.bfx-footer-newsletter-input:focus {
    outline: none;
    border-color: var(--bfx-primary);
}

.bfx-footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bfx-footer-newsletter-btn {
    width: 100%;
    padding: var(--bfx-spacing-2);
    background: var(--bfx-primary);
    border: none;
    border-radius: var(--bfx-radius-lg);
    color: white;
    cursor: pointer;
    transition: all var(--bfx-transition-fast);
    font-size: var(--bfx-font-size-sm);
    font-weight: 500;
}

.bfx-footer-newsletter-btn:hover {
    background: var(--bfx-primary-dark);
}

/* Scroll to Top Button */
.bfx-footer-scroll-top {
    position: fixed;
    bottom: var(--bfx-spacing-6);
    right: var(--bfx-spacing-6);
    width: 45px;
    height: 45px;
    background: var(--bfx-primary);
    border-radius: var(--bfx-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--bfx-transition-normal);
    z-index: 40;
    box-shadow: var(--bfx-shadow-lg);
    border: none;
}

.bfx-footer-scroll-top.bfx-visible {
    opacity: 1;
    visibility: visible;
}

.bfx-footer-scroll-top:hover {
    background: var(--bfx-primary-dark);
    transform: translateY(-3px);
}

/* Footer Grid Layout */
.bfx-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bfx-spacing-8);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .bfx-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--bfx-spacing-6);
    }
    
    .bfx-footer-scroll-top {
        bottom: var(--bfx-spacing-4);
        right: var(--bfx-spacing-4);
        width: 40px;
        height: 40px;
    }
    
    .bfx-footer {
        margin-top: var(--bfx-spacing-8);
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .bfx-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bfx-spacing-6);
    }
}

/* Footer Links Hover Effect Container */
.bfx-footer-column {
    display: flex;
    flex-direction: column;
}

/* Additional Footer Utilities */
.bfx-footer-text-center {
    text-align: center;
}

.bfx-footer-mt-4 {
    margin-top: var(--bfx-spacing-4);
}

.bfx-footer-mb-4 {
    margin-bottom: var(--bfx-spacing-4);
}

/* Dark Mode Adjustments */
[data-bfx-theme="dark"] .bfx-footer {
    background: var(--bfx-bg-dark);
}

[data-bfx-theme="dark"] .bfx-footer-link {
    color: var(--bfx-text-tertiary);
}

[data-bfx-theme="dark"] .bfx-footer-link:hover {
    color: var(--bfx-primary);
}

[data-bfx-theme="dark"] .bfx-footer-social-link {
    background: rgba(255, 255, 255, 0.08);
}