/**
 * Liquid Glass Tabs for Elementor
 * Version 2.0.0
 */

/* ============================================
   BASE WIDGET CONTAINER
   ============================================ */
.lgt-widget {
    position: relative;
    width: 100%;
}

/* Alignment */
.lgt-align-left .lgt-nav-wrapper { justify-content: flex-start; }
.lgt-align-center .lgt-nav-wrapper { justify-content: center; }
.lgt-align-right .lgt-nav-wrapper { justify-content: flex-end; }

/* ============================================
   NAVIGATION WRAPPER
   ============================================ */
.lgt-nav-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

/* ============================================
   GLASS NAVIGATION CONTAINER
   ============================================ */
.lgt-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass shine overlay */
.lgt-has-shine .lgt-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   TABS LIST
   ============================================ */
.lgt-tabs-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* ============================================
   TAB TITLE ITEMS
   ============================================ */
.lgt-tab-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    user-select: none;
    z-index: 2;
    border-radius: 40px;
    background: transparent;
    border: none;
}

.lgt-tab-title:hover {
    color: #333;
}

.lgt-tab-title.lgt-active {
    color: #1a1a1a;
}

/* Tab icon */
.lgt-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lgt-tab-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.lgt-tab-title:hover .lgt-tab-icon {
    transform: scale(1.1);
}

/* Tab text */
.lgt-tab-text {
    display: inline-block;
}

/* ============================================
   SLIDING INDICATOR
   ============================================ */
.lgt-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 8px;
    width: 0;
    background: linear-gradient(135deg, #4ECDC4, #44B8A8);
    border-radius: 40px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(78, 205, 196, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Indicator shine */
.lgt-indicator-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    pointer-events: none;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.lgt-content-wrapper {
    position: relative;
    width: 100%;
}

.lgt-tab-content {
    display: none;
    opacity: 0;
    width: 100%;
}

.lgt-tab-content.lgt-active {
    display: block;
    opacity: 1;
}

/* ============================================
   CONTENT ANIMATIONS
   ============================================ */

/* Fade */
.lgt-animation-fade .lgt-tab-content {
    transition: opacity 0.4s ease;
}

.lgt-animation-fade .lgt-tab-content.lgt-active {
    opacity: 1;
}

/* Fade Up */
.lgt-animation-fade-up .lgt-tab-content {
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lgt-animation-fade-up .lgt-tab-content.lgt-active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Down */
.lgt-animation-fade-down .lgt-tab-content {
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lgt-animation-fade-down .lgt-tab-content.lgt-active {
    opacity: 1;
    transform: translateY(0);
}

/* No animation */
.lgt-animation-none .lgt-tab-content {
    transition: none;
}

.lgt-animation-none .lgt-tab-content.lgt-active {
    opacity: 1;
}

/* ============================================
   TEMPLATE NOTICE (Editor)
   ============================================ */
.lgt-template-notice {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 767px) {
    .lgt-nav {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .lgt-nav::-webkit-scrollbar {
        display: none;
    }
    
    .lgt-tab-title {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .lgt-tabs-list {
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .lgt-tab-title {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .lgt-tab-icon {
        margin-right: 6px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.lgt-tab-title:focus {
    outline: 2px solid rgba(78, 205, 196, 0.5);
    outline-offset: 2px;
}

.lgt-tab-title:focus:not(:focus-visible) {
    outline: none;
}

.lgt-tab-title:focus-visible {
    outline: 2px solid rgba(78, 205, 196, 0.5);
    outline-offset: 2px;
}

/* Screen reader only */
.lgt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .lgt-nav {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .lgt-tab-title {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .lgt-tab-title:hover {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .lgt-tab-title.lgt-active {
        color: #fff;
    }
}

/* ============================================
   SCROLLABLE NAV (Touch/Drag)
   ============================================ */
.lgt-nav.lgt-scrollable {
    cursor: grab;
}

.lgt-nav.lgt-scrollable:active {
    cursor: grabbing;
}

.lgt-nav.lgt-scrollable.lgt-dragging {
    scroll-behavior: auto;
}

/* ============================================
   HASH/ANCHOR LINK SUPPORT
   ============================================ */
.lgt-tab-title[id]:target {
    scroll-margin-top: 100px;
}
