/**
 * WebFX Link Building - Frontend Styles
 */

/* Container styles */
.webfx-link-building-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Header styles */
.webfx-link-building-header {
    display: none;
}

.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 - main layout */
.webfx-link-building-tabs-container {
    display: flex;
    margin-top: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tabs navigation (left sidebar) */
.webfx-link-building-tabs-nav {
    flex: 0 0 25%;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
}

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

.webfx-link-building-tabs-nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.webfx-link-building-tabs-nav ul li:last-child {
    border-bottom: none;
}

.webfx-link-building-tab-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #505050;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webfx-tab-icon-container {
    width: 24px;
    text-align: center;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.webfx-link-building-tab-link:hover {
    background-color: #f7f9fc;
    color: #ff681f;
}

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

.webfx-link-building-tab.active .webfx-link-building-tab-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    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 {
    /* Specific styling for Font Awesome icons */
    color: #ff681f;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.webfx-tab-icon i,
.webfx-tab-icon svg {
    color: #ff681f;
    fill: #ff681f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

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

/* Tab content area (right side) */
.webfx-link-building-tabs-content {
    flex: 1;
    padding: 40px 50px;
    background-color: #fff;
}

/* Tab icon display at top of content */
.webfx-tab-icon-display {
    margin-bottom: 15px;
}

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

.webfx-tab-icon-large {
    font-size: 36px;
    color: #ff681f; /* Orange color for icon */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.webfx-tab-icon-large i,
.webfx-tab-icon-large svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tab heading */
.webfx-tab-title-display {
    margin-bottom: 25px;
}

.webfx-tab-heading {
    font-size: 28px;
    color: #2a303b;
    margin: 0;
    font-weight: 600;
}

.webfx-link-building-tab-content {
    display: none;
    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-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 20px;
}

.webfx-tab-content-text {
    flex: 1;
    min-width: 60%;
}

.webfx-tab-content-image {
    flex: 0 0 35%;
    margin-left: 5%;
}

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

/* Content styling */
.webfx-tab-content-text h3 {
    display: none; /* Hide the h3 since we now display the title separately at the top */
}

.webfx-tab-content-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #505050;
    margin-bottom: 18px;
}

.webfx-tab-content-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.webfx-tab-content-text li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #505050;
}

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

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

/* Responsive styles */
/* Large tablets and desktop */
@media screen and (max-width: 1024px) {
    .webfx-link-building-tabs-content {
        padding: 30px 40px;
    }
    
    .webfx-tab-heading {
        font-size: 24px;
    }
    
    .webfx-link-building-tabs-nav {
        flex: 0 0 30%;
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    .webfx-link-building-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .webfx-link-building-tabs-container {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }
    
    .webfx-link-building-tabs-nav {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%; /* Ensure full width */
        display: flex;
        background-color: #fff;
        position: relative;
        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;
    }
    
    .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;
        width: 100%; /* Full width */
        min-width: 100%;
    }
    
    .webfx-link-building-tabs-nav ul li {
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        flex: 0 0 auto; /* Change to prevent stretching */
        min-width: 150px; /* Ensure tabs have enough width for content */
        text-align: center;
    }
    
    .webfx-link-building-tabs-nav ul li:last-child {
        border-right: none;
    }
    
    .webfx-link-building-tab-link {
        padding: 15px 12px;
        white-space: nowrap;
        justify-content: center;
        width: 100%;
    }
    
    .webfx-link-building-tab.active .webfx-link-building-tab-link::before {
        width: 100%;
        height: 3px;
        bottom: 0;
        top: auto;
        left: 0;
        box-shadow: 0 0 6px rgba(255, 104, 31, 0.4);
    }
    
    .webfx-link-building-tabs-content {
        padding: 25px 20px;
        width: 100%;
    }
    
    .webfx-tab-content-wrapper {
        flex-direction: column;
    }
    
    .webfx-tab-content-text {
        min-width: 100%;
    }
    
    .webfx-tab-content-image {
        flex: 0 0 100%;
        margin-left: 0;
        margin-top: 30px;
    }
    
    .webfx-tab-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .webfx-tab-icon-large {
        font-size: 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: 480px) {
    .webfx-link-building-container {
        padding: 0;
        margin: 0;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .webfx-link-building-tabs-container {
        margin: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }
    
    .webfx-link-building-tabs-nav {
        background: #fff;
        position: relative;
        overflow-x: auto;
        padding: 0 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .webfx-link-building-tabs-nav ul {
        display: flex;
        width: max-content;
        min-width: 100%;
    }
    
    .webfx-link-building-tabs-nav ul li {
        flex: 0 0 auto;
        min-width: 120px;
        white-space: nowrap;
        text-align: center;
    }
    
    .webfx-link-building-tab-link {
        padding: 12px 10px;
        font-size: 13px;
        justify-content: center;
    }
    
    .webfx-tab-icon-container {
        margin-right: 5px;
        width: 18px;
        height: 18px;
    }
    
    .webfx-link-building-tabs-content {
        padding: 15px;
    }
    
    .webfx-tab-heading {
        font-size: 20px;
    }
    
    .webfx-tab-content-text p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .webfx-tab-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .webfx-tab-icon-large {
        font-size: 24px;
    }
    
    .webfx-tab-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    
    /* Fix navigation arrows if present */
    .webfx-tab-navigation-arrows {
        display: none !important; /* Hide any navigation arrows that might be present */
    }
}

/* Slider navigation arrows styling */
.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;
}

.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;
}

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

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

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