/* IT44 Footer Plugin Styles */

:root {
    --aivons-gray: #8f8da0;
}

.it44-footer {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    padding: 60px 0 20px;    
}

.it44-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    overflow: visible;
}

.it44-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.it44-footer-col {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.it44-footer-menu {
    overflow: visible;
}

.it44-footer-about {
    flex: 2;
}

.it44-footer-logo img {
    max-height: var(--logo-height, 60px);
    height: var(--logo-height, 60px);
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.it44-footer-company-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.it44-footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--aivons-gray, #8f8da0);
    color: rgb(122, 122, 122) !important;
    margin: 0;
}

/* Menu styles */
.it44-footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.it44-footer-menu-list li {
    margin-bottom: 8px;
    position: relative;
}

.it44-footer-menu-list a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.it44-footer-menu-list a:hover {
    color: #3c72fc !important;
}

/* Rozwijane menu na hover */
.it44-footer-menu-list .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #0f0d1d;
    min-width: 180px;
    max-width: 250px;
    padding: 8px 0;
    margin: 0;
    margin-left: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.it44-footer-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Inteligentne pozycjonowanie - jeśli nie ma miejsca po prawej, pokaż po lewej */
.it44-footer-menu-list li:nth-last-child(-n+3) .sub-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 5px;
}

.it44-footer-menu-list li:nth-last-child(-n+3):hover > .sub-menu {
    transform: translateX(0);
}

.it44-footer-menu-list .sub-menu li {
    margin-bottom: 0;
    padding: 0 12px;
}

.it44-footer-menu-list .sub-menu a {
    font-size: 12px;
    color: #ffffff !important;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 1.3;
    display: block;
    background-color: transparent;
    transition: all 0.2s ease;
}

.it44-footer-menu-list .sub-menu li:last-child a {
    border-bottom: none;
}

.it44-footer-menu-list .sub-menu a:hover {
    color: #3c72fc !important;
    background-color: rgba(60, 114, 252, 0.2);
    padding-left: 8px;
    transition: all 0.2s ease;
}

/* Strzałka wskazująca na podmenu */
.it44-footer-menu-list li.menu-item-has-children > a::after {
    content: "▶";
    margin-left: 8px;
    font-size: 10px;
    color: #8f8da0;
    transition: transform 0.3s ease;
}

.it44-footer-menu-list li.menu-item-has-children:hover > a::after {
    transform: rotate(90deg);
    color: #3c72fc;
}

/* Contact menu styles */
.it44-footer-contact-menu {
    margin-bottom: 20px;
}

.it44-footer-contact-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.it44-footer-contact-menu-list li {
    margin-bottom: 8px;
}

.it44-footer-contact-menu-list a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.it44-footer-contact-menu-list a:hover {
    color: #3c72fc !important;
}

.it44-footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.it44-footer-contact-item {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.it44-footer-contact-item i {
    color: var(--aivons-primary, #3c72fc) !important;
    font-size: 16px;
    margin-right: 8px;
}

.it44-footer-contact-item strong {
    color: #3c72fc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.it44-footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.it44-footer-contact-item a:hover {
    color: #3c72fc;
}

.it44-footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.it44-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.it44-social-link:hover {
    color: #3c72fc;
}

.it44-social-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.it44-footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
    text-align: center;
}

.it44-footer-copyright {
    font-size: 14px;
    color: rgb(122, 122, 122) !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .it44-footer {
        padding: 40px 0 20px;
    }
    
    .it44-footer-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .it44-footer-col {
        min-width: 100%;
    }
    
    .it44-footer-company-name {
        font-size: 20px;
    }
    
    .it44-footer-description {
        font-size: 14px;
    }
    
    .it44-footer-social-links {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Na mobile menu rozwijane się zmieniają */
    .it44-footer-menu-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        margin-left: 15px;
        margin-top: 5px;
        padding: 0;
    }
    
    .it44-footer-menu-list .sub-menu li {
        padding: 0;
    }
    
    .it44-footer-menu-list .sub-menu a {
        border-bottom: none;
        background-color: transparent;
    }
    
    .it44-footer-menu-list li.menu-item-has-children > a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .it44-footer-container {
        padding: 0 10px;
    }
    
    .it44-footer {
        padding: 30px 0 15px;
    }
    
    .it44-footer-row {
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .it44-footer-social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .it44-footer-contact-item i {
        font-size: 14px;
    }
}
