/**
 * Tewido Addons Styles
 * Logo Dropdown & Sticky Menu
 */

/* ============================================
   STICKY MENU
   ============================================ */

.tewido-sticky-menu {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    max-width: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tewido-sticky-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tewido-sticky-menu li {
    margin: 0;
    padding: 0;
}

.tewido-sticky-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px;
}

.tewido-menu-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tewido-menu-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tewido-menu-text {
    position: absolute;
    left: 65px;
    white-space: nowrap;
    background: #03445d;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sticky Menu Hover Effects */
.tewido-sticky-menu a:hover .tewido-menu-icon {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.tewido-sticky-menu a:hover .tewido-menu-icon img {
    transform: scale(1.15);
}

.tewido-sticky-menu a:hover .tewido-menu-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Sticky Menu Active State */
.tewido-sticky-menu a.active .tewido-menu-icon {
    background: linear-gradient(135deg, #007DA6 0%, #06485e 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tewido-sticky-menu a.active .tewido-menu-icon img {
    filter: brightness(0) invert(1);
}

/* Sticky Menu RTL Support */
body.rtl .tewido-sticky-menu {
    left: auto;
    right: 20px;
}

body.rtl .tewido-menu-text {
    left: auto;
    right: 65px;
}

body.rtl .tewido-sticky-menu a:hover .tewido-menu-text {
    transform: translateX(0);
}

/* Sticky Menu Responsive */
@media (max-width: 768px) {
    .tewido-sticky-menu {
display: none;
    }

    .tewido-menu-icon {
        width: 40px;
        height: 40px;
    }

    .tewido-menu-icon img {
        width: 24px;
        height: 24px;
    }

    .tewido-menu-text {
        left: 55px;
        font-size: 12px;
        padding: 6px 12px;
    }

    body.rtl .tewido-sticky-menu {
        left: 10px;
        right: auto;
    }

    body.rtl .tewido-menu-text {
        right: auto;
        left: 55px;
    }
}

/* Sticky Menu Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tewido-sticky-menu li {
    animation: fadeInUp 0.4s ease backwards;
}

.tewido-sticky-menu li:nth-child(1) { animation-delay: 0.1s; }
.tewido-sticky-menu li:nth-child(2) { animation-delay: 0.2s; }
.tewido-sticky-menu li:nth-child(3) { animation-delay: 0.3s; }
.tewido-sticky-menu li:nth-child(4) { animation-delay: 0.4s; }
.tewido-sticky-menu li:nth-child(5) { animation-delay: 0.5s; }
.tewido-sticky-menu li:nth-child(6) { animation-delay: 0.6s; }
.tewido-sticky-menu li:nth-child(7) { animation-delay: 0.7s; }
.tewido-sticky-menu li:nth-child(8) { animation-delay: 0.8s; }


/* ============================================
   LOGO DROPDOWN
   ============================================ */

.tewido-logo-with-dropdown-wrapper {
    display: flex !important;
    align-items: center;
}

.tewido-logo-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.tewido-logo-dropdown-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 10px;
}

.tewido-logo-dropdown-toggle:hover {
    transform: scale(1.05);
}

.tewido-logo-dropdown-toggle:focus {
    outline: none;
}

.tewido-logo-dropdown-toggle svg {
    color: #06495F;
    transition: transform 0.3s ease;
}

.tewido-logo-dropdown-wrapper.active .tewido-logo-dropdown-toggle svg,
.tewido-logo-dropdown-wrapper:hover .tewido-logo-dropdown-toggle svg {
    transform: rotate(180deg);
}

.tewido-logo-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tewido-logo-dropdown-wrapper.active .tewido-logo-dropdown-menu,
.tewido-logo-dropdown-wrapper:hover .tewido-logo-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tewido-logo-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.tewido-logo-dropdown-item:hover {
    background: #eff0f0;
}

.tewido-logo-dropdown-image {
    width: 100%;
    height: auto;
    max-width: 240px;
    object-fit: contain;
    transition: all 0.2s ease;
}

/* Logo Dropdown Footer */
.tewido-logo-dropdown-footer {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 13px;
    color: #666;
}

.tewido-logo-dropdown-footer a {
    color: #007DA6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tewido-logo-dropdown-footer a:hover {
    color: #06485e;
}

/* Logo Dropdown RTL Support */
body.rtl .tewido-logo-dropdown-toggle {
    margin-left: 0;
    margin-right: 4px;
}

/* Logo Dropdown Scrollbar */
.tewido-logo-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.tewido-logo-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.tewido-logo-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 125, 166, 0.2);
    border-radius: 10px;
}

.tewido-logo-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 125, 166, 0.4);
}
