/**
 * Site Footer Styles
 * Primary: #19868b | Secondary: #e1273d
 */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 25px rgba(25, 134, 139, 0.4);
    cursor: pointer;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #e1273d 0%, #c41f33 100%);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(225, 39, 61, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
    
    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }
}

/* Footer Main */
.site-footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #19868b 0%, #e1273d 100%);
}

.footer-main {
    padding: 80px 0 60px;
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 25px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
}

/* Footer Bio */
.footer-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 320px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(25, 134, 139, 0.4);
}

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

.footer-widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #19868b 0%, #0d6b6f 100%);
    border-radius: 2px;
}

[dir="rtl"] .footer-widget-title::after {
    left: auto;
    right: 0;
}

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

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

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 10px;
    margin-right: 10px;
    color: #19868b;
    transition: transform 0.3s ease;
}

[dir="rtl"] .footer-links a i {
    margin-right: 0;
    margin-left: 10px;
    transform: rotate(180deg);
}

.footer-links a:hover {
    color: #19868b;
    padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

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

[dir="rtl"] .footer-links a:hover i {
    transform: translateX(-3px) rotate(180deg);
}

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

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact-list li:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}

[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 15px;
}

.contact-icon i {
    color: #ffffff;
    font-size: 16px;
}

.contact-text {
    flex: 1;
}

.contact-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #19868b;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

[dir="rtl"] .footer-bottom-links {
    justify-content: flex-start;
}

.footer-bottom-links li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links li a:hover {
    color: #19868b;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-main {
        padding: 60px 0 40px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
    
    .footer-bio {
        max-width: 100%;
    }
    
    .footer-widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

