/**
 * Card-Style Footer CSS
 * Makes the footer itself look like a card
 */

/* Footer as Card */
.site-footer.card-style-footer {
    position: relative;
    width: 100%;
    background-color: #252A34;
    color: #FFFFFF;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 0;
    transform: translateY(-30px);
}

/* Remove the problematic white tile by ensuring proper background & z-index */
.site-footer.card-style-footer::after {
    display: none; /* Remove any potential after element causing the white tile */
}

/* Glass Effect Overlay */
.site-footer.card-style-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Container */
.footer-container {
    position: relative;
    z-index: 2;
    padding: 40px;
    background-color: transparent; /* Ensure container is transparent */
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    position: relative; /* Add positioning context */
}

/* Footer Section */
.footer-section {
    margin-bottom: 20px;
    background-color: transparent; /* Reset any background colors */
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: "\f105"; /* FontAwesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #3861fb;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 18px;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social-links .social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-social-links .social-link:hover {
    background-color: #3861fb;
    transform: translateY(-3px);
    color: #FFFFFF;
}

/* Newsletter Form */
.footer-newsletter-form {
    margin-top: 15px;
}

.footer-newsletter-form .form-group {
    position: relative;
    display: flex;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.footer-newsletter-form input[type="email"]:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form button {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    background-color: #3861fb;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.footer-newsletter-form button:hover {
    background-color: #2d4ccc;
}

/* Bottom Footer */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* Add positioning context */
    z-index: 2; /* Ensure it's above any problematic elements */
    background-color: transparent; /* Reset any background colors */
}

.copyright-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright-text a {
    color: #FFFFFF;
    text-decoration: none;
}

.copyright-text a:hover {
    text-decoration: underline;
    color: #3861fb;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #3861fb;
    color: #FFFFFF;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #2d4ccc;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-footer.card-style-footer {
        width: calc(100% - 30px);
        margin: 50px auto 20px;
    }
    
    .footer-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer.card-style-footer {
        width: calc(100% - 20px);
        margin: 40px auto 15px;
        border-radius: 12px;
    }
    
    .footer-container {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    #back-to-top {
        right: 20px;
        bottom: 20px;
        width: 35px;
        height: 35px;
    }
}
