/**
 * WebFX Link Building Elementor Widget Styles
 */

/* Container */
.elementor-webfx-link-building {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.webfx-link-building-header {
    margin-bottom: 30px;
    text-align: center;
}

.webfx-link-building-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.webfx-link-building-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Tabs Container */
.webfx-link-building-tabs-container {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Tabs Navigation */
.webfx-link-building-tabs-nav {
    width: 30%;
    background-color: #f9f9f9;
}

.webfx-link-building-tabs-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.webfx-link-building-tab {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eaeaea;
}

.webfx-link-building-tab a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.webfx-link-building-tab a:hover {
    background-color: #f7f7f7;
}

.webfx-link-building-tab.active a {
    background-color: #fff6f0;
    color: #ff681f;
    position: relative;
}

.webfx-link-building-tab.active a:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background-color: #ff681f;
    box-shadow: 0 0 8px rgba(255, 104, 31, 0.5);
    animation: pulseIndicator 2s infinite;
}

@keyframes pulseIndicator {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.webfx-tab-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    background-color: rgba(255, 104, 31, 0.1);
    position: relative;
}

.webfx-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ff681f;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.webfx-tab-icon svg, 
.webfx-tab-icon i {
    width: 18px;
    height: 18px;
    color: #ff681f;
    fill: #ff681f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webfx-tab-icon svg path,
.webfx-tab-icon i:before {
    fill: #ff681f;
    color: #ff681f;
}

.webfx-tab-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tab Content */
.webfx-link-building-tabs-content {
    width: 70%;
    background-color: #fff;
}

.webfx-link-building-tab-content {
    display: none;
    padding: 30px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.webfx-link-building-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.webfx-tab-icon-display {
    margin-bottom: 20px;
}

.webfx-tab-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 104, 31, 0.1);
    position: relative;
}

.webfx-tab-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ff681f;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.webfx-tab-icon-large svg,
.webfx-tab-icon-large i {
    width: 32px;
    height: 32px;
    color: #ff681f;
    fill: #ff681f;
}

.webfx-tab-icon-large svg path,
.webfx-tab-icon-large i:before {
    fill: #ff681f;
    color: #ff681f;
}

.webfx-tab-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.webfx-tab-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.webfx-tab-content-text {
    flex: 1;
    min-width: 300px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.webfx-tab-content-text p {
    margin-bottom: 15px;
}

.webfx-tab-content-text p:last-child {
    margin-bottom: 0;
}

.webfx-tab-content-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.webfx-tab-content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Additional icon fixes */
.webfx-tab-icon .elementor-icon,
.webfx-tab-icon-large .elementor-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix for Font Awesome icons */
.webfx-tab-icon i.fa, 
.webfx-tab-icon i.fas,
.webfx-tab-icon i.far,
.webfx-tab-icon i.fab {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    font-size: 16px;
}

.webfx-tab-icon-large i.fa,
.webfx-tab-icon-large i.fas,
.webfx-tab-icon-large i.far,
.webfx-tab-icon-large i.fab {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    font-size: 30px;
}

/* Ensure all SVG elements are properly centered and sized */
.webfx-tab-icon svg,
.webfx-tab-icon-large svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

/* Responsive Styles */
/* Large tablets and small desktops */
@media screen and (max-width: 1200px) {
    .webfx-tab-content-image {
        min-width: 250px;
    }
}

/* Mobile specific utility class */
.webfx-mobile-view .elementor-webfx-link-building .webfx-link-building-tabs-nav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.webfx-mobile-view .elementor-webfx-link-building .webfx-link-building-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Tablets */
@media screen and (max-width: 992px) {
    .webfx-link-building-tabs-nav,
    .webfx-link-building-tabs-content {
        width: 100%;
    }
    
    .webfx-link-building-tabs-container {
        flex-direction: column;
        box-shadow: none;
        width: 100%;
    }
    
    .webfx-link-building-tabs-nav {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
    }
    
    .webfx-link-building-tabs-nav::-webkit-scrollbar {
        height: 2px;
        background-color: #f1f1f1;
    }
    
    .webfx-link-building-tabs-nav::-webkit-scrollbar-thumb {
        background-color: #ff681f;
    }
    
    /* Gradient indicators for horizontal scrolling */
    .webfx-link-building-tabs-nav::before,
    .webfx-link-building-tabs-nav::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 5;
        pointer-events: none;
    }
    
    .webfx-link-building-tabs-nav::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
    }
    
    .webfx-link-building-tabs-nav::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
    }
    
    .webfx-link-building-tabs-nav ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        min-width: 100%;
    }
    
    .webfx-link-building-tab {
        flex: 0 0 auto; /* Changed to prevent stretching */
        min-width: 150px; /* Ensure tabs have enough width for content */
        border-bottom: none;
        border-right: 1px solid #eaeaea;
        text-align: center;
    }
    
    .webfx-link-building-tab:last-child {
        border-right: none;
    }
    
    .webfx-link-building-tab a {
        padding: 15px 12px;
        white-space: nowrap;
        justify-content: center;
        width: 100%;
        overflow: hidden;
    }
    
    .webfx-link-building-tab.active a:after {
        width: 100%;
        height: 4px;
        top: auto;
        bottom: 0;
        right: auto;
        box-shadow: 0 0 6px rgba(255, 104, 31, 0.4);
    }
    
    .webfx-link-building-tab-content {
        padding: 25px 20px;
    }
    
    .webfx-tab-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .webfx-tab-content-text {
        min-width: 100%;
    }
    
    .webfx-tab-content-image {
        max-width: 100%;
        min-width: 100%;
    }
    
    .webfx-tab-icon-circle {
        width: 56px;
        height: 56px;
    }
    
    .webfx-tab-icon-large i.fa,
    .webfx-tab-icon-large i.fas,
    .webfx-tab-icon-large i.far,
    .webfx-tab-icon-large i.fab {
        font-size: 24px;
    }
    
    .webfx-tab-icon-large svg,
    .webfx-tab-icon-large i {
        width: 28px;
        height: 28px;
    }
    
    .webfx-tab-title {
        font-size: 14px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Mobile phones */
@media screen and (max-width: 576px) {
    .elementor-webfx-link-building {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .webfx-link-building-tabs-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .webfx-link-building-title {
        font-size: 22px;
        padding: 0 15px;
    }
    
    .webfx-link-building-subtitle {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .webfx-link-building-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
    }
    
    .webfx-link-building-tabs-nav ul {
        display: flex;
        width: max-content;
        min-width: 100%;
    }
    
    .webfx-link-building-tabs-nav li {
        flex: 0 0 auto;
        min-width: 120px;
        white-space: nowrap;
        text-align: center;
    }
    
    .webfx-link-building-tab a {
        padding: 12px 10px;
        justify-content: center;
    }
    
    .webfx-tab-icon-container {
        width: 22px;
        height: 22px;
        margin-right: 5px;
    }
    
    .webfx-tab-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    
    .webfx-link-building-tab-content {
        padding: 15px;
    }
    
    .webfx-tab-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .webfx-tab-content-text {
        font-size: 15px;
    }
    
    .webfx-tab-icon-circle {
        width: 48px;
        height: 48px;
    }
    
    .webfx-tab-icon-large svg,
    .webfx-tab-icon-large i {
        width: 24px;
        height: 24px;
    }
    
    .webfx-tab-content-wrapper {
        gap: 15px;
    }
    
    /* Fix navigation arrows if present */
    .webfx-tab-navigation-arrows,
    .webfx-tabs-arrow-left,
    .webfx-tabs-arrow-right {
        display: none !important;
    }
}

/* Navigation Arrows for Elementor Widget */
.elementor-webfx-link-building .webfx-tab-nav-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.elementor-webfx-link-building .webfx-tab-nav-arrow {
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.elementor-webfx-link-building .webfx-tab-nav-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

.elementor-webfx-link-building .webfx-tab-nav-arrow-left {
    margin-left: 5px;
}

.elementor-webfx-link-building .webfx-tab-nav-arrow-right {
    margin-right: 5px;
} 