/*==========================================
   Premium Footer - Orange/Black Theme
==========================================*/

.footer {
    background: var(--black-900);
    color: var(--gray-400);
    position: relative;
    padding-top: 80px;
    margin-top: 80px;
    overflow: hidden;
}

/* Decorative Elements */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--orange-400), var(--primary));
}

.footer-wave {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.footer-wave .shape-fill {
    fill: var(--white);
}

/* Footer Top */
.footer-top {
    padding: 60px 0 40px;
    position: relative;
    z-index: 2;
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 50px;
   
}

.footer-text {
    color: var(--gray-500);
    margin: 0 0 25px;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    border-color: transparent;
}

/* Widget Title */
.widget-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--white);
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-info li i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 3px;
    min-width: 20px;
}

.contact-info li a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info li a:hover {
    color: var(--primary);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.recent-posts a:hover {
    color: var(--primary);
}

.post-date {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Newsletter */
.newsletter-form {
    margin-top: 20px;
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--gray-600);
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: translateX(-2px);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}

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

.footer-bottom-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-orange);
    transition: all 0.3s ease;
    z-index: 99;
    border: 2px solid transparent;
}

.back-to-top:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer {
        padding-top: 60px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 20px;
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 20px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-btn {
        position: static;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
    }
}