/* ============================================
   WiFiHapa - Footer Stylesheet
   Responsive, Dark Mode Ready, Modern Design
   ============================================ */

/* ----- FOOTER VARIABLES (inherits from root) ----- */
:root {
    --footer-bg: linear-gradient(135deg, #0b2b40 0%, #0a1f2e 100%);
    --transition: all 0.3s ease;
}

body.dark {
    --footer-bg: linear-gradient(135deg, #0a1424 0%, #070e1a 100%);
}

/* ----- MAIN FOOTER STYLES ----- */
footer.footer {
    background: var(--footer-bg);
    margin-top: 4rem;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

/* Top gradient border */
footer.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #d4a11e, #0d6efd);
}

/* Footer content container */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ----- SOCIAL MEDIA ICONS (Left Side) ----- */
.social-icons-footer {
    display: flex;
    gap: 1rem;
}

.social-icons-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons-footer a:hover {
    background: #d4a11e;
    transform: translateY(-3px);
}

/* Individual social icon colors on hover */
.social-icons-footer a:hover .fa-facebook-f {
    color: white;
}

.social-icons-footer a:hover .fa-instagram {
    color: white;
}

.social-icons-footer a:hover .fa-whatsapp {
    color: white;
}

.social-icons-footer a:hover .fa-x-twitter {
    color: white;
}

.social-icons-footer a:hover .fa-tiktok {
    color: white;
}

/* ----- COPYRIGHT SECTION (Middle) ----- */
.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.85rem;
}

.footer-copyright p {
    margin-bottom: 0.5rem;
}

.footer-copyright a {
    color: #d4a11e;
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 0.25rem;
}

.footer-copyright a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Separator dots */
.footer-copyright .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.25rem;
}

/* ----- POWERED BY SECTION (Right Side) ----- */
.footer-powered {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-powered a {
    color: #d4a11e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-powered a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet Landscape (992px - 1200px) */
@media (max-width: 1200px) {
    footer.footer {
        margin-top: 3rem;
        padding: 1.8rem 0;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-powered {
        font-size: 0.8rem;
    }
}

/* Tablet Portrait (768px - 992px) */
@media (max-width: 992px) {
    footer.footer {
        margin-top: 2.5rem;
        padding: 1.5rem 0;
    }
    
    .social-icons-footer a {
        width: 34px;
        height: 34px;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
    
    .footer-powered {
        font-size: 0.75rem;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    footer.footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-icons-footer {
        justify-content: center;
        order: 1;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-powered {
        order: 3;
    }
    
    .social-icons-footer a {
        width: 36px;
        height: 36px;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .footer-copyright p {
        margin-bottom: 0.3rem;
    }
    
    .footer-powered {
        font-size: 0.7rem;
    }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 576px) {
    footer.footer {
        margin-top: 1.5rem;
        padding: 1.2rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .social-icons-footer {
        gap: 0.75rem;
    }
    
    .social-icons-footer a {
        width: 32px;
        height: 32px;
    }
    
    .social-icons-footer a i {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
    }
    
    .footer-copyright a {
        margin: 0 0.2rem;
    }
    
    .footer-powered {
        font-size: 0.65rem;
    }
}

/* Extra Small Devices (below 400px) */
@media (max-width: 400px) {
    footer.footer {
        margin-top: 1rem;
        padding: 1rem 0;
    }
    
    .social-icons-footer {
        gap: 0.5rem;
    }
    
    .social-icons-footer a {
        width: 28px;
        height: 28px;
    }
    
    .social-icons-footer a i {
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        font-size: 0.6rem;
    }
    
    .footer-copyright p {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .footer-copyright a {
        display: inline-block;
        margin: 0 0.15rem;
    }
    
    .footer-powered {
        font-size: 0.6rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    footer.footer {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }
    
    .footer-content {
        gap: 0.8rem;
    }
    
    .social-icons-footer a {
        width: 30px;
        height: 30px;
    }
}

/* Dark mode specific adjustments */
body.dark footer.footer::before {
    background: linear-gradient(90deg, #0d6efd, #d4a11e, #0d6efd);
}

body.dark .footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .footer-powered {
    color: rgba(255, 255, 255, 0.6);
}

/* Print styles - hide footer when printing */
@media print {
    footer.footer {
        display: none !important;
    }
}

/* Animation for footer on page load */
footer.footer {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect on copyright links */
.footer-copyright a {
    position: relative;
}

.footer-copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d6efd;
    transition: width 0.3s ease;
}

.footer-copyright a:hover::after {
    width: 100%;
}

/* Accessibility - focus styles */
.social-icons-footer a:focus,
.footer-copyright a:focus,
.footer-powered a:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 50%;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-icons-footer a {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .footer-copyright a,
    .footer-powered a {
        color: #ffcc00;
        text-decoration: underline;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    footer.footer {
        animation: none;
        opacity: 1;
    }
    
    .social-icons-footer a,
    .footer-copyright a,
    .footer-powered a {
        transition: none;
    }
    
    .footer-copyright a::after {
        transition: none;
    }
}