/**
 * IASCOM Footer Bar Styles
 * Professional footer with navigation, contact info and social media
 * Version: 1.0.0
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    --iascom-footer-nav-bg: #707070;
    --iascom-footer-nav-bg-mobile: #d32f2f;
    --iascom-footer-info-bg: #4a4a4a;
    --iascom-footer-text: #ffffff;
    --iascom-footer-text-muted: #d0d0d0;
    --iascom-footer-accent: #e63946;
    --iascom-footer-accent-hover: #ff4d5a;
    --iascom-footer-divider: #e63946;
    --iascom-footer-link-hover: #ffffff;
    --iascom-footer-border: rgba(255, 255, 255, 0.12);
    --iascom-footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --iascom-footer-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ============================================
   Main Footer Container
============================================ */
.iascom-footer {
    font-family: var(--iascom-footer-font);
    line-height: 1.5;
    box-sizing: border-box;
    margin-top: 0;
}

.iascom-footer *,
.iascom-footer *::before,
.iascom-footer *::after {
    box-sizing: border-box;
}

.iascom-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   Navigation Links Section (Top)
============================================ */
.iascom-footer-nav {
    background: var(--iascom-footer-nav-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--iascom-footer-border);
    position: relative;
    overflow: hidden;
}

/* Subtle animated gradient overlay */
.iascom-footer-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
    pointer-events: none;
}

.iascom-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.iascom-footer-link {
    color: var(--iascom-footer-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 4px;
    letter-spacing: 0.3px;
    transition: var(--iascom-footer-transition);
    position: relative;
}

.iascom-footer-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--iascom-footer-accent);
    transition: var(--iascom-footer-transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.iascom-footer-link:hover {
    color: var(--iascom-footer-link-hover);
}

.iascom-footer-link:hover::after {
    width: calc(100% - 20px);
}

.iascom-footer-divider {
    color: var(--iascom-footer-divider);
    font-weight: 400;
    font-size: 13px;
    opacity: 0.8;
    user-select: none;
}

/* ============================================
   Contact & Social Section (Bottom)
============================================ */
.iascom-footer-info {
    background: var(--iascom-footer-info-bg);
    padding: 12px 0;
}

.iascom-footer-info-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Contact Items */
.iascom-footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.iascom-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--iascom-footer-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--iascom-footer-transition);
    padding: 4px 0;
}

.iascom-contact-item:hover {
    color: var(--iascom-footer-link-hover);
}

.iascom-contact-item:hover .iascom-icon {
    color: var(--iascom-footer-accent);
    transform: scale(1.1);
}

.iascom-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: var(--iascom-footer-transition);
}

/* Social Icons */
.iascom-footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iascom-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--iascom-footer-text-muted);
    transition: var(--iascom-footer-transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.iascom-social-icon svg {
    width: 14px;
    height: 14px;
    transition: var(--iascom-footer-transition);
}

.iascom-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* Individual social colors on hover */
.iascom-social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.iascom-social-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.iascom-social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
    color: #fff;
}

.iascom-social-tiktok:hover {
    background: #000;
    border-color: #69c9d0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                inset 0 0 0 1px #69c9d0,
                inset 0 0 0 2px #ee1d52;
}

.iascom-social-x:hover {
    background: #000;
    border-color: #fff;
    color: #fff;
}

/* Copyright */
.iascom-footer-copyright {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--iascom-footer-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.iascom-copyright-icon {
    font-size: 14px;
    color: var(--iascom-footer-accent);
}

/* ============================================
   Tablet Responsive (max-width: 1024px)
============================================ */
@media (max-width: 1024px) {
    .iascom-footer-info-wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .iascom-footer-contact {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }
    
    .iascom-footer-social {
        order: 2;
    }
    
    .iascom-footer-copyright {
        order: 3;
    }
}

/* ============================================
   Mobile Responsive (max-width: 768px)
============================================ */
@media (max-width: 768px) {
    /* Red background for mobile nav */
    .iascom-footer-nav {
        background: var(--iascom-footer-nav-bg-mobile);
        padding: 14px 0;
    }
    
    /* Adjust shimmer for red background */
    .iascom-footer-nav::before {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%,
            transparent 100%
        );
    }
    
    .iascom-footer-links {
        gap: 4px;
        justify-content: center;
    }
    
    .iascom-footer-link {
        font-size: 17px;
        padding: 10px 12px;
    }
    
    .iascom-footer-divider {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.5);
    }
    
    .iascom-footer-info {
        padding: 20px 0;
    }
    
    .iascom-footer-info-wrap {
        flex-direction: column;
        gap: 16px;
    }
    
    .iascom-footer-contact {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .iascom-contact-item {
        font-size: 14px;
    }
    
    .iascom-contact-item .iascom-icon {
        width: 18px;
        height: 18px;
    }
    
    .iascom-footer-social {
        gap: 14px;
    }
    
    .iascom-social-icon {
        width: 46px;
        height: 46px;
    }
    
    .iascom-social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .iascom-footer-copyright {
        font-size: 12px;
        text-align: center;
    }
}

/* ============================================
   Small Mobile (max-width: 480px)
============================================ */
@media (max-width: 480px) {
    .iascom-footer-container {
        padding: 0 12px;
    }
    
    .iascom-footer-links {
        justify-content: center;
    }
    
    .iascom-footer-link {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .iascom-footer-link::after {
        display: none;
    }
    
    .iascom-contact-item span {
        font-size: 11px;
    }
}

/* ============================================
   Accessibility & Print
============================================ */
@media (prefers-reduced-motion: reduce) {
    .iascom-footer-nav::before {
        animation: none;
    }
    
    .iascom-footer-link::after,
    .iascom-social-icon,
    .iascom-contact-item,
    .iascom-icon {
        transition: none;
    }
}

@media print {
    .iascom-footer {
        display: none;
    }
}

/* ============================================
   Focus States for Accessibility
============================================ */
.iascom-footer-link:focus-visible,
.iascom-contact-item:focus-visible,
.iascom-social-icon:focus-visible {
    outline: 2px solid var(--iascom-footer-accent);
    outline-offset: 2px;
}
