/* Tabs - Reusable Tab Components */

/* ===== BASIC TAB STYLES ===== */

/* Tab Container */
.tabs-container {
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-medium);
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.tab:hover {
    color: var(--primary-blue);
    background: var(--bg-lighter);
}

.tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--bg-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== PROFILE TYPE TABS ===== */

.profile-type-selector {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.profile-type-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}

.profile-type-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    position: relative;
    text-decoration: none;
    display: inline-block;
    box-shadow: none;
    outline: none;
}

.profile-type-tab:hover {
    color: var(--primary-blue);
    background: var(--bg-lighter);
    border-bottom-color: var(--primary-blue);
    transform: none;
}

.profile-type-tab.active {
    background: var(--bg-white);
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

.profile-type-tab:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===== PROJECT TABS ===== */

.project-tabs-container {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.project-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
}

.tab-button:hover {
    color: var(--primary-blue);
    background: var(--bg-lighter);
}

.tab-button.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--bg-white);
}

/* ===== SEARCH TABS ===== */

.search-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-medium);
    margin-bottom: 2rem;
}

.search-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
}

.search-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.search-tab:hover {
    color: var(--primary-blue);
}

/* ===== CONTENT TABS ===== */

.content-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-medium);
    margin-bottom: 2rem;
}

.content-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
}

.content-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.content-tab:hover {
    color: var(--primary-blue);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .tab.active {
        border-right-color: var(--primary-blue);
        border-bottom-color: transparent;
    }
    
    .profile-type-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .profile-type-tab {
        text-align: left;
        border-bottom: none;
        border-right: 2px solid transparent;
        border-radius: 0;
    }
    
    .profile-type-tab.active {
        border-right-color: var(--primary-blue);
        border-bottom-color: transparent;
    }
    
    .profile-type-tab:hover {
        border-right-color: var(--primary-blue);
        border-bottom-color: transparent;
    }
    
    .project-tabs-container {
        padding: 0 1rem;
    }
    
    .project-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-button {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .tab-button.active {
        border-right-color: var(--primary-blue);
        border-bottom-color: transparent;
    }
    
    .search-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .search-tab {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .search-tab.active {
        border-right-color: var(--primary-blue);
        border-bottom-color: transparent;
    }
    
    .content-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .content-tab {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .content-tab.active {
        border-right-color: var(--primary-blue);
        border-bottom-color: transparent;
    }
}

@media (max-width: 480px) {
    .profile-type-selector {
        padding: 1rem;
    }
    
    .project-tabs-container {
        padding: 0 1rem;
    }
    
    .tab,
    .tab-button,
    .search-tab,
    .content-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .profile-type-tab {
        padding: 0.75rem 1rem;
    }
}

/* ===== OVERRIDE BUTTON STYLES ===== */

/* Ensure tab styles override any button styles */
button.profile-type-tab {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.profile-type-tab:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button.profile-type-tab:active {
    transform: none;
    box-shadow: none;
}

/* Ensure proper tab appearance */
.profile-type-selector button.profile-type-tab {
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-weight: 500;
}

.profile-type-selector button.profile-type-tab:hover {
    color: var(--primary-blue);
    background: var(--bg-lighter);
    border-bottom-color: var(--primary-blue);
}

.profile-type-selector button.profile-type-tab.active {
    background: var(--bg-white);
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}
