/**
 * Footer Styles
 * Mirasat IPTV Theme
 */

/* ============================================
   FOOTER WRAPPER
   ============================================ */
.site-footer {
    background-color: var(--black);
    color: var(--white);
    position: relative;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER MAIN AREA
   ============================================ */
.footer-main {
    padding: 60px 0 40px;
}

.footer-col {
    margin-bottom: 30px;
}

/* ============================================
   FOOTER LOGO & BRAND
   ============================================ */
.footer-brand-col {
    padding-right: 40px;
}

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

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover img {
    opacity: 0.85;
}

.footer-logo .custom-logo-link {
    display: inline-block;
}

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

.footer-site-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-headers);
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-site-title:hover {
    color: var(--second);
    text-decoration: none;
}

/* Footer Description */
.footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 15px;
}

.footer-description p {
    margin-bottom: 10px;
}

.footer-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FOOTER WIDGET TITLES
   ============================================ */
.footer-widget-title,
.site-footer .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
    font-family: var(--font-headers);
}

.footer-widget-title::after,
.site-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--main);
    border-radius: 2px;
}

/* ============================================
   FOOTER MAIN NAVIGATION (Menu Principal)
   ============================================ */
.footer-main-nav {
    margin: 0;
}

.footer-main-nav ul,
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-main-nav ul li,
.footer-nav-list li {
    margin-bottom: 12px;
}

.footer-main-nav ul li:last-child,
.footer-nav-list li:last-child {
    margin-bottom: 0;
}

.footer-main-nav ul li a,
.footer-nav-list li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-main-nav ul li a::before,
.footer-nav-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--second);
    transition: width 0.3s ease;
}

.footer-main-nav ul li a:hover,
.footer-nav-list li a:hover {
    color: var(--second);
    text-decoration: none;
    padding-left: 8px;
}

.footer-main-nav ul li a:hover::before,
.footer-nav-list li a:hover::before {
    width: 100%;
}

/* ============================================
   FOOTER WIDGETS
   ============================================ */
.site-footer .widget {
    margin-bottom: 25px;
}

.site-footer .widget:last-child {
    margin-bottom: 0;
}

.site-footer .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .widget ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer .widget ul li a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    text-decoration: none;
}

.site-footer .widget ul li a:hover {
    color: var(--second);
}

.site-footer .widget p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
}

/* Footer Widgets Extra Row */
.footer-widgets-extra {
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER BOTTOM BAR
   ============================================ */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Copyright */
.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.copyright a {
    color: var(--second);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--white);
}

/* ============================================
   FOOTER LEGAL LINKS (Termos e Privacidade)
   ============================================ */
.footer-legal-links {
    text-align: right;
}

.footer-legal-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-legal-links ul li {
    display: inline-block;
}

.footer-legal-links ul li::after {
    content: '|';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal-links ul li:last-child::after {
    display: none;
}

.footer-legal-links ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links ul li a:hover {
    color: var(--second);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991px) {
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-brand-col {
        padding-right: 15px;
    }
    
    .footer-col {
        margin-bottom: 35px;
    }
    
    .footer-menu-col {
        padding-left: 30px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-brand-col,
    .footer-menu-col,
    .footer-widgets-col {
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer-widget-title::after,
    .site-footer .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-main-nav ul li a::before {
        display: none;
    }
    
    .footer-main-nav ul li a:hover {
        padding-left: 0;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 150px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        width: 100%;
    }
    
    .copyright {
        margin-bottom: 12px;
    }
    
    .footer-legal-links {
        text-align: center;
    }
    
    .footer-legal-links ul {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .footer-main {
        padding: 35px 0 15px;
    }
    
    .footer-widget-title,
    .site-footer .widget-title {
        font-size: 16px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .footer-main-nav ul li a,
    .footer-nav-list li a {
        font-size: 14px;
    }
    
    .footer-legal-links ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-legal-links ul li::after {
        display: none;
    }
}

/* ============================================
   DARK THEME VARIATIONS
   ============================================ */
.site-footer.footer-dark {
    background: linear-gradient(180deg, #1a1625 0%, #0f0c17 100%);
}

/* ============================================
   ANIMATION EFFECTS
   ============================================ */
.site-footer .footer-logo,
.site-footer .footer-description,
.site-footer .footer-widget-title,
.site-footer .footer-main-nav,
.site-footer .widget {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.site-footer .footer-logo {
    animation-delay: 0.1s;
}

.site-footer .footer-description {
    animation-delay: 0.2s;
}

.site-footer .footer-widget-title {
    animation-delay: 0.3s;
}

.site-footer .footer-main-nav {
    animation-delay: 0.4s;
}

.site-footer .widget {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-logo,
    .site-footer .footer-description,
    .site-footer .footer-widget-title,
    .site-footer .footer-main-nav,
    .site-footer .widget {
        animation: none;
        opacity: 1;
    }
}
